diff --git a/pom.xml b/pom.xml index 15ce75f..6ac1c5e 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ io.openvidu classroom-demo - 2.5.0 + 2.6.0 war classroom-demo diff --git a/src/angular/frontend/package-lock.json b/src/angular/frontend/package-lock.json index 2df0f8c..70c1d2a 100644 --- a/src/angular/frontend/package-lock.json +++ b/src/angular/frontend/package-lock.json @@ -1,6 +1,6 @@ { "name": "openvidu-classroom-demo", - "version": "2.5.0", + "version": "2.6.0", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -3222,12 +3222,14 @@ "balanced-match": { "version": "1.0.0", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "brace-expansion": { "version": "1.1.11", "bundled": true, "dev": true, + "optional": true, "requires": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -3242,17 +3244,20 @@ "code-point-at": { "version": "1.1.0", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "concat-map": { "version": "0.0.1", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "console-control-strings": { "version": "1.1.0", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "core-util-is": { "version": "1.0.2", @@ -3369,7 +3374,8 @@ "inherits": { "version": "2.0.3", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "ini": { "version": "1.3.5", @@ -3381,6 +3387,7 @@ "version": "1.0.0", "bundled": true, "dev": true, + "optional": true, "requires": { "number-is-nan": "^1.0.0" } @@ -3395,6 +3402,7 @@ "version": "3.0.4", "bundled": true, "dev": true, + "optional": true, "requires": { "brace-expansion": "^1.1.7" } @@ -3402,12 +3410,14 @@ "minimist": { "version": "0.0.8", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "minipass": { "version": "2.2.4", "bundled": true, "dev": true, + "optional": true, "requires": { "safe-buffer": "^5.1.1", "yallist": "^3.0.0" @@ -3426,6 +3436,7 @@ "version": "0.5.1", "bundled": true, "dev": true, + "optional": true, "requires": { "minimist": "0.0.8" } @@ -3506,7 +3517,8 @@ "number-is-nan": { "version": "1.0.1", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "object-assign": { "version": "4.1.1", @@ -3518,6 +3530,7 @@ "version": "1.4.0", "bundled": true, "dev": true, + "optional": true, "requires": { "wrappy": "1" } @@ -3639,6 +3652,7 @@ "version": "1.0.2", "bundled": true, "dev": true, + "optional": true, "requires": { "code-point-at": "^1.0.0", "is-fullwidth-code-point": "^1.0.0", @@ -5934,23 +5948,23 @@ } }, "openvidu-browser": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/openvidu-browser/-/openvidu-browser-2.5.0.tgz", - "integrity": "sha512-KkzLljrfTROyURsY9XpCLlcdYCqkouIr9A7hvTTDOeNMHRyenxJ4zByDanxMxfPTAhCM7xDMBAbwfBVzBnQwqA==", + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/openvidu-browser/-/openvidu-browser-2.6.0.tgz", + "integrity": "sha512-uwkuKaiOLBXCqqDWqPNkjyle7TIJ7lqrYiXkmfzAt7OIdQ8pAP2nQySgTRo4TDOB6JA9pmSRH5y5ksQQ1d1Ayg==", "requires": { - "@types/node": "10.11.0", + "@types/node": "10.12.0", "@types/platform": "1.3.1", "freeice": "2.2.2", "hark": "1.2.3", "platform": "1.3.5", "uuid": "3.3.2", - "webrtc-adapter": "6.4.0", + "webrtc-adapter": "6.4.4", "wolfy87-eventemitter": "5.2.5" }, "dependencies": { "@types/events": { "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@types/events/-/events-1.2.0.tgz", + "resolved": "http://registry.npmjs.org/@types/events/-/events-1.2.0.tgz", "integrity": "sha512-KEIlhXnIutzKwRbQkGWb/I4HFqBuUykAdHgDED6xqwXJfONCjF5VoE0cXEiurh3XauygxzeDzgtXUqvLkxFzzA==" }, "@types/fs-extra": { @@ -5982,14 +5996,14 @@ "integrity": "sha512-pGF/zvYOACZ/gLGWdQH8zSwteQS1epp68yRcVLJMgUck/MjEn/FBYmPub9pXT8C1e4a8YZfHo1CKyV8q1vKUnQ==" }, "@types/lodash": { - "version": "4.14.116", - "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.116.tgz", - "integrity": "sha512-lRnAtKnxMXcYYXqOiotTmJd74uawNWuPnsnPrrO7HiFuE3npE2iQhfABatbYDyxTNqZNuXzcKGhw37R7RjBFLg==" + "version": "4.14.117", + "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.117.tgz", + "integrity": "sha512-xyf2m6tRbz8qQKcxYZa7PA4SllYcay+eh25DN3jmNYY6gSTL7Htc/bttVdkqj2wfJGbeWlQiX8pIyJpKU+tubw==" }, "@types/marked": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/@types/marked/-/marked-0.4.1.tgz", - "integrity": "sha512-ZqEGxppVG1x9QK/hkHxzmf6m4xcnk9CaHjNCqwvUeN3pMdCcQkPxmvrbLZ5GbP7K25TgiT1nKIGnz0U3M+G05Q==" + "version": "0.4.2", + "resolved": "https://registry.npmjs.org/@types/marked/-/marked-0.4.2.tgz", + "integrity": "sha512-cDB930/7MbzaGF6U3IwSQp6XBru8xWajF5PV2YZZeV8DyiliTuld11afVztGI9+yJZ29il5E+NpGA6ooV/Cjkg==" }, "@types/minimatch": { "version": "3.0.3", @@ -5997,9 +6011,9 @@ "integrity": "sha512-tHq6qdbT9U1IRSGf14CL0pUlULksvY9OZ+5eEgl1N7t+OA3tGvNpxJCzuKQlsNgCVwbAs670L1vcVQi8j9HjnA==" }, "@types/node": { - "version": "10.11.0", - "resolved": "https://registry.npmjs.org/@types/node/-/node-10.11.0.tgz", - "integrity": "sha512-R4Dvw6KjSYn/SpvjRchBOwXr14vVVcFXCtnM3f0aLvlJS8a599rrcEoihcP2/+Z/f75E5GNPd4aWM7j1yei9og==" + "version": "10.12.0", + "resolved": "https://registry.npmjs.org/@types/node/-/node-10.12.0.tgz", + "integrity": "sha512-3TUHC3jsBAB7qVRGxT6lWyYo2v96BMmD2PTcl47H25Lu7UXtFH/2qqmKiVrnel6Ne//0TFYf6uvNX+HW2FRkLQ==" }, "@types/platform": { "version": "1.3.1", @@ -6016,9 +6030,9 @@ } }, "JSONStream": { - "version": "1.3.4", - "resolved": "https://registry.npmjs.org/JSONStream/-/JSONStream-1.3.4.tgz", - "integrity": "sha512-Y7vfi3I5oMOYIr+WxV8NZxDSwcbNgzdKYsTNInmycOq9bUYwGg9ryu57Wg5NLmCjqdFPNUmpMBo3kSJN9tCbXg==", + "version": "1.3.5", + "resolved": "https://registry.npmjs.org/JSONStream/-/JSONStream-1.3.5.tgz", + "integrity": "sha512-E+iruNOY8VV9s4JEbe1aNEm6MiszPRr/UfcHMz0TQh1BXSxHK+ASV1R6W4HpjBhSeS+54PIsAMCBmwD06LLsqQ==", "requires": { "jsonparse": "^1.2.0", "through": ">=2.2.7 <3" @@ -6030,28 +6044,31 @@ "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==" }, "acorn": { - "version": "5.7.3", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-5.7.3.tgz", - "integrity": "sha512-T/zvzYRfbVojPWahDsE5evJdHb3oJoQfFbsrKM7w5Zcs++Tr257tia3BmMP8XYVjp1S9RZXQMh7gao96BlqZOw==" + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-6.0.2.tgz", + "integrity": "sha512-GXmKIvbrN3TV7aVqAzVFaMW8F8wzVX7voEBRO3bDA64+EX37YSayggRJP5Xig6HYHBkWKpFg9W5gg6orklubhg==" }, "acorn-dynamic-import": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/acorn-dynamic-import/-/acorn-dynamic-import-3.0.0.tgz", - "integrity": "sha512-zVWV8Z8lislJoOKKqdNMOB+s6+XV5WERty8MnKBeFgwA+19XJjJHs2RP5dzM57FftIs+jQnRToLiWazKr6sSWg==", - "requires": { - "acorn": "^5.0.0" - } + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/acorn-dynamic-import/-/acorn-dynamic-import-4.0.0.tgz", + "integrity": "sha512-d3OEjQV4ROpoflsnUA8HozoIR504TFxNivYEUi6uwz0IYhBkTDXGuWlNdMtybRt3nqVx/L6XqMt0FxkXuWKZhw==" }, "acorn-node": { - "version": "1.5.2", - "resolved": "https://registry.npmjs.org/acorn-node/-/acorn-node-1.5.2.tgz", - "integrity": "sha512-krFKvw/d1F17AN3XZbybIUzEY4YEPNiGo05AfP3dBlfVKrMHETKpgjpuZkSF8qDNt9UkQcqj7am8yJLseklCMg==", + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/acorn-node/-/acorn-node-1.6.1.tgz", + "integrity": "sha512-B+fHENiJB8X0lNQQ/auxOqBC1xWig8RpxUAomCrlLJmNx1Z141WyRjwcEK4Ux7YRq3133H5Q6GYXch0rOa47NQ==", "requires": { - "acorn": "^5.7.1", - "acorn-dynamic-import": "^3.0.0", + "acorn": "^6.0.1", + "acorn-dynamic-import": "^4.0.0", + "acorn-walk": "^6.0.1", "xtend": "^4.0.1" } }, + "acorn-walk": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-6.1.0.tgz", + "integrity": "sha512-ugTb7Lq7u4GfWSqqpwE0bGyoBZNMTok/zDBXxfEG0QM50jNlGhIWjRC1pPN7bvV1anhF+bs+/gNcRw+o55Evbg==" + }, "amdefine": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/amdefine/-/amdefine-1.0.1.tgz", @@ -6189,7 +6206,7 @@ }, "async": { "version": "1.5.2", - "resolved": "https://registry.npmjs.org/async/-/async-1.5.2.tgz", + "resolved": "http://registry.npmjs.org/async/-/async-1.5.2.tgz", "integrity": "sha1-7GphrlZIDAw8skHJVhjiCJL5Zyo=" }, "async-each": { @@ -6255,7 +6272,7 @@ }, "strip-ansi": { "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", + "resolved": "http://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", "requires": { "ansi-regex": "^2.0.0" @@ -6608,7 +6625,7 @@ }, "camelcase-keys": { "version": "2.1.0", - "resolved": "https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-2.1.0.tgz", + "resolved": "http://registry.npmjs.org/camelcase-keys/-/camelcase-keys-2.1.0.tgz", "integrity": "sha1-MIvur/3ygRkFHvodkyITyRuPkuc=", "requires": { "camelcase": "^2.0.0", @@ -6616,9 +6633,9 @@ } }, "caniuse-db": { - "version": "1.0.30000888", - "resolved": "https://registry.npmjs.org/caniuse-db/-/caniuse-db-1.0.30000888.tgz", - "integrity": "sha512-bp7cHptv4AQZFtkyzYk2bJN5E8CSYklm6K3bJ/fGUa52oxydzBKK4uYlZ+A0lNIiThRFJMoXU2TacG9ve2KpXw==" + "version": "1.0.30000898", + "resolved": "https://registry.npmjs.org/caniuse-db/-/caniuse-db-1.0.30000898.tgz", + "integrity": "sha512-i8WfgaYakyxHs5kmITs/XHjrdm7QsuuFmI5cE43I0pJ0NIJpe52t2Rz6mliG8yyu1NMXjNceC7udWdiQuA5hUA==" }, "chalk": { "version": "2.4.1", @@ -8096,7 +8113,7 @@ }, "strip-ansi": { "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", + "resolved": "http://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", "requires": { "ansi-regex": "^2.0.0" @@ -8133,7 +8150,7 @@ }, "async": { "version": "0.9.2", - "resolved": "https://registry.npmjs.org/async/-/async-0.9.2.tgz", + "resolved": "http://registry.npmjs.org/async/-/async-0.9.2.tgz", "integrity": "sha1-rqdNXmHB+JlhO/ZL2mbUx48v0X0=" }, "chalk": { @@ -8158,7 +8175,7 @@ }, "strip-ansi": { "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", + "resolved": "http://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", "requires": { "ansi-regex": "^2.0.0" @@ -8291,7 +8308,7 @@ }, "strip-ansi": { "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", + "resolved": "http://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", "requires": { "ansi-regex": "^2.0.0" @@ -8446,9 +8463,9 @@ } }, "highlight.js": { - "version": "9.12.0", - "resolved": "https://registry.npmjs.org/highlight.js/-/highlight.js-9.12.0.tgz", - "integrity": "sha1-5tnb5Xy+/mB1HwKvM2GVhwyQwB4=" + "version": "9.13.1", + "resolved": "https://registry.npmjs.org/highlight.js/-/highlight.js-9.13.1.tgz", + "integrity": "sha512-Sc28JNQNDzaH6PORtRLMvif9RSn1mYuOoX3omVjnb0+HbpPygU2ALBI0R/wsiqCb4/fcp07Gdo8g+fhtFrQl6A==" }, "hmac-drbg": { "version": "1.0.1", @@ -8484,9 +8501,9 @@ "integrity": "sha1-OgPtwiFLyjtmQko+eVk0lQnLA1E=" }, "http-parser-js": { - "version": "0.4.13", - "resolved": "https://registry.npmjs.org/http-parser-js/-/http-parser-js-0.4.13.tgz", - "integrity": "sha1-O9bW/ebjFyyTNMOzO2wZPYD+ETc=" + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/http-parser-js/-/http-parser-js-0.5.0.tgz", + "integrity": "sha512-cZdEF7r4gfRIq7ezX9J0T+kQmJNOub71dWbgAXVHDct80TKP4MCETtZQ31xyv38UwgzkWPYF/Xc0ge55dW9Z9w==" }, "https-browserify": { "version": "1.0.0", @@ -8964,7 +8981,7 @@ }, "strip-ansi": { "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", + "resolved": "http://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", "requires": { "ansi-regex": "^2.0.0" @@ -8978,17 +8995,18 @@ } }, "md5.js": { - "version": "1.3.4", - "resolved": "https://registry.npmjs.org/md5.js/-/md5.js-1.3.4.tgz", - "integrity": "sha1-6b296UogpawYsENA/Fdk1bCdkB0=", + "version": "1.3.5", + "resolved": "https://registry.npmjs.org/md5.js/-/md5.js-1.3.5.tgz", + "integrity": "sha512-xitP+WxNPcTTOgnTJcrhM0xvdPepipPSf3I8EIpGKeFLjt3PlJLIDG3u8EX53ZIubkb+5U2+3rELYpEhHhzdkg==", "requires": { "hash-base": "^3.0.0", - "inherits": "^2.0.1" + "inherits": "^2.0.1", + "safe-buffer": "^5.1.2" } }, "meow": { "version": "3.7.0", - "resolved": "https://registry.npmjs.org/meow/-/meow-3.7.0.tgz", + "resolved": "http://registry.npmjs.org/meow/-/meow-3.7.0.tgz", "integrity": "sha1-cstmi0JSKCkKu/qFaJJYcwioAfs=", "requires": { "camelcase-keys": "^2.0.0", @@ -9117,9 +9135,9 @@ "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" }, "nan": { - "version": "2.11.0", - "resolved": "https://registry.npmjs.org/nan/-/nan-2.11.0.tgz", - "integrity": "sha512-F4miItu2rGnV2ySkXOQoA8FKz/SR2Q2sWP0sbTxNxz/tuokeC8WxOhPMcwi0qIyGtVn/rrSeLbvVkznqCdwYnw==", + "version": "2.11.1", + "resolved": "https://registry.npmjs.org/nan/-/nan-2.11.1.tgz", + "integrity": "sha512-iji6k87OSXa0CcrLl9z+ZiYSuR2o+c0bGuNmXdrhTQTakxytAFsC56SArGYoiHlJlFoHSnvmhpceZJaXkVuOtA==", "optional": true }, "nanomatch": { @@ -9427,7 +9445,7 @@ }, "pify": { "version": "2.3.0", - "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", + "resolved": "http://registry.npmjs.org/pify/-/pify-2.3.0.tgz", "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=" }, "pinkie": { @@ -9492,20 +9510,21 @@ "integrity": "sha512-MtEC1TqN0EU5nephaJ4rAtThHtC86dNN9qCuEhtshvpVBkAW5ZO7BASN9REnF9eoXGcRub+pFuKEpOHE+HbEMw==" }, "progress": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.0.tgz", - "integrity": "sha1-ihvjZr+Pwj2yvSPxDG/pILQ4nR8=" + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.1.tgz", + "integrity": "sha512-OE+a6vzqazc+K6LxJrX5UPyKFvGnL5CYmq2jFGNIBWHpc4QyE49/YOumcrpQFJpfejmvRtbJzgO1zPmMCqlbBg==" }, "public-encrypt": { - "version": "4.0.2", - "resolved": "http://registry.npmjs.org/public-encrypt/-/public-encrypt-4.0.2.tgz", - "integrity": "sha512-4kJ5Esocg8X3h8YgJsKAuoesBgB7mqH3eowiDzMUPKiRDDE7E/BqqZD1hnTByIaAFiwAw246YEltSq7tdrOH0Q==", + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/public-encrypt/-/public-encrypt-4.0.3.tgz", + "integrity": "sha512-zVpa8oKZSz5bTMTFClc1fQOnyyEzpl5ozpi1B5YcvBrdohMjH2rfsBtyXcuNuwjsDIXmBYlF2N5FlJYhR29t8Q==", "requires": { "bn.js": "^4.1.0", "browserify-rsa": "^4.0.0", "create-hash": "^1.1.0", "parse-asn1": "^5.0.0", - "randombytes": "^2.0.1" + "randombytes": "^2.0.1", + "safe-buffer": "^5.1.2" } }, "punycode": { @@ -9747,9 +9766,9 @@ "integrity": "sha512-XAVZQO4qsfzVTHorF49zCpkdxiGmPNjA8ps8RcJGtGP3QJ/A8I9/SVg/QnkAFDMXIyGbHZBBFwYBw6WdnhT96w==" }, "semver": { - "version": "5.5.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.5.1.tgz", - "integrity": "sha512-PqpAxfrEhlSUWge8dwIp4tZnQ25DIOthpiaHNIthsjEFQD6EvqUKUDM7L8O2rShkFccYo1VjJR0coWfNkCubRw==" + "version": "5.6.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.6.0.tgz", + "integrity": "sha512-RS9R6R35NYgQn++fkDWaOmqGoj4Ek9gGs+DPxNUZKuwE183xjJroKvyo1IzVFeXvUrvmALy6FWD5xrdJT25gMg==" }, "set-value": { "version": "2.0.0", @@ -9941,18 +9960,18 @@ "integrity": "sha1-PpNdfd1zYxuXZZlW1VEo6HtQhKM=" }, "spdx-correct": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.0.1.tgz", - "integrity": "sha512-hxSPZbRZvSDuOvADntOElzJpenIR7wXJkuoUcUtS0erbgt2fgeaoPIYretfKpslMhfFDY4k0MZ2F5CUzhBsSvQ==", + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.0.2.tgz", + "integrity": "sha512-q9hedtzyXHr5S0A1vEPoK/7l8NpfkFYTq6iCY+Pno2ZbdZR6WexZFtqeVGkGxW3TEJMN914Z55EnAGMmenlIQQ==", "requires": { "spdx-expression-parse": "^3.0.0", "spdx-license-ids": "^3.0.0" } }, "spdx-exceptions": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.1.0.tgz", - "integrity": "sha512-4K1NsmrlCU1JJgUrtgEeTVyfx8VaYea9J9LvARxhbHtVtohPs/gFGG5yy49beySjlIMhhXZ4QqujIZEfS4l6Cg==" + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.2.0.tgz", + "integrity": "sha512-2XQACfElKi9SlVb1CYadKDXvoajPgBVPn/gOQLrTvHdElaVhr7ZEbqJaRnJLVNeaI4cMEAgVCeBMKF6MWRDCRA==" }, "spdx-expression-parse": { "version": "3.0.0", @@ -10054,7 +10073,7 @@ }, "strip-ansi": { "version": "2.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-2.0.1.tgz", + "resolved": "http://registry.npmjs.org/strip-ansi/-/strip-ansi-2.0.1.tgz", "integrity": "sha1-32LBqpTtLxFOHQ8h/R1QSCt5pg4=", "requires": { "ansi-regex": "^1.0.0" @@ -10141,9 +10160,9 @@ }, "dependencies": { "debug": { - "version": "3.2.5", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.5.tgz", - "integrity": "sha512-D61LaDQPQkxJ5AUM2mbSJRbPkNs/TmdmOeLAi1hgDkpDfIfetSrjmWhccwtuResSwMbACjx/xXQofvM9CE/aeg==", + "version": "3.2.6", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.6.tgz", + "integrity": "sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==", "requires": { "ms": "^2.1.1" } @@ -10291,9 +10310,9 @@ "integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=" }, "typedoc": { - "version": "0.12.0", - "resolved": "https://registry.npmjs.org/typedoc/-/typedoc-0.12.0.tgz", - "integrity": "sha512-dsdlaYZ7Je8JC+jQ3j2Iroe4uyD0GhqzADNUVyBRgLuytQDP/g0dPkAw5PdM/4drnmmJjRzSWW97FkKo+ITqQg==", + "version": "0.13.0", + "resolved": "https://registry.npmjs.org/typedoc/-/typedoc-0.13.0.tgz", + "integrity": "sha512-jQWtvPcV+0fiLZAXFEe70v5gqjDO6pJYJz4mlTtmGJeW2KRoIU/BEfktma6Uj8Xii7UakuZjbxFewl3UYOkU/w==", "requires": { "@types/fs-extra": "^5.0.3", "@types/handlebars": "^4.0.38", @@ -10311,7 +10330,7 @@ "progress": "^2.0.0", "shelljs": "^0.8.2", "typedoc-default-themes": "^0.5.0", - "typescript": "3.0.x" + "typescript": "3.1.x" } }, "typedoc-default-themes": { @@ -10320,9 +10339,9 @@ "integrity": "sha1-bcJDPnjti+qOiHo6zeLzF4W9Yic=" }, "typescript": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.0.3.tgz", - "integrity": "sha512-kk80vLW9iGtjMnIv11qyxLqZm20UklzuR2tL0QAnDIygIUIemcZMxlMWudl9OOt76H3ntVzcTiddQ1/pAAJMYg==" + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.1.3.tgz", + "integrity": "sha512-+81MUSyX+BaSo+u2RbozuQk/UWx6hfG0a5gHu4ANEM4sU96XbuIyAB+rWBW1u70c6a5QuZfuYICn3s2UjuHUpA==" }, "uglify-js": { "version": "3.4.9", @@ -10362,9 +10381,9 @@ } }, "underscore.string": { - "version": "3.3.4", - "resolved": "https://registry.npmjs.org/underscore.string/-/underscore.string-3.3.4.tgz", - "integrity": "sha1-LCo/n4PmR2L9xF5s6sZRQoZCE9s=", + "version": "3.3.5", + "resolved": "https://registry.npmjs.org/underscore.string/-/underscore.string-3.3.5.tgz", + "integrity": "sha512-g+dpmgn+XBneLmXXo+sGlW5xQEt4ErkS3mgeN2GFbremYeMBSJKr9Wf2KJplQVaiPY/f7FN6atosWYNm9ovrYg==", "requires": { "sprintf-js": "^1.0.3", "util-deprecate": "^1.0.2" @@ -10520,9 +10539,9 @@ "integrity": "sha512-iq+S7vZJE60yejDYM0ek6zg308+UZsdtPExWP9VZoCFCz1zkJoXFnAX7aZfd/ZwrkidzdUZL0C/ryW+JwAiIGw==" }, "webrtc-adapter": { - "version": "6.4.0", - "resolved": "https://registry.npmjs.org/webrtc-adapter/-/webrtc-adapter-6.4.0.tgz", - "integrity": "sha512-VUX/YMIRWwJy74Q2K2KBTh2VlvD4GgxLzLtGC+mecdeTjb+nxzhlCpxwx0lqpiU2apKXHqKLfxMWcrxYnmd6LA==", + "version": "6.4.4", + "resolved": "https://registry.npmjs.org/webrtc-adapter/-/webrtc-adapter-6.4.4.tgz", + "integrity": "sha512-VNXpC9UTbNovaiPqEtUmMuBolo4K6V4qgYnoMl3i0q9LnXTGaFeyIQiFiLp5qoKJJGW3EJSLFX6qYDlgU6k4pg==", "requires": { "rtcpeerconnection-shim": "^1.2.14", "sdp": "^2.9.0" @@ -10581,7 +10600,7 @@ }, "xmlbuilder": { "version": "9.0.7", - "resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-9.0.7.tgz", + "resolved": "http://registry.npmjs.org/xmlbuilder/-/xmlbuilder-9.0.7.tgz", "integrity": "sha1-Ey7mPS7FVlxVfiD0wi35rKaGsQ0=" }, "xtend": { diff --git a/src/angular/frontend/package.json b/src/angular/frontend/package.json index fbdaf59..19a6ff1 100644 --- a/src/angular/frontend/package.json +++ b/src/angular/frontend/package.json @@ -40,5 +40,5 @@ "start": "ng serve", "test": "ng test" }, - "version": "2.5.0" + "version": "2.6.0" } diff --git a/src/main/resources/static/3rdpartylicenses.txt b/src/main/resources/static/3rdpartylicenses.txt index 619810d..0fe102a 100644 --- a/src/main/resources/static/3rdpartylicenses.txt +++ b/src/main/resources/static/3rdpartylicenses.txt @@ -1,4 +1,4 @@ -webpack@4.20.2 +webpack MIT Copyright JS Foundation and other contributors @@ -21,9 +21,615 @@ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -rxjs-compat@6.3.3 + +rxjs-compat +Apache-2.0 + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright (c) 2015-2018 Google, Inc., Netflix, Inc., Microsoft Corp. and contributors + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + + +openvidu-browser +Apache-2.0 + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + +tslib Apache-2.0 Apache License + +Version 2.0, January 2004 + +http://www.apache.org/licenses/ + +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + +1. Definitions. + +"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. + +"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. + +"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. + +"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. + +"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. + +"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. + +"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). + +"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. + +"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." + +"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. + +2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. + +3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. + +4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: + +You must give any other recipients of the Work or Derivative Works a copy of this License; and + +You must cause any modified files to carry prominent notices stating that You changed the files; and + +You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and + +If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. + +5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. + +6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. + +7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. + +8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. + +9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. + +END OF TERMS AND CONDITIONS + + +freeice +MIT + +normalice +MIT + +uuid +MIT +The MIT License (MIT) + +Copyright (c) 2010-2016 Robert Kieffer and other contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +platform +MIT +Copyright 2014-2018 Benjamin Tan +Copyright 2011-2013 John-David Dalton + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +hammerjs +MIT +The MIT License (MIT) + +Copyright (C) 2011-2014 by Jorik Tangelder (Eight Media) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +wolfy87-eventemitter +Unlicense + +hark +MIT + +wildemitter + +events +MIT +MIT + +Copyright Joyent, Inc. and other Node contributors. + +Permission is hereby granted, free of charge, to any person obtaining a +copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to permit +persons to whom the Software is furnished to do so, subject to the +following conditions: + +The above copyright notice and this permission notice shall be included +in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN +NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, +DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR +OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE +USE OR OTHER DEALINGS IN THE SOFTWARE. + + +inherits +ISC +The ISC License + +Copyright (c) Isaac Z. Schlueter + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND +FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. + + + +rxjs +Apache-2.0 + Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ @@ -224,10 +830,123 @@ Apache License WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. + -openvidu-browser@2.5.0 -Apache-2.0 -Apache License + +@angular/compiler +MIT + +@angular/core +MIT + +@angular/common +MIT + +@angular/platform-browser +MIT + +@angular/http +MIT + +@angular/animations +MIT + +@angular/cdk +MIT +The MIT License + +Copyright (c) 2018 Google LLC. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +@angular/material +MIT +The MIT License + +Copyright (c) 2018 Google LLC. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +@angular/material/dialog + +@angular/material/button + +@angular/material/snack-bar + +@angular/router +MIT + +@angular/material/form-field + +@angular/forms +MIT + +@angular/material/radio + +@angular/material/icon + +@angular/material/card + +@angular/flex-layout +MIT +<<<<<<< HEAD +The MIT License + +Copyright (c) 2018 Google LLC. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +======= + Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ @@ -407,7 +1126,7 @@ Apache License APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" + boilerplate notice, with the fields enclosed by brackets "{}" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a @@ -415,7 +1134,7 @@ Apache License same "printed page" as the copyright notice for easier identification within third-party archives. - Copyright [yyyy] [name of copyright owner] + Copyright {yyyy} {name of copyright owner} Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -429,31 +1148,16 @@ Apache License See the License for the specific language governing permissions and limitations under the License. -hammerjs@2.0.8 -MIT -The MIT License (MIT) +>>>>>>> Initial commit -Copyright (C) 2011-2014 by Jorik Tangelder (Eight Media) -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +@angular/material/checkbox -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. +@angular/material/toolbar -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. +@angular/material/sidenav -core-js@2.5.7 +core-js MIT Copyright (c) 2014-2018 Denis Pushkarev @@ -475,7 +1179,8 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -zone.js@0.8.26 + +zone.js MIT The MIT License @@ -497,4 +1202,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. \ No newline at end of file +THE SOFTWARE. diff --git a/src/main/resources/static/index.html b/src/main/resources/static/index.html index 3a9af6f..e6e12b9 100644 --- a/src/main/resources/static/index.html +++ b/src/main/resources/static/index.html @@ -9,7 +9,7 @@ - + @@ -17,6 +17,6 @@
- + diff --git a/src/main/resources/static/main.41ff98de080553b5cc3e.js b/src/main/resources/static/main.41ff98de080553b5cc3e.js deleted file mode 100644 index 5446beb..0000000 --- a/src/main/resources/static/main.41ff98de080553b5cc3e.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{"+27z":function(t,e){function n(t,e,n){var r={audio:!1,video:{mandatory:{chromeMediaSource:t?"screen":"desktop",maxWidth:window.screen.width>1920?window.screen.width:1920,maxHeight:window.screen.height>1080?window.screen.height:1080},optional:[]}};return n&&(r.audio={mandatory:{chromeMediaSource:t?"screen":"desktop"},optional:[]}),e&&(r.video.mandatory.chromeMediaSourceId=e,r.audio&&r.audio.mandatory&&(r.audio.mandatory.chromeMediaSourceId=e)),r}function r(t){i?i.isLoaded?i.contentWindow.postMessage(t?t.forEach?{captureCustomSourceId:t}:{captureSourceIdWithAudio:!0}:{captureSourceId:!0},"*"):setTimeout(function(){r(t)},100):o(function(){r(t)})}var i;function o(t){i?t():((i=document.createElement("iframe")).onload=function(){i.isLoaded=!0,t()},i.src="https://openvidu.github.io/openvidu-screen-sharing-chrome-extension/",i.style.display="none",(document.body||document.documentElement).appendChild(i))}function s(){i?i.isLoaded?i.contentWindow.postMessage({getChromeExtensionStatus:!0},"*"):setTimeout(s,100):o(s)}window.getScreenId=function(t,e,i){-1===navigator.userAgent.indexOf("Edge")||!navigator.msSaveOrOpenBlob&&!navigator.msSaveBlob?navigator.mozGetUserMedia?e(null,"firefox",{video:{mozMediaSource:t,mediaSource:t}}):(window.addEventListener("message",function t(r){r.data&&(r.data.chromeMediaSourceId&&("PermissionDeniedError"===r.data.chromeMediaSourceId?e("permission-denied"):e(null,r.data.chromeMediaSourceId,n(null,r.data.chromeMediaSourceId,r.data.canRequestAudioTrack)),window.removeEventListener("message",t)),r.data.chromeExtensionStatus&&(e(r.data.chromeExtensionStatus,null,n(r.data.chromeExtensionStatus)),window.removeEventListener("message",t)))}),i?setTimeout(function(){r(i)},100):setTimeout(r,100)):e({video:!0})},window.getScreenConstraints=function(t){o(function(){getScreenId(function(e,n,r){r||(r={video:!0}),t(e,r.video)})})},window.getChromeExtensionStatus=function(t){navigator.mozGetUserMedia?t("installed-enabled"):(window.addEventListener("message",function e(n){n.data&&n.data.chromeExtensionStatus&&(t(n.data.chromeExtensionStatus),window.removeEventListener("message",e))}),setTimeout(s,100))},e.getScreenId=getScreenId},"+FKC":function(t,e,n){"use strict";e.__esModule=!0;var r=n("bDgZ");e.WebRtcStats=function(){function t(t){this.stream=t,this.webRtcStatsEnabled=!1,this.statsInterval=1,this.stats={inbound:{audio:{bytesReceived:0,packetsReceived:0,packetsLost:0},video:{bytesReceived:0,packetsReceived:0,packetsLost:0,framesDecoded:0,nackCount:0}},outbound:{audio:{bytesSent:0,packetsSent:0},video:{bytesSent:0,packetsSent:0,framesEncoded:0,nackCount:0}}}}return t.prototype.isEnabled=function(){return this.webRtcStatsEnabled},t.prototype.initWebRtcStats=function(){var t=this,e=localStorage.getItem("elastest-instrumentation");if(e){console.warn("WebRtc stats enabled for stream "+this.stream.streamId+" of connection "+this.stream.connection.connectionId),this.webRtcStatsEnabled=!0;var n=JSON.parse(e);return this.statsInterval=n.webrtc.interval,console.warn("localStorage item: "+JSON.stringify(n)),void(this.webRtcStatsIntervalId=setInterval(function(){t.sendStatsToHttpEndpoint(n)},1e3*this.statsInterval))}console.debug("WebRtc stats not enabled")},t.prototype.stopWebRtcStats=function(){this.webRtcStatsEnabled&&(clearInterval(this.webRtcStatsIntervalId),console.warn("WebRtc stats stopped for disposed stream "+this.stream.streamId+" of connection "+this.stream.connection.connectionId))},t.prototype.getSelectedIceCandidateInfo=function(){var t=this;return new Promise(function(e,n){t.getStatsAgnostic(t.stream.getRTCPeerConnection(),function(i){if(-1!==r.name.indexOf("Chrome")||-1!==r.name.indexOf("Opera")){var o=void 0,s=void 0,a=void 0,l={},u={};for(var c in i){var h=i[c];"localcandidate"===h.type?l[h.id]=h:"remotecandidate"===h.type?u[h.id]=h:"googCandidatePair"===h.type&&"true"===h.googActiveConnection&&(a=h,o=h.localCandidateId,s=h.remoteCandidateId)}var d=l[o];if(d){var p=t.stream.getLocalIceCandidateList().filter(function(t){return!!t.candidate&&t.candidate.indexOf(d.ipAddress)>=0&&t.candidate.indexOf(d.portNumber)>=0&&t.candidate.indexOf(d.priority)>=0});d.raw=p[0]?p[0].candidate:"ERROR: Cannot find local candidate in list of sent ICE candidates"}else d="ERROR: No active local ICE candidate. Probably ICE-TCP is being used";var f=u[s];f?(p=t.stream.getRemoteIceCandidateList().filter(function(t){return!!t.candidate&&t.candidate.indexOf(f.ipAddress)>=0&&t.candidate.indexOf(f.portNumber)>=0&&t.candidate.indexOf(f.priority)>=0}),f.raw=p[0]?p[0].candidate:"ERROR: Cannot find remote candidate in list of received ICE candidates"):f="ERROR: No active remote ICE candidate. Probably ICE-TCP is being used",e({googCandidatePair:a,localCandidate:d,remoteCandidate:f})}else n("Selected ICE candidate info only available for Chrome")},function(t){n(t)})})},t.prototype.sendStatsToHttpEndpoint=function(t){var e=this,n=function(n){var r=new XMLHttpRequest,i=t.webrtc.httpEndpoint;r.open("POST",i,!0),r.setRequestHeader("Content-type","application/json"),r.onreadystatechange=function(){4===r.readyState&&200===r.status&&console.log("WebRtc stats successfully sent to "+i+" for stream "+e.stream.streamId+" of connection "+e.stream.connection.connectionId)},r.send(n)};this.getStatsAgnostic(this.stream.getRTCPeerConnection(),function(i){if(-1!==r.name.indexOf("Firefox"))i.forEach(function(r){var i={};if("inbound-rtp"===r.type&&null!==r.nackCount&&!1===r.isRemote&&r.id.startsWith("inbound")&&r.remoteId.startsWith("inbound")){var o="webrtc_inbound_"+r.mediaType+"_"+r.ssrc,s={bytesReceived:(r.bytesReceived-e.stats.inbound[r.mediaType].bytesReceived)/e.statsInterval,jitter:1e3*r.jitter,packetsReceived:(r.packetsReceived-e.stats.inbound[r.mediaType].packetsReceived)/e.statsInterval,packetsLost:(r.packetsLost-e.stats.inbound[r.mediaType].packetsLost)/e.statsInterval},a={bytesReceived:"bytes",jitter:"ms",packetsReceived:"packets",packetsLost:"packets"};"video"===r.mediaType&&(s.framesDecoded=(r.framesDecoded-e.stats.inbound.video.framesDecoded)/e.statsInterval,s.nackCount=(r.nackCount-e.stats.inbound.video.nackCount)/e.statsInterval,a.framesDecoded="frames",a.nackCount="packets",e.stats.inbound.video.framesDecoded=r.framesDecoded,e.stats.inbound.video.nackCount=r.nackCount),e.stats.inbound[r.mediaType].bytesReceived=r.bytesReceived,e.stats.inbound[r.mediaType].packetsReceived=r.packetsReceived,e.stats.inbound[r.mediaType].packetsLost=r.packetsLost,(i={"@timestamp":new Date(r.timestamp).toISOString(),exec:t.exec,component:t.component,stream:"webRtc",type:o,stream_type:"composed_metrics",units:a})[o]=s,n(JSON.stringify(i))}else"outbound-rtp"===r.type&&!1===r.isRemote&&r.id.toLowerCase().includes("outbound")&&(o="webrtc_outbound_"+r.mediaType+"_"+r.ssrc,s={bytesSent:(r.bytesSent-e.stats.outbound[r.mediaType].bytesSent)/e.statsInterval,packetsSent:(r.packetsSent-e.stats.outbound[r.mediaType].packetsSent)/e.statsInterval},a={bytesSent:"bytes",packetsSent:"packets"},"video"===r.mediaType&&(s.framesEncoded=(r.framesEncoded-e.stats.outbound.video.framesEncoded)/e.statsInterval,a.framesEncoded="frames",e.stats.outbound.video.framesEncoded=r.framesEncoded),e.stats.outbound[r.mediaType].bytesSent=r.bytesSent,e.stats.outbound[r.mediaType].packetsSent=r.packetsSent,(i={"@timestamp":new Date(r.timestamp).toISOString(),exec:t.exec,component:t.component,stream:"webRtc",type:o,stream_type:"composed_metrics",units:a})[o]=s,n(JSON.stringify(i)))});else if(-1!==r.name.indexOf("Chrome")||-1!==r.name.indexOf("Opera"))for(var o=0,s=Object.keys(i);o0?this.configuration.iceServers:i(),this.pc=new RTCPeerConnection({iceServers:this.configuration.iceServers}),this.id=t.id?t.id:o.v4(),this.pc.onicecandidate=function(t){if(t.candidate){var n=t.candidate;n?(e.localCandidatesQueue.push({candidate:n.candidate}),e.candidategatheringdone=!1,e.configuration.onicecandidate(t.candidate)):e.candidategatheringdone||(e.candidategatheringdone=!0)}},this.pc.onsignalingstatechange=function(){if("stable"===e.pc.signalingState)for(;e.iceCandidateList.length>0;)e.pc.addIceCandidate(e.iceCandidateList.shift())},this.start()}return t.prototype.start=function(){var t=this;return new Promise(function(e,n){if("closed"===t.pc.signalingState&&n('The peer connection object is in "closed" state. This is most likely due to an invocation of the dispose method before accepting in the dialogue'),t.configuration.mediaStream){for(var r=0,i=t.configuration.mediaStream.getTracks();r0&&(this.inboundStreamOpts.filter.lastExecMethod&&0===Object.keys(this.inboundStreamOpts.filter.lastExecMethod).length&&delete this.inboundStreamOpts.filter.lastExecMethod,this.filter=this.inboundStreamOpts.filter)):(this.outboundStreamOpts=e,this.hasAudio=this.isSendAudio(),this.hasVideo=this.isSendVideo(),this.hasAudio&&(this.audioActive=!!this.outboundStreamOpts.publisherProperties.publishAudio),this.hasVideo&&(this.videoActive=!!this.outboundStreamOpts.publisherProperties.publishVideo,this.frameRate=this.outboundStreamOpts.publisherProperties.frameRate,this.typeOfVideo=this.outboundStreamOpts.publisherProperties.videoSource instanceof MediaStreamTrack?"CUSTOM":this.isSendScreen()?"SCREEN":"CAMERA"),this.outboundStreamOpts.publisherProperties.filter&&(this.filter=this.outboundStreamOpts.publisherProperties.filter)),this.ee.on("mediastream-updated",function(){n.streamManager.updateMediaStream(n.mediaStream),console.debug("Video srcObject ["+n.mediaStream+"] updated in stream ["+n.streamId+"]")})}return t.prototype.on=function(t,e){var n=this;return this.ee.on(t,function(r){r?console.info("Event '"+t+"' triggered by stream '"+n.streamId+"'",r):console.info("Event '"+t+"' triggered by stream '"+n.streamId+"'"),e(r)}),this},t.prototype.once=function(t,e){var n=this;return this.ee.once(t,function(r){r?console.info("Event '"+t+"' triggered once by stream '"+n.streamId+"'",r):console.info("Event '"+t+"' triggered once by stream '"+n.streamId+"'"),e(r)}),this},t.prototype.off=function(t,e){return e?this.ee.off(t,e):this.ee.removeAllListeners(t),this},t.prototype.applyFilter=function(t,e){var n=this;return new Promise(function(i,o){console.info("Applying filter to stream "+n.streamId),"string"!=typeof(e=e||{})&&(e=JSON.stringify(e)),n.session.openvidu.sendRequest("applyFilter",{streamId:n.streamId,type:t,options:e},function(s,l){if(s)console.error("Error applying filter for Stream "+n.streamId,s),o(401===s.code?new c.OpenViduError(c.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to apply a filter"):s);else{console.info("Filter successfully applied on Stream "+n.streamId);var u=n.filter;n.filter=new r.Filter(t,e),n.filter.stream=n,n.session.emitEvent("streamPropertyChanged",[new a.StreamPropertyChangedEvent(n.session,n,"filter",n.filter,u,"applyFilter")]),n.streamManager.emitEvent("streamPropertyChanged",[new a.StreamPropertyChangedEvent(n.streamManager,n,"filter",n.filter,u,"applyFilter")]),i(n.filter)}})})},t.prototype.removeFilter=function(){var t=this;return new Promise(function(e,n){console.info("Removing filter of stream "+t.streamId),t.session.openvidu.sendRequest("removeFilter",{streamId:t.streamId},function(r,i){if(r)console.error("Error removing filter for Stream "+t.streamId,r),n(401===r.code?new c.OpenViduError(c.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to remove a filter"):r);else{console.info("Filter successfully removed from Stream "+t.streamId);var o=t.filter;delete t.filter,t.session.emitEvent("streamPropertyChanged",[new a.StreamPropertyChangedEvent(t.session,t,"filter",t.filter,o,"applyFilter")]),t.streamManager.emitEvent("streamPropertyChanged",[new a.StreamPropertyChangedEvent(t.streamManager,t,"filter",t.filter,o,"applyFilter")]),e()}})})},t.prototype.getMediaStream=function(){return this.mediaStream},t.prototype.setMediaStream=function(t){this.mediaStream=t},t.prototype.updateMediaStreamInVideos=function(){this.ee.emitEvent("mediastream-updated")},t.prototype.getWebRtcPeer=function(){return this.webRtcPeer},t.prototype.getRTCPeerConnection=function(){return this.webRtcPeer.pc},t.prototype.subscribeToMyRemote=function(t){this.isSubscribeToRemote=t},t.prototype.setOutboundStreamOptions=function(t){this.outboundStreamOpts=t},t.prototype.subscribe=function(){var t=this;return new Promise(function(e,n){t.initWebRtcPeerReceive().then(function(){e()}).catch(function(t){n(t)})})},t.prototype.publish=function(){var t=this;return new Promise(function(e,n){t.isLocalStreamReadyToPublish?t.initWebRtcPeerSend().then(function(){e()}).catch(function(t){n(t)}):t.ee.once("stream-ready-to-publish",function(){t.publish().then(function(){e()}).catch(function(t){n(t)})})})},t.prototype.disposeWebRtcPeer=function(){if(this.webRtcPeer){var t=!!this.outboundStreamOpts&&this.outboundStreamOpts.publisherProperties.videoSource instanceof MediaStreamTrack;this.webRtcPeer.dispose(t)}this.speechEvent&&this.speechEvent.stop(),this.stopWebRtcStats(),console.info((this.outboundStreamOpts?"Outbound ":"Inbound ")+"WebRTCPeer from 'Stream' with id ["+this.streamId+"] is now closed")},t.prototype.disposeMediaStream=function(){this.mediaStream&&(this.mediaStream.getAudioTracks().forEach(function(t){t.stop()}),this.mediaStream.getVideoTracks().forEach(function(t){t.stop()}),delete this.mediaStream),console.info((this.outboundStreamOpts?"Local ":"Remote ")+"MediaStream from 'Stream' with id ["+this.streamId+"] is now disposed")},t.prototype.displayMyRemote=function(){return this.isSubscribeToRemote},t.prototype.isSendAudio=function(){return!!this.outboundStreamOpts&&null!==this.outboundStreamOpts.publisherProperties.audioSource&&!1!==this.outboundStreamOpts.publisherProperties.audioSource},t.prototype.isSendVideo=function(){return!!this.outboundStreamOpts&&null!==this.outboundStreamOpts.publisherProperties.videoSource&&!1!==this.outboundStreamOpts.publisherProperties.videoSource},t.prototype.isSendScreen=function(){return!!this.outboundStreamOpts&&"screen"===this.outboundStreamOpts.publisherProperties.videoSource},t.prototype.setSpeechEventIfNotExists=function(){if(!this.speechEvent){var t=this.session.openvidu.advancedConfiguration.publisherSpeakingEventsOptions||{};t.interval="number"==typeof t.interval?t.interval:50,t.threshold="number"==typeof t.threshold?t.threshold:-50,this.speechEvent=u(this.mediaStream,t)}},t.prototype.enableSpeakingEvents=function(){var t=this;this.setSpeechEventIfNotExists(),this.speechEvent.on("speaking",function(){t.session.emitEvent("publisherStartSpeaking",[new s.PublisherSpeakingEvent(t.session,"publisherStartSpeaking",t.connection,t.streamId)])}),this.speechEvent.on("stopped_speaking",function(){t.session.emitEvent("publisherStopSpeaking",[new s.PublisherSpeakingEvent(t.session,"publisherStopSpeaking",t.connection,t.streamId)])})},t.prototype.enableOnceSpeakingEvents=function(){var t=this;this.setSpeechEventIfNotExists(),this.speechEvent.on("speaking",function(){t.session.emitEvent("publisherStartSpeaking",[new s.PublisherSpeakingEvent(t.session,"publisherStartSpeaking",t.connection,t.streamId)]),t.disableSpeakingEvents()}),this.speechEvent.on("stopped_speaking",function(){t.session.emitEvent("publisherStopSpeaking",[new s.PublisherSpeakingEvent(t.session,"publisherStopSpeaking",t.connection,t.streamId)]),t.disableSpeakingEvents()})},t.prototype.disableSpeakingEvents=function(){this.speechEvent.stop(),this.speechEvent=void 0},t.prototype.isLocal=function(){return!this.inboundStreamOpts&&!!this.outboundStreamOpts},t.prototype.getSelectedIceCandidate=function(){var t=this;return new Promise(function(e,n){t.webRtcStats.getSelectedIceCandidateInfo().then(function(t){return e(t)}).catch(function(t){return n(t)})})},t.prototype.getRemoteIceCandidateList=function(){return this.webRtcPeer.remoteCandidatesQueue},t.prototype.getLocalIceCandidateList=function(){return this.webRtcPeer.localCandidatesQueue},t.prototype.initWebRtcPeerSend=function(){var t=this;return new Promise(function(e,n){var r={audio:t.isSendAudio(),video:t.isSendVideo()},o={mediaStream:t.mediaStream,mediaConstraints:r,onicecandidate:t.connection.sendIceCandidate.bind(t.connection),iceServers:t.getIceServersConf(),simulcast:!1};t.webRtcPeer=t.displayMyRemote()?new i.WebRtcPeerSendrecv(o):new i.WebRtcPeerSendonly(o),t.webRtcPeer.generateOffer().then(function(r){!function(r){console.debug("Sending SDP offer to publish as "+t.streamId,r);var i="";t.isSendVideo()&&(i=t.outboundStreamOpts.publisherProperties.videoSource instanceof MediaStreamTrack?"CUSTOM":t.isSendScreen()?"SCREEN":"CAMERA"),t.session.openvidu.sendRequest("publishVideo",{sdpOffer:r,doLoopback:t.displayMyRemote()||!1,hasAudio:t.isSendAudio(),hasVideo:t.isSendVideo(),audioActive:t.audioActive,videoActive:t.videoActive,typeOfVideo:i,frameRate:t.frameRate?t.frameRate:-1,videoDimensions:JSON.stringify(t.videoDimensions),filter:t.outboundStreamOpts.publisherProperties.filter},function(r,i){r?n(401===r.code?new c.OpenViduError(c.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to publish"):"Error on publishVideo: "+JSON.stringify(r)):(t.webRtcPeer.processAnswer(i.sdpAnswer).then(function(){t.streamId=i.id,t.isLocalStreamPublished=!0,t.publishedOnce=!0,t.displayMyRemote()&&t.remotePeerSuccessfullyEstablished(),t.ee.emitEvent("stream-created-by-publisher"),t.initWebRtcStats(),e()}).catch(function(t){n(t)}),console.info("'Publisher' successfully published to session"))})}(r)}).catch(function(t){n(new Error("(publish) SDP offer error: "+JSON.stringify(t)))})})},t.prototype.initWebRtcPeerReceive=function(){var t=this;return new Promise(function(e,n){var r={audio:t.inboundStreamOpts.hasAudio,video:t.inboundStreamOpts.hasVideo};console.debug("'Session.subscribe(Stream)' called. Constraints of generate SDP offer",r);var o={onicecandidate:t.connection.sendIceCandidate.bind(t.connection),mediaConstraints:r,iceServers:t.getIceServersConf(),simulcast:!1};t.webRtcPeer=new i.WebRtcPeerRecvonly(o),t.webRtcPeer.generateOffer().then(function(r){var i;i=r,console.debug("Sending SDP offer to subscribe to "+t.streamId,i),t.session.openvidu.sendRequest("receiveVideoFrom",{sender:t.streamId,sdpOffer:i},function(r,i){r?n(new Error("Error on recvVideoFrom: "+JSON.stringify(r))):t.webRtcPeer.processAnswer(i.sdpAnswer).then(function(){t.remotePeerSuccessfullyEstablished(),t.initWebRtcStats(),e()}).catch(function(t){n(t)})})}).catch(function(t){n(new Error("(subscribe) SDP offer error: "+JSON.stringify(t)))})})},t.prototype.remotePeerSuccessfullyEstablished=function(){var t;this.mediaStream=new MediaStream;for(var e=0,n=this.webRtcPeer.pc.getReceivers();el&&(c=!1,b(),s.debug("Server did not respond to ping message #"+r+". Reconnecting... "),v.reconnectWs()))}))}else s.debug("Trying to send ping, but ping is not enabled");var r}function w(){h||(s.debug("Starting ping (if configured)"),h=!0,void 0!=t.heartbeat&&(e=setInterval(_,t.heartbeat),_()))}this.send=function(t,e,n){"ping"!==t&&s.debug("Request: method:"+t+" params:"+JSON.stringify(e));var r=Date.now();g.encode(t,e,function(i,o){if(i){try{s.error("ERROR:"+i.message+" in Request: method:"+t+" params:"+JSON.stringify(e)+" request:"+i.request),i.data&&s.error("ERROR DATA:"+JSON.stringify(i.data))}catch(t){}i.requestTime=r}n&&(void 0!=o&&"pong"!==o.value&&s.debug("Response: "+JSON.stringify(o)),n(i,o))})},this.close=function(){s.debug("Closing jsonRpcClient explicitly by client"),void 0!=e&&(s.debug("Clearing ping interval"),clearInterval(e)),h=!1,c=!1,t.sendCloseMessage?(s.debug("Sending close message"),this.send("closeSession",null,function(t,e){t&&s.error("Error sending close message: "+JSON.stringify(t)),v.close()})):v.close()},this.forceClose=function(t){v.forceClose(t)},this.reconnect=function(){v.reconnectWs()}}},EcWD:function(t,e){var n,r,i="screen",o=void 0!==window.InstallTrigger;function s(t){if(!t)throw'"callback" parameter is mandatory.';if(n)return t(n);r=t,window.postMessage("get-sourceId","*")}function a(t,e){if(n="",o)return t(null,{mozMediaSource:"window",mediaSource:"window"});var a={mandatory:{chromeMediaSource:i,maxWidth:screen.width>1920?screen.width:1920,maxHeight:screen.height>1080?screen.height:1080},optional:[]};"desktop"!=i||n?("desktop"==i&&(a.mandatory.chromeMediaSourceId=n),t(null,a)):e?function(t){if(!t)throw'"callback" parameter is mandatory.';if(n)return t(n);r=t,window.postMessage("audio-plus-tab","*")}(function(e,n){a.mandatory.chromeMediaSourceId=e,n&&(a.canRequestAudioTrack=!0),t("PermissionDeniedError"==e?e:null,a)}):s(function(e){a.mandatory.chromeMediaSourceId=e,t("PermissionDeniedError"==e?e:null,a)})}window.opera||navigator.userAgent.indexOf(" OPR/"),window,window.addEventListener("message",function(t){t.origin==window.location.origin&&function(t){if("PermissionDeniedError"==t){if(r)return r("PermissionDeniedError");throw new Error("PermissionDeniedError")}"rtcmulticonnection-extension-loaded"==t&&(i="desktop"),t.sourceId&&r&&r(n=t.sourceId,!0===t.canRequestAudioTrack)}(t.data)}),e.getScreenConstraints=a,e.getScreenConstraintsWithAudio=function(t){a(t,!0)},e.isChromeExtensionAvailable=function(t){if(t){if("desktop"==i)return t(!0);window.postMessage("are-you-there","*"),setTimeout(function(){t("screen"!=i)},2e3)}},e.getChromeExtensionStatus=function(t,e){if(o)return e("not-chrome");2!=arguments.length&&(e=t,t="lfcgfepafnobdloecchnfaclibenjold");var n=document.createElement("img");n.src="chrome-extension://"+t+"/icon.png",n.onload=function(){i="screen",window.postMessage("are-you-there","*"),setTimeout(function(){e("screen"==i?"installed-disabled":"installed-enabled")},2e3)},n.onerror=function(){e("not-installed")}},e.getSourceId=s},HgqT:function(t,e){t.exports="function"==typeof Object.create?function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:function(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},HxXY:function(t,e,n){"use strict";var r=n("S+k6").__extends;e.__esModule=!0;var i=n("hzOQ");e.StreamManagerEvent=function(t){function e(e){return t.call(this,!1,e,"streamPlaying")||this}return r(e,t),e.prototype.callDefaultBehavior=function(){},e}(i.Event)},JTMn:function(t,e,n){"use strict";e.__esModule=!0;var r=n("ryRr"),i=n("74bm"),o=n("bk74"),s=n("8KVD"),a=n("+ig+"),l=n("rUL0"),u=n("ksJj"),c=n("suHS"),h=n("Te8r"),d=n("BwMD"),p=n("Tt94"),f=n("/dLB"),m=n("bDgZ"),y=n("6+/i");e.Session=function(){function t(t){this.streamManagers=[],this.remoteStreamsCreated={},this.remoteConnections={},this.speakingEventsEnabled=!1,this.ee=new y,this.openvidu=t}return t.prototype.connect=function(t,e){var n=this;return new Promise(function(r,i){n.processToken(t),n.openvidu.checkSystemRequirements()?(n.options={sessionId:n.sessionId,participantId:t,metadata:e?n.stringClientMetadata(e):""},n.connectAux(t).then(function(){r()}).catch(function(t){i(t)})):i(new p.OpenViduError(p.OpenViduErrorName.BROWSER_NOT_SUPPORTED,"Browser "+m.name+" "+m.version+" is not supported in OpenVidu"))})},t.prototype.disconnect=function(){this.leave(!1,"disconnect")},t.prototype.subscribe=function(t,e,n,r){var i,s={};s=n&&"function"!=typeof n?{insertMode:void 0!==n.insertMode?"string"==typeof n.insertMode?f.VideoInsertMode[n.insertMode]:s.insertMode:f.VideoInsertMode.APPEND,subscribeToAudio:void 0===n.subscribeToAudio||n.subscribeToAudio,subscribeToVideo:void 0===n.subscribeToVideo||n.subscribeToVideo}:{insertMode:f.VideoInsertMode.APPEND,subscribeToAudio:!0,subscribeToVideo:!0},n&&"function"==typeof n?i=n:r&&(i=r),console.info("Subscribing to "+t.connection.connectionId),t.subscribe().then(function(){console.info("Subscribed correctly to "+t.connection.connectionId),void 0!==i&&i(void 0)}).catch(function(t){void 0!==i&&i(t)});var a=new o.Subscriber(t,e,s);return a.targetElement&&t.streamManager.createVideoElement(a.targetElement,s.insertMode),a},t.prototype.subscribeAsync=function(t,e,n){var r=this;return new Promise(function(i,o){var s,a=function(t){t?o(t):i(s)};s=n?r.subscribe(t,e,n,a):r.subscribe(t,e,a)})},t.prototype.unsubscribe=function(t){var e=t.stream.connection.connectionId;console.info("Unsubscribing from "+e),this.openvidu.sendRequest("unsubscribeFromVideo",{sender:t.stream.connection.connectionId},function(n,r){n?console.error("Error unsubscribing from "+e,n):console.info("Unsubscribed correctly from "+e),t.stream.disposeWebRtcPeer(),t.stream.disposeMediaStream()}),t.stream.streamManager.removeAllVideos()},t.prototype.publish=function(t){var e=this;return new Promise(function(n,r){t.session=e,t.stream.session=e,t.stream.publishedOnce?t.initialize().then(function(){e.connection.addStream(t.stream),t.reestablishStreamPlayingEvent(),t.stream.publish().then(function(){n()}).catch(function(t){r(t)})}).catch(function(t){r(t)}):(e.connection.addStream(t.stream),t.stream.publish().then(function(){n()}).catch(function(t){r(t)}))})},t.prototype.unpublish=function(t){var e=t.stream;if(e.connection)if(e.connection===this.connection){console.info("Unpublishing local media ("+e.connection.connectionId+")"),this.openvidu.sendRequest("unpublishVideo",function(t,e){t?console.error(t):console.info("Media unpublished correctly")}),e.disposeWebRtcPeer(),delete e.connection.stream;var n=new h.StreamEvent(!0,t,"streamDestroyed",t.stream,"unpublish");t.emitEvent("streamDestroyed",[n]),n.callDefaultBehavior()}else console.error("The associated Connection object of this Publisher is not your local Connection.Only moderators can force unpublish on remote Streams via 'forceUnpublish' method",e);else console.error("The associated Connection object of this Publisher is null",e)},t.prototype.forceDisconnect=function(t){var e=this;return new Promise(function(n,r){console.info("Forcing disconnect for connection "+t.connectionId),e.openvidu.sendRequest("forceDisconnect",{connectionId:t.connectionId},function(e,i){e?(console.error("Error forcing disconnect for Connection "+t.connectionId,e),r(401===e.code?new p.OpenViduError(p.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to force a disconnection"):e)):(console.info("Forcing disconnect correctly for Connection "+t.connectionId),n())})})},t.prototype.forceUnpublish=function(t){var e=this;return new Promise(function(n,r){console.info("Forcing unpublish for stream "+t.streamId),e.openvidu.sendRequest("forceUnpublish",{streamId:t.streamId},function(e,i){e?(console.error("Error forcing unpublish for Stream "+t.streamId,e),r(401===e.code?new p.OpenViduError(p.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to force an unpublishing"):e)):(console.info("Forcing unpublish correctly for Stream "+t.streamId),n())})})},t.prototype.signal=function(t){var e=this;return new Promise(function(n,r){var i={};if(t.to&&t.to.length>0){var o=[];t.to.forEach(function(t){o.push(t.connectionId)}),i.to=o}else i.to=[];i.data=t.data?t.data:"",i.type=t.type?t.type:"",e.openvidu.sendRequest("sendMessage",{message:JSON.stringify(i)},function(t,e){t?r(t):n()})})},t.prototype.on=function(t,e){if(this.ee.on(t,function(n){n?console.info("Event '"+t+"' triggered by 'Session'",n):console.info("Event '"+t+"' triggered by 'Session'"),e(n)}),"publisherStartSpeaking"===t||"publisherStopSpeaking"===t)for(var n in this.speakingEventsEnabled=!0,this.remoteConnections){var r=this.remoteConnections[n].stream;r&&!r.speechEvent&&r.hasAudio&&r.enableSpeakingEvents()}return this},t.prototype.once=function(t,e){if(this.ee.once(t,function(n){n?console.info("Event '"+t+"' triggered by 'Session'",n):console.info("Event '"+t+"' triggered by 'Session'"),e(n)}),"publisherStartSpeaking"===t||"publisherStopSpeaking"===t)for(var n in this.speakingEventsEnabled=!0,this.remoteConnections){var r=this.remoteConnections[n].stream;r&&!r.speechEvent&&r.hasAudio&&r.enableOnceSpeakingEvents()}return this},t.prototype.off=function(t,e){if(e?this.ee.off(t,e):this.ee.removeAllListeners(t),"publisherStartSpeaking"===t||"publisherStopSpeaking"===t)for(var n in this.speakingEventsEnabled=!1,this.remoteConnections){var r=this.remoteConnections[n].stream;r&&r.speechEvent&&r.disableSpeakingEvents()}return this},t.prototype.onParticipantJoined=function(t){var e=this;this.getConnection(t.id,"").then(function(e){console.warn("Connection "+t.id+" already exists in connections list")}).catch(function(n){var i=new r.Connection(e,t);e.remoteConnections[t.id]=i,e.ee.emitEvent("connectionCreated",[new s.ConnectionEvent(!1,e,"connectionCreated",i,"")])})},t.prototype.onParticipantLeft=function(t){var e=this;this.getRemoteConnection(t.connectionId,"Remote connection "+t.connectionId+" unknown when 'onParticipantLeft'. Existing remote connections: "+JSON.stringify(Object.keys(this.remoteConnections))).then(function(n){if(n.stream){var r=n.stream,i=new h.StreamEvent(!0,e,"streamDestroyed",r,t.reason);e.ee.emitEvent("streamDestroyed",[i]),i.callDefaultBehavior(),delete e.remoteStreamsCreated[r.streamId]}delete e.remoteConnections[n.connectionId],e.ee.emitEvent("connectionDestroyed",[new s.ConnectionEvent(!1,e,"connectionDestroyed",n,t.reason)])}).catch(function(t){console.error(t)})},t.prototype.onParticipantPublished=function(t){var e,n=this,i=function(t){n.remoteConnections[t.connectionId]=t,n.remoteStreamsCreated[t.stream.streamId]||n.ee.emitEvent("streamCreated",[new h.StreamEvent(!1,n,"streamCreated",t.stream,"")]),n.remoteStreamsCreated[t.stream.streamId]=!0};this.getRemoteConnection(t.id,"Remote connection '"+t.id+"' unknown when 'onParticipantPublished'. Existing remote connections: "+JSON.stringify(Object.keys(this.remoteConnections))).then(function(n){e=n,t.metadata=n.data,e.options=t,e.initRemoteStreams(t.streams),i(e)}).catch(function(o){e=new r.Connection(n,t),i(e)})},t.prototype.onParticipantUnpublished=function(t){var e=this;t.connectionId===this.connection.connectionId?this.stopPublisherStream(t.reason):this.getRemoteConnection(t.connectionId,"Remote connection '"+t.connectionId+"' unknown when 'onParticipantUnpublished'. Existing remote connections: "+JSON.stringify(Object.keys(this.remoteConnections))).then(function(n){var r=new h.StreamEvent(!0,e,"streamDestroyed",n.stream,t.reason);e.ee.emitEvent("streamDestroyed",[r]),r.callDefaultBehavior();var i=n.stream.streamId;delete e.remoteStreamsCreated[i],n.removeStream(i)}).catch(function(t){console.error(t)})},t.prototype.onParticipantEvicted=function(t){t.connectionId===this.connection.connectionId&&this.sessionId&&!this.connection.disposed&&this.leave(!0,t.reason)},t.prototype.onNewMessage=function(t){var e=this;console.info("New signal: "+JSON.stringify(t)),this.getConnection(t.from,"Connection '"+t.from+"' unknow when 'onNewMessage'. Existing remote connections: "+JSON.stringify(Object.keys(this.remoteConnections))+". Existing local connection: "+this.connection.connectionId).then(function(n){e.ee.emitEvent("signal",[new c.SignalEvent(e,t.type,t.data,n)]),e.ee.emitEvent("signal:"+t.type,[new c.SignalEvent(e,t.type,t.data,n)])}).catch(function(t){console.error(t)})},t.prototype.onStreamPropertyChanged=function(t){var e=this,n=function(n){if(n.stream&&n.stream.streamId===t.streamId){var r=n.stream,o=void 0;switch(t.property){case"audioActive":o=r.audioActive,t.newValue="true"===t.newValue,r.audioActive=t.newValue;break;case"videoActive":o=r.videoActive,t.newValue="true"===t.newValue,r.videoActive=t.newValue;break;case"videoDimensions":o=r.videoDimensions,t.newValue=JSON.parse(JSON.parse(t.newValue)),r.videoDimensions=t.newValue;break;case"filter":o=r.filter,t.newValue=Object.keys(t.newValue).length>0?t.newValue:void 0,void 0!==t.newValue?(r.filter=new i.Filter(t.newValue.type,t.newValue.options),r.filter.stream=r,t.newValue.lastExecMethod&&(r.filter.lastExecMethod=t.newValue.lastExecMethod)):delete r.filter,t.newValue=r.filter}e.ee.emitEvent("streamPropertyChanged",[new d.StreamPropertyChangedEvent(e,r,t.property,t.newValue,o,t.reason)]),r.streamManager.emitEvent("streamPropertyChanged",[new d.StreamPropertyChangedEvent(r.streamManager,r,t.property,t.newValue,o,t.reason)])}else console.error("No stream with streamId '"+t.streamId+"' found for connection '"+t.connectionId+"' on 'streamPropertyChanged' event")};t.connectionId===this.connection.connectionId?n(this.connection):this.getRemoteConnection(t.connectionId,"Remote connection "+t.connectionId+" unknown when 'onStreamPropertyChanged'. Existing remote connections: "+JSON.stringify(Object.keys(this.remoteConnections))).then(function(t){n(t)}).catch(function(t){console.error(t)})},t.prototype.recvIceCandidate=function(t){var e={candidate:t.candidate,component:t.component,foundation:t.foundation,ip:t.ip,port:t.port,priority:t.priority,protocol:t.protocol,relatedAddress:t.relatedAddress,relatedPort:t.relatedPort,sdpMid:t.sdpMid,sdpMLineIndex:t.sdpMLineIndex,tcpType:t.tcpType,usernameFragment:t.usernameFragment,type:t.type,toJSON:function(){return{candidate:t.candidate}}};this.getConnection(t.endpointName,"Connection not found for endpoint "+t.endpointName+". Ice candidate will be ignored: "+e).then(function(n){var r=n.stream;r.getWebRtcPeer().addIceCandidate(e).catch(function(e){console.error("Error adding candidate for "+r.streamId+" stream of endpoint "+t.endpointName+": "+e)})}).catch(function(t){console.error(t)})},t.prototype.onSessionClosed=function(t){console.info("Session closed: "+JSON.stringify(t));var e=t.sessionId;void 0!==e?this.ee.emitEvent("session-closed",[{session:e}]):console.warn("Session undefined on session closed",t)},t.prototype.onLostConnection=function(){console.warn("Lost connection in Session "+this.sessionId),this.sessionId&&!this.connection.disposed&&this.leave(!0,"networkDisconnect")},t.prototype.onRecoveredConnection=function(){console.warn("Recovered connection in Session "+this.sessionId),this.ee.emitEvent("connectionRecovered",[])},t.prototype.onMediaError=function(t){console.error("Media error: "+JSON.stringify(t));var e=t.error;e?this.ee.emitEvent("error-media",[{error:e}]):console.warn("Received undefined media error. Params:",t)},t.prototype.onRecordingStarted=function(t){this.ee.emitEvent("recordingStarted",[new l.RecordingEvent(this,"recordingStarted",t.id,t.name)])},t.prototype.onRecordingStopped=function(t){this.ee.emitEvent("recordingStopped",[new l.RecordingEvent(this,"recordingStopped",t.id,t.name)])},t.prototype.onFilterEventDispatched=function(t){var e=t.connectionId;this.getConnection(e,"No connection found for connectionId "+e).then(function(e){console.info("Filter event dispatched");var n=e.stream;n.filter.handlers[t.eventType](new a.FilterEvent(n.filter,t.eventType,t.data))})},t.prototype.emitEvent=function(t,e){this.ee.emitEvent(t,e)},t.prototype.leave=function(t,e){var n=this;if(t=!!t,console.info("Leaving Session (forced="+t+")"),this.connection){if(this.connection.disposed||t?this.openvidu.closeWs():this.openvidu.sendRequest("leaveRoom",function(t,e){t&&console.error(t),n.openvidu.closeWs()}),this.stopPublisherStream(e),!this.connection.disposed){var r=new u.SessionDisconnectedEvent(this,e);this.ee.emitEvent("sessionDisconnected",[r]),r.callDefaultBehavior()}}else console.warn("You were not connected to the session "+this.sessionId)},t.prototype.connectAux=function(t){var e=this;return new Promise(function(n,i){e.openvidu.startWs(function(o){if(o)i(o);else{var a={token:t||"",session:e.sessionId,platform:m.description,metadata:e.options.metadata?e.options.metadata:"",secret:e.openvidu.getSecret(),recorder:e.openvidu.getRecorder()};e.openvidu.sendRequest("joinRoom",a,function(t,o){if(t)i(t);else{e.capabilities={subscribe:!0,publish:"SUBSCRIBER"!==e.openvidu.role,forceUnpublish:"MODERATOR"===e.openvidu.role,forceDisconnect:"MODERATOR"===e.openvidu.role},e.connection=new r.Connection(e),e.connection.connectionId=o.id,e.connection.data=o.metadata;var a={connections:new Array,streams:new Array};o.value.forEach(function(t){var n=new r.Connection(e,t);e.remoteConnections[n.connectionId]=n,a.connections.push(n),n.stream&&(e.remoteStreamsCreated[n.stream.streamId]=!0,a.streams.push(n.stream))}),e.ee.emitEvent("connectionCreated",[new s.ConnectionEvent(!1,e,"connectionCreated",e.connection,"")]),a.connections.forEach(function(t){e.ee.emitEvent("connectionCreated",[new s.ConnectionEvent(!1,e,"connectionCreated",t,"")])}),a.streams.forEach(function(t){e.ee.emitEvent("streamCreated",[new h.StreamEvent(!1,e,"streamCreated",t,"")])}),n()}})}})})},t.prototype.stopPublisherStream=function(t){this.connection.stream&&(this.connection.stream.disposeWebRtcPeer(),this.connection.stream.isLocalStreamPublished&&this.connection.stream.ee.emitEvent("local-stream-destroyed",[t]))},t.prototype.stringClientMetadata=function(t){return"string"!=typeof t?JSON.stringify(t):t},t.prototype.getConnection=function(t,e){var n=this;return new Promise(function(r,i){var o=n.remoteConnections[t];o?r(o):n.connection.connectionId===t?r(n.connection):i(new p.OpenViduError(p.OpenViduErrorName.GENERIC_ERROR,e))})},t.prototype.getRemoteConnection=function(t,e){var n=this;return new Promise(function(r,i){var o=n.remoteConnections[t];o?r(o):i(new p.OpenViduError(p.OpenViduErrorName.GENERIC_ERROR,e))})},t.prototype.processToken=function(t){var e=new URL(t);this.sessionId=e.searchParams.get("sessionId");var n=e.searchParams.get("secret"),r=e.searchParams.get("recorder"),i=e.searchParams.get("turnUsername"),o=e.searchParams.get("turnCredential"),s=e.searchParams.get("role");if(n&&(this.openvidu.secret=n),r&&(this.openvidu.recorder=!0),i&&o){var a="turn:"+e.hostname+":3478";this.openvidu.iceServers=[{urls:["stun:"+e.hostname+":3478"]},{urls:[a,a+"?transport=tcp"],username:i,credential:o}],console.log("TURN temp credentials ["+i+":"+o+"]")}s&&(this.openvidu.role=s),this.openvidu.wsUri="wss://"+e.host+"/openvidu"},t}()},KFtI:function(t){t.exports=["stun.l.google.com:19302","stun1.l.google.com:19302","stun2.l.google.com:19302","stun3.l.google.com:19302","stun4.l.google.com:19302","stun.ekiga.net","stun.ideasip.com","stun.schlund.de","stun.stunprotocol.org:3478","stun.voiparound.com","stun.voipbuster.com","stun.voipstunt.com","stun.voxgratia.org"]},P3vI:function(t,e,n){"use strict";e.__esModule=!0;var r=n("HxXY"),i=n("oIG1"),o=n("/dLB"),s=n("6+/i");e.StreamManager=function(){function t(t,e){var n=this;if(this.videos=[],this.lazyLaunchVideoElementCreatedEvent=!1,this.ee=new s,this.stream=t,this.stream.streamManager=this,this.remote=!this.stream.isLocal(),e){var o=void 0;"string"==typeof e?o=document.getElementById(e):e instanceof HTMLElement&&(o=e),o&&(this.firstVideoElement={targetElement:o,video:document.createElement("video"),id:""},this.targetElement=o,this.element=o)}this.canPlayListener=function(){n.stream.isLocal()?n.stream.displayMyRemote()?(console.info("Your own remote 'Stream' with id ["+n.stream.streamId+"] video is now playing"),n.ee.emitEvent("remoteVideoPlaying",[new i.VideoElementEvent(n.videos[0].video,n,"remoteVideoPlaying")])):(console.info("Your local 'Stream' with id ["+n.stream.streamId+"] video is now playing"),n.ee.emitEvent("videoPlaying",[new i.VideoElementEvent(n.videos[0].video,n,"videoPlaying")])):(console.info("Remote 'Stream' with id ["+n.stream.streamId+"] video is now playing"),n.ee.emitEvent("videoPlaying",[new i.VideoElementEvent(n.videos[0].video,n,"videoPlaying")])),n.ee.emitEvent("streamPlaying",[new r.StreamManagerEvent(n)])}}return t.prototype.on=function(t,e){var n=this;return this.ee.on(t,function(r){r?console.info("Event '"+t+"' triggered by '"+(n.remote?"Subscriber":"Publisher")+"'",r):console.info("Event '"+t+"' triggered by '"+(n.remote?"Subscriber":"Publisher")+"'"),e(r)}),"videoElementCreated"===t&&this.stream&&this.lazyLaunchVideoElementCreatedEvent&&(this.ee.emitEvent("videoElementCreated",[new i.VideoElementEvent(this.videos[0].video,this,"videoElementCreated")]),this.lazyLaunchVideoElementCreatedEvent=!1),"streamPlaying"!==t&&"videoPlaying"!==t||this.videos[0]&&this.videos[0].video&&this.videos[0].video.currentTime>0&&!1===this.videos[0].video.paused&&!1===this.videos[0].video.ended&&4===this.videos[0].video.readyState&&(this.ee.emitEvent("streamPlaying",[new r.StreamManagerEvent(this)]),this.ee.emitEvent("videoPlaying",[new i.VideoElementEvent(this.videos[0].video,this,"videoPlaying")])),this},t.prototype.once=function(t,e){return this.ee.once(t,function(n){n?console.info("Event '"+t+"' triggered once",n):console.info("Event '"+t+"' triggered once"),e(n)}),"videoElementCreated"===t&&this.stream&&this.lazyLaunchVideoElementCreatedEvent&&this.ee.emitEvent("videoElementCreated",[new i.VideoElementEvent(this.videos[0].video,this,"videoElementCreated")]),"streamPlaying"!==t&&"videoPlaying"!==t||this.videos[0]&&this.videos[0].video&&this.videos[0].video.currentTime>0&&!1===this.videos[0].video.paused&&!1===this.videos[0].video.ended&&4===this.videos[0].video.readyState&&(this.ee.emitEvent("streamPlaying",[new r.StreamManagerEvent(this)]),this.ee.emitEvent("videoPlaying",[new i.VideoElementEvent(this.videos[0].video,this,"videoPlaying")])),this},t.prototype.off=function(t,e){return e?this.ee.off(t,e):this.ee.removeAllListeners(t),this},t.prototype.addVideoElement=function(t){this.initializeVideoProperties(t),this.stream.isLocal()&&this.stream.displayMyRemote()&&(t.srcObject=this.stream.getMediaStream());for(var e=0,n=this.videos;e=0;--e)this.stream.session.streamManagers[e]===this&&this.stream.session.streamManagers.splice(e,1);this.videos.forEach(function(e){e.video.removeEventListener("canplay",t.canPlayListener),e.targetElement&&(e.video.parentNode.removeChild(e.video),t.ee.emitEvent("videoElementDestroyed",[new i.VideoElementEvent(e.video,t,"videoElementDestroyed")])),e.video.srcObject=null,t.videos.filter(function(t){return!t.targetElement})})},t.prototype.disassociateVideo=function(t){for(var e=!1,n=0;n0&&!1===this.videos[0].video.paused&&!1===this.videos[0].video.ended&&4===this.videos[0].video.readyState&&this.emitEvent("remoteVideoPlaying",[new u.VideoElementEvent(this.videos[0].video,this,"remoteVideoPlaying")]),"accessAllowed"===e&&this.accessAllowed&&this.emitEvent("accessAllowed",[]),"accessDenied"===e&&this.accessDenied&&this.emitEvent("accessDenied",[]),this},e.prototype.once=function(e,n){var r=this;return t.prototype.once.call(this,e,n),"streamCreated"===e&&(this.stream&&this.stream.isLocalStreamPublished?this.emitEvent("streamCreated",[new a.StreamEvent(!1,this,"streamCreated",this.stream,"")]):this.stream.ee.once("stream-created-by-publisher",function(){r.emitEvent("streamCreated",[new a.StreamEvent(!1,r,"streamCreated",r.stream,"")])})),"remoteVideoPlaying"===e&&this.stream.displayMyRemote()&&this.videos[0]&&this.videos[0].video&&this.videos[0].video.currentTime>0&&!1===this.videos[0].video.paused&&!1===this.videos[0].video.ended&&4===this.videos[0].video.readyState&&this.emitEvent("remoteVideoPlaying",[new u.VideoElementEvent(this.videos[0].video,this,"remoteVideoPlaying")]),"accessAllowed"===e&&this.accessAllowed&&this.emitEvent("accessAllowed",[]),"accessDenied"===e&&this.accessDenied&&this.emitEvent("accessDenied",[]),this},e.prototype.initialize=function(){var t=this;return new Promise(function(e,n){var r=function(e){t.accessDenied=!0,t.accessAllowed=!1,n(e)},i=function(n){if(t.accessAllowed=!0,t.accessDenied=!1,t.properties.audioSource instanceof MediaStreamTrack&&(n.removeTrack(n.getAudioTracks()[0]),n.addTrack(t.properties.audioSource)),t.properties.videoSource instanceof MediaStreamTrack&&(n.removeTrack(n.getVideoTracks()[0]),n.addTrack(t.properties.videoSource)),n.getAudioTracks()[0]){var r=void 0!==t.stream.audioActive&&null!==t.stream.audioActive?t.stream.audioActive:!!t.stream.outboundStreamOpts.publisherProperties.publishAudio;n.getAudioTracks()[0].enabled=r}if(n.getVideoTracks()[0]&&(r=void 0!==t.stream.videoActive&&null!==t.stream.videoActive?t.stream.videoActive:!!t.stream.outboundStreamOpts.publisherProperties.publishVideo,n.getVideoTracks()[0].enabled=r),t.videoReference=document.createElement("video"),t.videoReference.srcObject=n,t.stream.setMediaStream(n),t.stream.displayMyRemote()||t.stream.updateMediaStreamInVideos(),t.firstVideoElement&&t.createVideoElement(t.firstVideoElement.targetElement,t.properties.insertMode),delete t.firstVideoElement,t.stream.isSendVideo())if(t.stream.isSendScreen())t.videoReference.onloadedmetadata=function(){t.stream.videoDimensions={width:t.videoReference.videoWidth,height:t.videoReference.videoHeight},t.screenShareResizeInterval=setInterval(function(){var e=n.getVideoTracks()[0].getSettings(),r="Chrome"===h.name?t.videoReference.videoWidth:e.width,i="Chrome"===h.name?t.videoReference.videoHeight:e.height;if(t.stream.isLocalStreamPublished&&(r!==t.stream.videoDimensions.width||i!==t.stream.videoDimensions.height)){var o={width:t.stream.videoDimensions.width,height:t.stream.videoDimensions.height};t.stream.videoDimensions={width:r||0,height:i||0},t.session.openvidu.sendRequest("streamPropertyChanged",{streamId:t.stream.streamId,property:"videoDimensions",newValue:JSON.stringify(t.stream.videoDimensions),reason:"screenResized"},function(e,n){e?console.error("Error sending 'streamPropertyChanged' event",e):(t.session.emitEvent("streamPropertyChanged",[new l.StreamPropertyChangedEvent(t.session,t.stream,"videoDimensions",t.stream.videoDimensions,o,"screenResized")]),t.emitEvent("streamPropertyChanged",[new l.StreamPropertyChangedEvent(t,t.stream,"videoDimensions",t.stream.videoDimensions,o,"screenResized")]))})}},500),t.stream.isLocalStreamReadyToPublish=!0,t.stream.ee.emitEvent("stream-ready-to-publish",[])};else{var i=n.getVideoTracks()[0].getSettings(),o=i.width,s=i.height;t.stream.videoDimensions=-1!==h.name.toLowerCase().indexOf("mobile")&&window.innerHeight>window.innerWidth?{width:s||0,height:o||0}:{width:o||0,height:s||0},t.stream.isLocalStreamReadyToPublish=!0,t.stream.ee.emitEvent("stream-ready-to-publish",[])}else t.stream.isLocalStreamReadyToPublish=!0,t.stream.ee.emitEvent("stream-ready-to-publish",[]);e()};if(t.properties.videoSource instanceof MediaStreamTrack&&!t.properties.audioSource||t.properties.audioSource instanceof MediaStreamTrack&&!t.properties.videoSource||t.properties.videoSource instanceof MediaStreamTrack&&t.properties.audioSource instanceof MediaStreamTrack){var o=new MediaStream;return t.properties.videoSource instanceof MediaStreamTrack&&o.addTrack(t.properties.videoSource),t.properties.audioSource instanceof MediaStreamTrack&&o.addTrack(t.properties.audioSource),void i(o)}t.openvidu.generateMediaConstraints(t.properties).then(function(e){t.stream.setOutboundStreamOptions({mediaConstraints:e,publisherProperties:t.properties});var o={};if(t.stream.isSendVideo()||t.stream.isSendAudio()){var s=void 0===e.audio||e.audio;o.audio=!t.stream.isSendScreen()&&s,o.video=e.video;var a=Date.now();t.setPermissionDialogTimer(1250),navigator.mediaDevices.getUserMedia(o).then(function(n){t.clearPermissionDialogTimer(a,1250),t.stream.isSendScreen()&&t.stream.isSendAudio()?(o.audio=s,o.video=!1,a=Date.now(),t.setPermissionDialogTimer(1250),navigator.mediaDevices.getUserMedia(o).then(function(e){t.clearPermissionDialogTimer(a,1250),n.addTrack(e.getAudioTracks()[0]),i(n)}).catch(function(n){var i,o;switch(t.clearPermissionDialogTimer(a,1250),n.name.toLowerCase()){case"notfounderror":i=c.OpenViduErrorName.INPUT_AUDIO_DEVICE_NOT_FOUND,o=n.toString(),r(new c.OpenViduError(i,o));break;case"notallowederror":i=c.OpenViduErrorName.DEVICE_ACCESS_DENIED,o=n.toString(),r(new c.OpenViduError(i,o));break;case"overconstrainederror":"deviceid"===n.constraint.toLowerCase()?(i=c.OpenViduErrorName.INPUT_AUDIO_DEVICE_NOT_FOUND,o="Audio input device with deviceId '"+e.video.deviceId.exact+"' not found"):(i=c.OpenViduErrorName.PUBLISHER_PROPERTIES_ERROR,o="Audio input device doesn't support the value passed for constraint '"+n.constraint+"'"),r(new c.OpenViduError(i,o))}})):i(n)}).catch(function(n){var i,o;switch(t.clearPermissionDialogTimer(a,1250),n.name.toLowerCase()){case"notfounderror":navigator.mediaDevices.getUserMedia({audio:!1,video:e.video}).then(function(t){t.getVideoTracks().forEach(function(t){t.stop()}),i=c.OpenViduErrorName.INPUT_AUDIO_DEVICE_NOT_FOUND,o=n.toString(),r(new c.OpenViduError(i,o))}).catch(function(t){i=c.OpenViduErrorName.INPUT_VIDEO_DEVICE_NOT_FOUND,o=n.toString(),r(new c.OpenViduError(i,o))});break;case"notallowederror":i=t.stream.isSendScreen()?c.OpenViduErrorName.SCREEN_CAPTURE_DENIED:c.OpenViduErrorName.DEVICE_ACCESS_DENIED,o=n.toString(),r(new c.OpenViduError(i,o));break;case"overconstrainederror":navigator.mediaDevices.getUserMedia({audio:!1,video:e.video}).then(function(t){t.getVideoTracks().forEach(function(t){t.stop()}),"deviceid"===n.constraint.toLowerCase()?(i=c.OpenViduErrorName.INPUT_AUDIO_DEVICE_NOT_FOUND,o="Audio input device with deviceId '"+e.audio.deviceId.exact+"' not found"):(i=c.OpenViduErrorName.PUBLISHER_PROPERTIES_ERROR,o="Audio input device doesn't support the value passed for constraint '"+n.constraint+"'"),r(new c.OpenViduError(i,o))}).catch(function(t){"deviceid"===n.constraint.toLowerCase()?(i=c.OpenViduErrorName.INPUT_VIDEO_DEVICE_NOT_FOUND,o="Video input device with deviceId '"+e.video.deviceId.exact+"' not found"):(i=c.OpenViduErrorName.PUBLISHER_PROPERTIES_ERROR,o="Video input device doesn't support the value passed for constraint '"+n.constraint+"'"),r(new c.OpenViduError(i,o))})}})}else n(new c.OpenViduError(c.OpenViduErrorName.NO_INPUT_SOURCE_SET,"Properties 'audioSource' and 'videoSource' cannot be set to false or null at the same time when calling 'OpenVidu.initPublisher'"))}).catch(function(t){r(t)})})},e.prototype.reestablishStreamPlayingEvent=function(){this.ee.getListeners("streamPlaying").length>0&&this.addPlayEventToFirstVideo()},e.prototype.setPermissionDialogTimer=function(t){var e=this;this.permissionDialogTimeout=setTimeout(function(){e.emitEvent("accessDialogOpened",[])},t)},e.prototype.clearPermissionDialogTimer=function(t,e){clearTimeout(this.permissionDialogTimeout),Date.now()-t>e&&this.emitEvent("accessDialogClosed",[])},e}(s.StreamManager)},PPcv:function(t,e,n){"use strict";e.__esModule=!0;var r=n("tInm"),i=n("PEz1"),o=n("JTMn"),s=n("BwMD"),a=n("Tt94"),l=n("/dLB"),u=n("+27z"),c=n("EcWD"),h=n("AeG9"),d=n("bDgZ");e.OpenVidu=function(){function t(){var t=this;this.publishers=[],this.secret="",this.recorder=!1,this.advancedConfiguration={},console.info("'OpenVidu' initialized"),-1!==d.name.toLowerCase().indexOf("mobile")&&(window.onorientationchange=function(){t.publishers.forEach(function(e){if(e.stream&&e.stream.hasVideo&&e.stream.streamManager.videos[0])var n=0,r=e.stream.videoDimensions.width,i=e.stream.videoDimensions.height,o=e.stream.getMediaStream().getVideoTracks()[0].getSettings(),a=-1!==d.name.toLowerCase().indexOf("firefox")?o.width:e.videoReference.videoWidth,l=-1!==d.name.toLowerCase().indexOf("firefox")?o.height:e.videoReference.videoHeight,u=setInterval(function(){o=e.stream.getMediaStream().getVideoTracks()[0].getSettings(),a=-1!==d.name.toLowerCase().indexOf("firefox")?o.width:e.videoReference.videoWidth,l=-1!==d.name.toLowerCase().indexOf("firefox")?o.height:e.videoReference.videoHeight,c(r,i,a,l)},100),c=function(r,i,o,a){++n>4&&clearTimeout(u),o===r&&a===i||(e.stream.videoDimensions={width:o||0,height:a||0},t.sendRequest("streamPropertyChanged",{streamId:e.stream.streamId,property:"videoDimensions",newValue:JSON.stringify(e.stream.videoDimensions),reason:"deviceRotated"},function(n,o){n?console.error("Error sending 'streamPropertyChanged' event",n):(t.session.emitEvent("streamPropertyChanged",[new s.StreamPropertyChangedEvent(t.session,e.stream,"videoDimensions",e.stream.videoDimensions,{width:r,height:i},"deviceRotated")]),e.emitEvent("streamPropertyChanged",[new s.StreamPropertyChangedEvent(e,e.stream,"videoDimensions",e.stream.videoDimensions,{width:r,height:i},"deviceRotated")]))}),clearTimeout(u))}})})}return t.prototype.initSession=function(){return this.session=new o.Session(this),this.session},t.prototype.initPublisher=function(t,e,n){var r;r=e&&"function"!=typeof e?{audioSource:void 0!==(r=e).audioSource?r.audioSource:void 0,frameRate:r.videoSource instanceof MediaStreamTrack?void 0:void 0!==r.frameRate?r.frameRate:void 0,insertMode:void 0!==r.insertMode?"string"==typeof r.insertMode?l.VideoInsertMode[r.insertMode]:r.insertMode:l.VideoInsertMode.APPEND,mirror:void 0===r.mirror||r.mirror,publishAudio:void 0===r.publishAudio||r.publishAudio,publishVideo:void 0===r.publishVideo||r.publishVideo,resolution:r.videoSource instanceof MediaStreamTrack?void 0:void 0!==r.resolution?r.resolution:"640x480",videoSource:void 0!==r.videoSource?r.videoSource:void 0,filter:r.filter}:{insertMode:l.VideoInsertMode.APPEND,mirror:!0,publishAudio:!0,publishVideo:!0,resolution:"640x480"};var o,s=new i.Publisher(t,r,this);return e&&"function"==typeof e?o=e:n&&(o=n),s.initialize().then(function(){void 0!==o&&o(void 0),s.emitEvent("accessAllowed",[])}).catch(function(t){void 0!==o&&o(t),s.emitEvent("accessDenied",[])}),this.publishers.push(s),s},t.prototype.initPublisherAsync=function(t,e){var n=this;return new Promise(function(r,i){var o,s=function(t){t?i(t):r(o)};o=e?n.initPublisher(t,e,s):n.initPublisher(t,s)})},t.prototype.initLocalRecorder=function(t){return new r.LocalRecorder(t)},t.prototype.checkSystemRequirements=function(){var t=d.name;return"Chrome"!==t&&"Chrome Mobile"!==t&&"Firefox"!==t&&"Firefox Mobile"!==t&&"Firefox for iOS"!==t&&"Opera"!==t&&"Opera Mobile"!==t&&"Safari"!==t?0:1},t.prototype.checkScreenSharingCapabilities=function(){var t=d.name;return"Chrome"!==t&&"Firefox"!==t&&"Opera"!==t?0:1},t.prototype.getDevices=function(){return new Promise(function(t,e){navigator.mediaDevices.enumerateDevices().then(function(e){var n=[];e.forEach(function(t){"audioinput"!==t.kind&&"videoinput"!==t.kind||n.push({kind:t.kind,deviceId:t.deviceId,label:t.label})}),t(n)}).catch(function(t){console.error("Error getting devices",t),e(t)})})},t.prototype.getUserMedia=function(t){var e=this;return new Promise(function(n,r){e.generateMediaConstraints(t).then(function(e){navigator.mediaDevices.getUserMedia(e).then(function(t){n(t)}).catch(function(e){var n=e.toString();r(new a.OpenViduError("screen"!==t.videoSource?a.OpenViduErrorName.DEVICE_ACCESS_DENIED:a.OpenViduErrorName.SCREEN_CAPTURE_DENIED,n))})}).catch(function(t){r(t)})})},t.prototype.enableProdMode=function(){console.log=function(){},console.debug=function(){},console.info=function(){},console.warn=function(){}},t.prototype.setAdvancedConfiguration=function(t){this.advancedConfiguration=t},t.prototype.generateMediaConstraints=function(t){var e=this;return new Promise(function(n,r){var i={audio:null!==t.audioSource&&!1!==t.audioSource&&(void 0===t.audioSource||t.audioSource),video:null!==t.videoSource&&!1!==t.videoSource&&{height:{ideal:480},width:{ideal:640}}};if("string"==typeof i.audio&&(i.audio={deviceId:{exact:i.audio}}),i.video){if(t.resolution){var o=t.resolution.toLowerCase().split("x"),s=Number(o[0]),l=Number(o[1]);i.video.width.ideal=s,i.video.height.ideal=l}if(t.frameRate&&(i.video.frameRate={ideal:t.frameRate}),t.videoSource&&"string"==typeof t.videoSource)if("screen"===t.videoSource||-1!==d.name.indexOf("Firefox")&&"window"===t.videoSource)if("Chrome"!==d.name&&-1===d.name.indexOf("Firefox")&&"Opera"!==d.name){var h=new a.OpenViduError(a.OpenViduErrorName.SCREEN_SHARING_NOT_SUPPORTED,"You can only screen share in desktop Chrome and Firefox. Detected browser: "+d.name);console.error(h),r(h)}else{if(e.advancedConfiguration.screenShareChromeExtension&&-1===d.name.indexOf("Firefox"))c.getScreenConstraints(function(t,o){if(t||o.mandatory&&"screen"===o.mandatory.chromeMediaSource)if("permission-denied"===t||"PermissionDeniedError"===t){var s=new a.OpenViduError(a.OpenViduErrorName.SCREEN_CAPTURE_DENIED,"You must allow access to one window of your desktop");console.error(s),r(s)}else{var l=e.advancedConfiguration.screenShareChromeExtension.split("/").pop().trim();c.getChromeExtensionStatus(l,function(t){if("installed-disabled"===t){var n=new a.OpenViduError(a.OpenViduErrorName.SCREEN_EXTENSION_DISABLED,"You must enable the screen extension");console.error(n),r(n)}if("not-installed"===t){var i=new a.OpenViduError(a.OpenViduErrorName.SCREEN_EXTENSION_NOT_INSTALLED,e.advancedConfiguration.screenShareChromeExtension);console.error(i),r(i)}})}else i.video=o,n(i)});else{var p=-1!==d.name.indexOf("Firefox")?t.videoSource:void 0;u.getScreenId(p,function(t,o,s){if(t){if("not-installed"===t){var l=new a.OpenViduError(a.OpenViduErrorName.SCREEN_EXTENSION_NOT_INSTALLED,e.advancedConfiguration.screenShareChromeExtension?e.advancedConfiguration.screenShareChromeExtension:"https://chrome.google.com/webstore/detail/openvidu-screensharing/lfcgfepafnobdloecchnfaclibenjold");console.error(l),r(l)}else if("installed-disabled"===t){var u=new a.OpenViduError(a.OpenViduErrorName.SCREEN_EXTENSION_DISABLED,"You must enable the screen extension");console.error(u),r(u)}else if("permission-denied"===t){var c=new a.OpenViduError(a.OpenViduErrorName.SCREEN_CAPTURE_DENIED,"You must allow access to one window of your desktop");console.error(c),r(c)}}else i.video=s.video,n(i)})}t.videoSource="screen"}else i.video.deviceId={exact:t.videoSource},n(i);else n(i)}else n(i)})},t.prototype.startWs=function(t){var e={heartbeat:5e3,sendCloseMessage:!1,ws:{uri:this.wsUri,useSockJS:!1,onconnected:t,ondisconnect:this.disconnectCallback.bind(this),onreconnecting:this.reconnectingCallback.bind(this),onreconnected:this.reconnectedCallback.bind(this)},rpc:{requestTimeout:1e4,participantJoined:this.session.onParticipantJoined.bind(this.session),participantPublished:this.session.onParticipantPublished.bind(this.session),participantUnpublished:this.session.onParticipantUnpublished.bind(this.session),participantLeft:this.session.onParticipantLeft.bind(this.session),participantEvicted:this.session.onParticipantEvicted.bind(this.session),recordingStarted:this.session.onRecordingStarted.bind(this.session),recordingStopped:this.session.onRecordingStopped.bind(this.session),sendMessage:this.session.onNewMessage.bind(this.session),streamPropertyChanged:this.session.onStreamPropertyChanged.bind(this.session),filterEventDispatched:this.session.onFilterEventDispatched.bind(this.session),iceCandidate:this.session.recvIceCandidate.bind(this.session),mediaError:this.session.onMediaError.bind(this.session)}};this.jsonRpcClient=new h.clients.JsonRpcClient(e)},t.prototype.closeWs=function(){this.jsonRpcClient.close()},t.prototype.sendRequest=function(t,e,n){e&&e instanceof Function&&(n=e,e={}),console.debug('Sending request: {method:"'+t+'", params: '+JSON.stringify(e)+"}"),this.jsonRpcClient.send(t,e,n)},t.prototype.getWsUri=function(){return this.wsUri},t.prototype.getSecret=function(){return this.secret},t.prototype.getRecorder=function(){return this.recorder},t.prototype.disconnectCallback=function(){console.warn("Websocket connection lost"),this.isRoomAvailable()?this.session.onLostConnection():alert("Connection error. Please reload page.")},t.prototype.reconnectingCallback=function(){console.warn("Websocket connection lost (reconnecting)"),this.isRoomAvailable()?this.session.onLostConnection():alert("Connection error. Please reload page.")},t.prototype.reconnectedCallback=function(){console.warn("Websocket reconnected"),this.isRoomAvailable()?this.session.onRecoveredConnection():alert("Connection error. Please reload page.")},t.prototype.isRoomAvailable=function(){return void 0!==this.session&&this.session instanceof o.Session||(console.warn("Session instance not found"),!1)},t}()},PZzU:function(t,e,n){"use strict";e.__esModule=!0;var r=n("PPcv");e.OpenVidu=r.OpenVidu;var i=n("JTMn");e.Session=i.Session;var o=n("PEz1");e.Publisher=o.Publisher;var s=n("bk74");e.Subscriber=s.Subscriber;var a=n("P3vI");e.StreamManager=a.StreamManager;var l=n("DPKQ");e.Stream=l.Stream;var u=n("ryRr");e.Connection=u.Connection;var c=n("tInm");e.LocalRecorder=c.LocalRecorder;var h=n("74bm");e.Filter=h.Filter;var d=n("Yn0Z");e.LocalRecorderState=d.LocalRecorderState;var p=n("Tt94");e.OpenViduError=p.OpenViduError;var f=n("/dLB");e.VideoInsertMode=f.VideoInsertMode;var m=n("hzOQ");e.Event=m.Event;var y=n("8KVD");e.ConnectionEvent=y.ConnectionEvent;var v=n("e8ps");e.PublisherSpeakingEvent=v.PublisherSpeakingEvent;var g=n("rUL0");e.RecordingEvent=g.RecordingEvent;var b=n("ksJj");e.SessionDisconnectedEvent=b.SessionDisconnectedEvent;var _=n("suHS");e.SignalEvent=_.SignalEvent;var w=n("Te8r");e.StreamEvent=w.StreamEvent;var S=n("HxXY");e.StreamManagerEvent=S.StreamManagerEvent;var E=n("oIG1");e.VideoElementEvent=E.VideoElementEvent;var C=n("BwMD");e.StreamPropertyChangedEvent=C.StreamPropertyChangedEvent;var x=n("+ig+");e.FilterEvent=x.FilterEvent},"S+k6":function(t,e,n){"use strict";n.r(e),n.d(e,"__extends",function(){return i}),n.d(e,"__assign",function(){return o}),n.d(e,"__rest",function(){return s}),n.d(e,"__decorate",function(){return a}),n.d(e,"__param",function(){return l}),n.d(e,"__metadata",function(){return u}),n.d(e,"__awaiter",function(){return c}),n.d(e,"__generator",function(){return h}),n.d(e,"__exportStar",function(){return d}),n.d(e,"__values",function(){return p}),n.d(e,"__read",function(){return f}),n.d(e,"__spread",function(){return m}),n.d(e,"__await",function(){return y}),n.d(e,"__asyncGenerator",function(){return v}),n.d(e,"__asyncDelegator",function(){return g}),n.d(e,"__asyncValues",function(){return b}),n.d(e,"__makeTemplateObject",function(){return _}),n.d(e,"__importStar",function(){return w}),n.d(e,"__importDefault",function(){return S});var r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function i(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s}function l(t,e){return function(n,r){e(n,r,t)}}function u(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function c(t,e,n,r){return new(n||(n=Promise))(function(i,o){function s(t){try{l(r.next(t))}catch(t){o(t)}}function a(t){try{l(r.throw(t))}catch(t){o(t)}}function l(t){t.done?i(t.value):new n(function(e){e(t.value)}).then(s,a)}l((r=r.apply(t,e||[])).next())})}function h(t,e){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}function f(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function m(){for(var t=[],e=0;e1||a(t,e)})})}function a(t,e){try{(n=i[t](e)).value instanceof y?Promise.resolve(n.value.v).then(l,u):c(o[0][2],n)}catch(t){c(o[0][3],t)}var n}function l(t){a("next",t)}function u(t){a("throw",t)}function c(t,e){t(e),o.shift(),o.length&&a(o[0][0],o[0][1])}}function g(t){var e,n;return e={},r("next"),r("throw",function(t){throw t}),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,i){e[r]=t[r]?function(e){return(n=!n)?{value:y(t[r](e)),done:"return"===r}:i?i(e):e}:i}}function b(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=p(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise(function(r,i){!function(t,e,n,r){Promise.resolve(r).then(function(e){t({value:e,done:n})},e)}(r,i,(e=t[n](e)).done,e.value)})}}}function _(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function w(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function S(t){return t&&t.__esModule?t:{default:t}}},SYuc:function(t,e,n){var r=n("EDod");e.JsonRpcClient=r},Te8r:function(t,e,n){"use strict";var r=n("S+k6").__extends;e.__esModule=!0;var i=n("hzOQ"),o=n("PEz1"),s=n("JTMn");e.StreamEvent=function(t){function e(e,n,r,i,o){var s=t.call(this,e,n,r)||this;return s.stream=i,s.reason=o,s}return r(e,t),e.prototype.callDefaultBehavior=function(){if("streamDestroyed"===this.type){if(this.target instanceof s.Session)console.info("Calling default behavior upon '"+this.type+"' event dispatched by 'Session'"),this.stream.disposeWebRtcPeer();else if(this.target instanceof o.Publisher){console.info("Calling default behavior upon '"+this.type+"' event dispatched by 'Publisher'"),clearInterval(this.target.screenShareResizeInterval),this.stream.isLocalStreamReadyToPublish=!1;for(var t=this.target.openvidu.publishers,e=0;e=0;--e)r[e].id===this.stream.streamId&&r.splice(e,1)}}},e}(i.Event)},Tt94:function(t,e,n){"use strict";e.__esModule=!0,function(t){t.BROWSER_NOT_SUPPORTED="BROWSER_NOT_SUPPORTED",t.DEVICE_ACCESS_DENIED="DEVICE_ACCESS_DENIED",t.SCREEN_CAPTURE_DENIED="SCREEN_CAPTURE_DENIED",t.SCREEN_SHARING_NOT_SUPPORTED="SCREEN_SHARING_NOT_SUPPORTED",t.SCREEN_EXTENSION_NOT_INSTALLED="SCREEN_EXTENSION_NOT_INSTALLED",t.SCREEN_EXTENSION_DISABLED="SCREEN_EXTENSION_DISABLED",t.INPUT_VIDEO_DEVICE_NOT_FOUND="INPUT_VIDEO_DEVICE_NOT_FOUND",t.INPUT_AUDIO_DEVICE_NOT_FOUND="INPUT_AUDIO_DEVICE_NOT_FOUND",t.NO_INPUT_SOURCE_SET="NO_INPUT_SOURCE_SET",t.PUBLISHER_PROPERTIES_ERROR="PUBLISHER_PROPERTIES_ERROR",t.OPENVIDU_PERMISSION_DENIED="OPENVIDU_PERMISSION_DENIED",t.OPENVIDU_NOT_CONNECTED="OPENVIDU_NOT_CONNECTED",t.GENERIC_ERROR="GENERIC_ERROR"}(e.OpenViduErrorName||(e.OpenViduErrorName={})),e.OpenViduError=function(t,e){this.name=t,this.message=e}},VZ2u:function(t,e,n){var r=n("jrAl"),i=n("qa4Q");t.exports=function(t,e,n){var o=e&&n||0;"string"==typeof t&&(e="binary"===t?new Array(16):null,t=null);var s=(t=t||{}).random||(t.rng||r)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,e)for(var a=0;a<16;++a)e[o+a]=s[a];return e||i(s)}},"Wfi+":function(t,e,n){var r=n("k3G7"),i=n("VZ2u"),o=i;o.v1=r,o.v4=i,t.exports=o},Yn0Z:function(t,e,n){"use strict";e.__esModule=!0,function(t){t.READY="READY",t.RECORDING="RECORDING",t.PAUSED="PAUSED",t.FINISHED="FINISHED"}(e.LocalRecorderState||(e.LocalRecorderState={}))},YuTi:function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},bDgZ:function(t,e,n){(function(t){var r;(function(){"use strict";var i={function:!0,object:!0},o=i[typeof window]&&window||this,s=i[typeof e]&&e&&i[typeof t]&&t&&!t.nodeType&&t&&"object"==typeof global&&global;!s||s.global!==s&&s.window!==s&&s.self!==s||(o=s);var a=Math.pow(2,53)-1,l=/\bOpera/,u=Object.prototype,c=u.hasOwnProperty,h=u.toString;function d(t){return(t=String(t)).charAt(0).toUpperCase()+t.slice(1)}function p(t){return t=g(t),/^(?:webOS|i(?:OS|P))/.test(t)?t:d(t)}function f(t,e){for(var n in t)c.call(t,n)&&e(t[n],n,t)}function m(t){return null==t?d(t):h.call(t).slice(8,-1)}function y(t){return String(t).replace(/([ -])(?!$)/g,"$1?")}function v(t,e){var n=null;return function(t,e){var n=-1,r=t?t.length:0;if("number"==typeof r&&r>-1&&r<=a)for(;++n3?"WebKit":/\bOpera\b/.test(F)&&(/\bOPR\b/.test(e)?"Blink":"Presto"))||/\b(?:Midori|Nook|Safari)\b/i.test(e)&&!/^(?:Trident|EdgeHTML)$/.test(V)&&"WebKit"||!V&&/\bMSIE\b/i.test(e)&&("Mac OS"==U?"Tasman":"Trident")||"WebKit"==V&&/\bPlayStation\b(?! Vita\b)/i.test(F)&&"NetFront")&&(V=[a]),"IE"==F&&(a=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(e)||0)[1])?(F+=" Mobile",U="Windows Phone "+(/\+$/.test(a)?a:a+".x"),N.unshift("desktop mode")):/\bWPDesktop\b/i.test(e)?(F="IE Mobile",U="Windows Phone 8.x",N.unshift("desktop mode"),L||(L=(/\brv:([\d.]+)/.exec(e)||0)[1])):"IE"!=F&&"Trident"==V&&(a=/\brv:([\d.]+)/.exec(e))&&(F&&N.push("identifying as "+F+(L?" "+L:"")),F="IE",L=a[1]),M){if(d="global",/^(?:boolean|number|string|undefined)$/.test(b=null!=(c=n)?typeof c[d]:"number")||"object"==b&&!c[d])m(a=n.runtime)==w?(F="Adobe AIR",U=a.flash.system.Capabilities.os):m(a=n.phantom)==C?(F="PhantomJS",L=(a=a.version||null)&&a.major+"."+a.minor+"."+a.patch):"number"==typeof T.documentMode&&(a=/\bTrident\/(\d+)/i.exec(e))?((a=+a[1]+4)!=(L=[L,T.documentMode])[1]&&(N.push("IE "+L[1]+" mode"),V&&(V[1]=""),L[1]=a),L="IE"==F?String(L[1].toFixed(1)):L[0]):"number"==typeof T.documentMode&&/^(?:Chrome|Firefox)\b/.test(F)&&(N.push("masking as "+F+" "+L),F="IE",L="11.0",V=["Trident"],U="Windows");else if(x&&(A=(a=x.lang.System).getProperty("os.arch"),U=U||a.getProperty("os.name")+" "+a.getProperty("os.version")),k){try{L=n.require("ringo/engine").version.join("."),F="RingoJS"}catch(t){(a=n.system)&&a.global.system==n.system&&(F="Narwhal",U||(U=a[0].os||null))}F||(F="Rhino")}else"object"==typeof n.process&&!n.process.browser&&(a=n.process)&&("object"==typeof a.versions&&("string"==typeof a.versions.electron?(N.push("Node "+a.versions.node),F="Electron",L=a.versions.electron):"string"==typeof a.versions.nw&&(N.push("Chromium "+L,"Node "+a.versions.node),F="NW.js",L=a.versions.nw)),F||(F="Node.js",A=a.arch,U=a.platform,L=(L=/[\d.]+/.exec(a.version))?L[0]:null));U=U&&p(U)}if(L&&(a=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(L)||/(?:alpha|beta)(?: ?\d)?/i.exec(e+";"+(M&&i.appMinorVersion))||/\bMinefield\b/i.test(e)&&"a")&&(D=/b/i.test(a)?"beta":"alpha",L=L.replace(RegExp(a+"\\+?$"),"")+("beta"==D?I:O)+(/\d+\+?/.exec(a)||"")),"Fennec"==F||"Firefox"==F&&/\b(?:Android|Firefox OS)\b/.test(U))F="Firefox Mobile";else if("Maxthon"==F&&L)L=L.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(j))"Xbox 360"==j&&(U=null),"Xbox 360"==j&&/\bIEMobile\b/.test(e)&&N.unshift("mobile mode");else if(!/^(?:Chrome|IE|Opera)$/.test(F)&&(!F||j||/Browser|Mobi/.test(F))||"Windows CE"!=U&&!/Mobi/i.test(e))if("IE"==F&&M)try{null===n.external&&N.unshift("platform preview")}catch(t){N.unshift("embedded")}else(/\bBlackBerry\b/.test(j)||/\bBB10\b/.test(e))&&(a=(RegExp(j.replace(/ +/g," *")+"/([.\\d]+)","i").exec(e)||0)[1]||L)?(U=((a=[a,/BB10/.test(e)])[1]?(j=null,B="BlackBerry"):"Device Software")+" "+a[0],L=null):this!=f&&"Wii"!=j&&(M&&P||/Opera/.test(F)&&/\b(?:MSIE|Firefox)\b/i.test(e)||"Firefox"==F&&/\bOS X (?:\d+\.){2,}/.test(U)||"IE"==F&&(U&&!/^Win/.test(U)&&L>5.5||/\bWindows XP\b/.test(U)&&L>8||8==L&&!/\bTrident\b/.test(e)))&&!l.test(a=t.call(f,e.replace(l,"")+";"))&&a.name&&(a="ing as "+a.name+((a=a.version)?" "+a:""),l.test(F)?(/\bIE\b/.test(a)&&"Mac OS"==U&&(U=null),a="identify"+a):(a="mask"+a,F=R?p(R.replace(/([a-z])([A-Z])/g,"$1 $2")):"Opera",/\bIE\b/.test(a)&&(U=null),M||(L=null)),V=["Presto"],N.push(a));else F+=" Mobile";(a=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(e)||0)[1])&&(a=[parseFloat(a.replace(/\.(\d)$/,".0$1")),a],"Safari"==F&&"+"==a[1].slice(-1)?(F="WebKit Nightly",D="alpha",L=a[1].slice(0,-1)):L!=a[1]&&L!=(a[2]=(/\bSafari\/([\d.]+\+?)/i.exec(e)||0)[1])||(L=null),a[1]=(/\bChrome\/([\d.]+)/i.exec(e)||0)[1],537.36==a[0]&&537.36==a[2]&&parseFloat(a[1])>=28&&"WebKit"==V&&(V=["Blink"]),M&&(_||a[1])?(V&&(V[1]="like Chrome"),a=a[1]||((a=a[0])<530?1:a<532?2:a<532.05?3:a<533?4:a<534.03?5:a<534.07?6:a<534.1?7:a<534.13?8:a<534.16?9:a<534.24?10:a<534.3?11:a<535.01?12:a<535.02?"13+":a<535.07?15:a<535.11?16:a<535.19?17:a<536.05?18:a<536.1?19:a<537.01?20:a<537.11?"21+":a<537.13?23:a<537.18?24:a<537.24?25:a<537.36?26:"Blink"!=V?"27":"28")):(V&&(V[1]="like Safari"),a=(a=a[0])<400?1:a<500?2:a<526?3:a<533?4:a<534?"4+":a<535?5:a<537?6:a<538?7:a<601?8:"8"),V&&(V[1]+=" "+(a+="number"==typeof a?".x":/[.+]/.test(a)?"":"+")),"Safari"==F&&(!L||parseInt(L)>45)&&(L=a)),"Opera"==F&&(a=/\bzbov|zvav$/.exec(U))?(F+=" ",N.unshift("desktop mode"),"zvav"==a?(F+="Mini",L=null):F+="Mobile",U=U.replace(RegExp(" *"+a+"$"),"")):"Safari"==F&&/\bChrome\b/.exec(V&&V[1])&&(N.unshift("desktop mode"),F="Chrome Mobile",L=null,/\bOS X\b/.test(U)?(B="Apple",U="iOS 4.3+"):U=null),L&&0==L.indexOf(a=/[\d.]+$/.exec(U))&&e.indexOf("/"+a+"-")>-1&&(U=g(U.replace(a,""))),V&&!/\b(?:Avant|Nook)\b/.test(F)&&(/Browser|Lunascape|Maxthon/.test(F)||"Safari"!=F&&/^iOS/.test(U)&&/\bSafari\b/.test(V[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|Web)/.test(F)&&V[1])&&(a=V[V.length-1])&&N.push(a),N.length&&(N=["("+N.join("; ")+")"]),B&&j&&j.indexOf(B)<0&&N.push("on "+B),j&&N.push((/^on /.test(N[N.length-1])?"":"on ")+j),U&&(a=/ ([\d.+]+)$/.exec(U),u=a&&"/"==U.charAt(U.length-a[0].length-1),U={architecture:32,family:a&&!u?U.replace(a[0],""):U,version:a?a[1]:null,toString:function(){var t=this.version;return this.family+(t&&!u?" "+t:"")+(64==this.architecture?" 64-bit":"")}}),(a=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(A))&&!/\bi686\b/i.test(A)?(U&&(U.architecture=64,U.family=U.family.replace(RegExp(" *"+a),"")),F&&(/\bWOW64\b/i.test(e)||M&&/\w(?:86|32)$/.test(i.cpuClass||i.platform)&&!/\bWin64; x64\b/i.test(e))&&N.unshift("32-bit")):U&&/^OS X/.test(U.family)&&"Chrome"==F&&parseFloat(L)>=39&&(U.architecture=64),e||(e=null);var q={};return q.description=e,q.layout=V&&V[0],q.manufacturer=B,q.name=F,q.prerelease=D,q.product=j,q.ua=e,q.version=F&&L,q.os=U||{architecture:null,family:null,version:null,toString:function(){return"null"}},q.parse=t,q.toString=function(){return this.description||""},q.version&&N.unshift(L),q.name&&N.unshift(F),U&&F&&(U!=String(U).split(" ")[0]||U!=F.split(" ")[0]&&!j)&&N.push(j?"("+U+")":"on "+U),N.length&&(q.description=N.join(" ")),q}();o.platform=b,void 0===(r=(function(){return b}).call(e,n,e,t))||(t.exports=r)}).call(this)}).call(this,n("YuTi")(t))},bk74:function(t,e,n){"use strict";var r=n("S+k6").__extends;e.__esModule=!0;var i=n("P3vI");e.Subscriber=function(t){function e(e,n,r){var i=t.call(this,e,n)||this;return i.element=i.targetElement,i.stream=e,i.properties=r,i}return r(e,t),e.prototype.subscribeToAudio=function(t){return this.stream.getMediaStream().getAudioTracks().forEach(function(e){e.enabled=t}),console.info("'Subscriber' has "+(t?"subscribed to":"unsubscribed from")+" its audio stream"),this},e.prototype.subscribeToVideo=function(t){return this.stream.getMediaStream().getVideoTracks().forEach(function(e){e.enabled=t}),console.info("'Subscriber' has "+(t?"subscribed to":"unsubscribed from")+" its video stream"),this},e}(i.StreamManager)},cUzU:function(t,e,n){"use strict";global.WebSocket||global;var r=console,i=3e3;t.exports=function(t){var e,n,o=!1,s=t.uri,a=t.useSockJS,l=!1,u=!1;function c(t,e){try{r.debug("WebSocket connected to "+e)}catch(t){r.error(t)}}(n=a?new SockJS(s):new WebSocket(s)).onopen=function(){c(0,s),t.onconnected&&t.onconnected()},n.onerror=function(e){r.error("Could not connect to "+s+" (invoking onerror if defined)",e),t.onerror&&t.onerror(e)};var h=function(){3===n.readyState?o?r.debug("Connection closed by user"):(r.debug("Connection closed unexpectecly. Reconnecting..."),d(2e3,1)):r.debug("Close callback from previous websocket. Ignoring it")};function d(e,n){if(r.debug("reconnectToSameUri (attempt #"+n+", max="+e+")"),1===n){if(l)return void r.warn("Trying to reconnectToNewUri when reconnecting... Ignoring this reconnection.");l=!0,t.onreconnecting&&t.onreconnecting()}u?p(e,n,s):t.newWsUriOnReconnection?t.newWsUriOnReconnection(function(t,o){t?(r.debug(t),setTimeout(function(){d(e,n+1)},i)):p(e,n,o)}):p(e,n,s)}function p(o,u,p){var f;r.debug("Reconnection attempt #"+u),n.close(),s=p||s,(f=a?new SockJS(s):new WebSocket(s)).onopen=function(){r.debug("Reconnected after "+u+" attempts..."),c(0,s),l=!1,e(),t.onreconnected()&&t.onreconnected(),f.onclose=h},f.onerror=function(e){r.warn("Reconnection error: ",e),u===o?t.ondisconnect&&t.ondisconnect():setTimeout(function(){d(o,u+1)},i)},n=f}n.onclose=h,this.close=function(){o=!0,n.close()},this.forceClose=function(t){if(r.debug("Testing: Force WebSocket close"),t){r.debug("Testing: Change wsUri for "+t+" millis to simulate net failure");var e=s;s="wss://21.234.12.34.4:443/",u=!0,setTimeout(function(){r.debug("Testing: Recover good wsUri "+e),s=e,u=!1},t)}n.close()},this.reconnectWs=function(){r.debug("reconnectWs"),d(2e3,1)},this.send=function(t){n.send(t)},this.addEventListener=function(t,r){(e=function(){n.addEventListener(t,r)})()}}},crnd:function(t,e){function n(t){return Promise.resolve().then(function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e})}n.keys=function(){return[]},n.resolve=n,t.exports=n,n.id="crnd"},"dY/r":function(t,e){var n=["stun:","turn:"];t.exports=function(t){var e,r,i=(t||{}).url||t,o={};return"string"==typeof i||i instanceof String?(i=i.trim(),(e=n[n.indexOf(i.slice(0,5))])?(r=(i=i.slice(5)).split("@"),o.username=t.username,o.credential=t.credential,r.length>1&&(i=r[1],r=r[0].split(":"),o.username=r[0],o.credential=(t||{}).credential||r[1]||""),o.url=e+i,o.urls=[o.url],o):t):t}},de4E:function(t,e){e.pack=function(t,e){var n={jsonrpc:"2.0"};if(t.method)n.method=t.method,t.params&&(n.params=t.params),void 0!=e&&(n.id=e);else if(void 0!=e){if(t.error){if(void 0!==t.result)throw new TypeError("Both result and error are defined");n.error=t.error}else{if(void 0===t.result)throw new TypeError("No result or error is defined");n.result=t.result}n.id=e}return JSON.stringify(n)},e.unpack=function(t){var e=t;("string"==typeof t||t instanceof String)&&(e=JSON.parse(t));var n=e.jsonrpc;if("2.0"!==n)throw new TypeError("Invalid JsonRPC version '"+n+"': "+t);if(void 0==e.method){if(void 0==e.id)throw new TypeError("Invalid message: "+t);var r=void 0!==e.result,i=void 0!==e.error;if(r&&i)throw new TypeError("Both result and error are defined: "+t);if(!r&&!i)throw new TypeError("No result or error is defined: "+t);e.ack=e.id,delete e.id}return e}},e8ps:function(t,e,n){"use strict";var r=n("S+k6").__extends;e.__esModule=!0;var i=n("hzOQ");e.PublisherSpeakingEvent=function(t){function e(e,n,r,i){var o=t.call(this,!1,e,n)||this;return o.type=n,o.connection=r,o.streamId=i,o}return r(e,t),e.prototype.callDefaultBehavior=function(){},e}(i.Event)},ee8k:function(t,e,n){var r=n("cUzU");e.WebSocketWithReconnection=r},gUCu:function(t,e){function n(){var t={};this.forEach=function(e){for(var n in t){var r=t[n];for(var i in r)e(r[i])}},this.get=function(e,n){var r=t[n];if(void 0!=r)return r[e]},this.remove=function(e,n){var r=t[n];if(void 0!=r){for(var i in delete r[e],r)return!1;delete t[n]}},this.set=function(e,n,r){if(void 0==e)return this.remove(n,r);var i=t[r];void 0==i&&(t[r]=i={}),i[n]=e}}n.prototype.pop=function(t,e){var n=this.get(t,e);if(void 0!=n)return this.remove(t,e),n},t.exports=n},hw9W:function(t){t.exports=[]},hzOQ:function(t,e,n){"use strict";e.__esModule=!0,e.Event=function(){function t(t,e,n){this.hasBeenPrevented=!1,this.cancelable=t,this.target=e,this.type=n}return t.prototype.isDefaultPrevented=function(){return this.hasBeenPrevented},t.prototype.preventDefault=function(){this.callDefaultBehavior=function(){},this.hasBeenPrevented=!0},t}()},jrAl:function(t,e){var n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(n){var r=new Uint8Array(16);t.exports=function(){return n(r),r}}else{var i=new Array(16);t.exports=function(){for(var t,e=0;e<16;e++)0==(3&e)&&(t=4294967296*Math.random()),i[e]=t>>>((3&e)<<3)&255;return i}}},k3G7:function(t,e,n){var r,i,o=n("jrAl"),s=n("qa4Q"),a=0,l=0;t.exports=function(t,e,n){var u=e&&n||0,c=e||[],h=(t=t||{}).node||r,d=void 0!==t.clockseq?t.clockseq:i;if(null==h||null==d){var p=o();null==h&&(h=r=[1|p[0],p[1],p[2],p[3],p[4],p[5]]),null==d&&(d=i=16383&(p[6]<<8|p[7]))}var f=void 0!==t.msecs?t.msecs:(new Date).getTime(),m=void 0!==t.nsecs?t.nsecs:l+1,y=f-a+(m-l)/1e4;if(y<0&&void 0===t.clockseq&&(d=d+1&16383),(y<0||f>a)&&void 0===t.nsecs&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");a=f,l=m,i=d;var v=(1e4*(268435455&(f+=122192928e5))+m)%4294967296;c[u++]=v>>>24&255,c[u++]=v>>>16&255,c[u++]=v>>>8&255,c[u++]=255&v;var g=f/4294967296*1e4&268435455;c[u++]=g>>>8&255,c[u++]=255&g,c[u++]=g>>>24&15|16,c[u++]=g>>>16&255,c[u++]=d>>>8|128,c[u++]=255&d;for(var b=0;b<6;++b)c[u+b]=h[b];return e||s(c)}},ksJj:function(t,e,n){"use strict";var r=n("S+k6").__extends;e.__esModule=!0;var i=n("hzOQ");e.SessionDisconnectedEvent=function(t){function e(e,n){var r=t.call(this,!0,e,"sessionDisconnected")||this;return r.reason=n,r}return r(e,t),e.prototype.callDefaultBehavior=function(){console.info("Calling default behavior upon '"+this.type+"' event dispatched by 'Session'");var t=this.target;for(var e in t.remoteConnections)t.remoteConnections[e].stream&&(t.remoteConnections[e].stream.disposeWebRtcPeer(),t.remoteConnections[e].stream.disposeMediaStream(),t.remoteConnections[e].stream.streamManager&&t.remoteConnections[e].stream.streamManager.removeAllVideos(),delete t.remoteStreamsCreated[t.remoteConnections[e].stream.streamId],t.remoteConnections[e].dispose()),delete t.remoteConnections[e]},e}(i.Event)},oIG1:function(t,e,n){"use strict";var r=n("S+k6").__extends;e.__esModule=!0;var i=n("hzOQ");e.VideoElementEvent=function(t){function e(e,n,r){var i=t.call(this,!1,n,r)||this;return i.element=e,i}return r(e,t),e.prototype.callDefaultBehavior=function(){},e}(i.Event)},pLL0:function(t,e){e.pack=function(t){throw new TypeError("Not yet implemented")},e.unpack=function(t){throw new TypeError("Not yet implemented")}},q8iK:function(t,e){},qa4Q:function(t,e){for(var n=[],r=0;r<256;++r)n[r]=(r+256).toString(16).substr(1);t.exports=function(t,e){var r=e||0;return[n[t[r++]],n[t[r++]],n[t[r++]],n[t[r++]],"-",n[t[r++]],n[t[r++]],"-",n[t[r++]],n[t[r++]],"-",n[t[r++]],n[t[r++]],"-",n[t[r++]],n[t[r++]],n[t[r++]],n[t[r++]],n[t[r++]],n[t[r++]]].join("")}},rUL0:function(t,e,n){"use strict";var r=n("S+k6").__extends;e.__esModule=!0;var i=n("hzOQ");e.RecordingEvent=function(t){function e(e,n,r,i){var o=t.call(this,!1,e,n)||this;return o.id=r,i!==r&&(o.name=i),o}return r(e,t),e.prototype.callDefaultBehavior=function(){},e}(i.Event)},ryRr:function(t,e,n){"use strict";e.__esModule=!0;var r=n("DPKQ");e.Connection=function(){function t(t,e){this.session=t,this.disposed=!1;var n="'Connection' created ";console.info(n+=e?"(remote) with 'connectionId' ["+e.id+"]":"(local)"),this.options=e,e&&(this.connectionId=e.id,e.metadata&&(this.data=e.metadata),e.streams&&this.initRemoteStreams(e.streams)),this.creationTime=(new Date).getTime()}return t.prototype.sendIceCandidate=function(t){console.debug(this.stream.outboundStreamOpts?"Local":"Remote","candidate for",this.connectionId,JSON.stringify(t)),this.session.openvidu.sendRequest("onIceCandidate",{endpointName:this.connectionId,candidate:t.candidate,sdpMid:t.sdpMid,sdpMLineIndex:t.sdpMLineIndex},function(t,e){t&&console.error("Error sending ICE candidate: "+JSON.stringify(t))})},t.prototype.initRemoteStreams=function(t){var e=this;t.forEach(function(t){var n={id:t.id,connection:e,hasAudio:t.hasAudio,hasVideo:t.hasVideo,audioActive:t.audioActive,videoActive:t.videoActive,typeOfVideo:t.typeOfVideo,frameRate:t.frameRate,videoDimensions:t.videoDimensions?JSON.parse(t.videoDimensions):void 0,filter:t.filter?t.filter:void 0},i=new r.Stream(e.session,n);e.addStream(i)}),console.info("Remote 'Connection' with 'connectionId' ["+this.connectionId+"] is now configured for receiving Streams with options: ",this.stream.inboundStreamOpts)},t.prototype.addStream=function(t){t.connection=this,this.stream=t},t.prototype.removeStream=function(t){delete this.stream},t.prototype.dispose=function(){this.stream&&delete this.stream,this.disposed=!0},t}()},suHS:function(t,e,n){"use strict";var r=n("S+k6").__extends;e.__esModule=!0;var i=n("hzOQ");e.SignalEvent=function(t){function e(e,n,r,i){var o=t.call(this,!1,e,n)||this;return o.type=n,o.data=r,o.from=i,o}return r(e,t),e.prototype.callDefaultBehavior=function(){},e}(i.Event)},tInm:function(t,e,n){"use strict";e.__esModule=!0;var r=n("Yn0Z");e.LocalRecorder=function(){function t(t){this.stream=t,this.chunks=[],this.count=0,this.connectionId=this.stream.connection?this.stream.connection.connectionId:"default-connection",this.id=this.stream.streamId+"_"+this.connectionId+"_localrecord",this.state=r.LocalRecorderState.READY}return t.prototype.record=function(){var t=this;return new Promise(function(e,n){try{if("undefined"==typeof MediaRecorder)throw console.error("MediaRecorder not supported on your browser. See compatibility in https://caniuse.com/#search=MediaRecorder"),Error("MediaRecorder not supported on your browser. See compatibility in https://caniuse.com/#search=MediaRecorder");if(t.state!==r.LocalRecorderState.READY)throw Error("'LocalRecord.record()' needs 'LocalRecord.state' to be 'READY' (current value: '"+t.state+"'). Call 'LocalRecorder.clean()' or init a new LocalRecorder before");if(console.log("Starting local recording of stream '"+t.stream.streamId+"' of connection '"+t.connectionId+"'"),"function"==typeof MediaRecorder.isTypeSupported){var i=void 0;MediaRecorder.isTypeSupported("video/webm;codecs=vp9")?i={mimeType:"video/webm;codecs=vp9"}:MediaRecorder.isTypeSupported("video/webm;codecs=h264")?i={mimeType:"video/webm;codecs=h264"}:MediaRecorder.isTypeSupported("video/webm;codecs=vp8")&&(i={mimeType:"video/webm;codecs=vp8"}),console.log("Using mimeType "+i.mimeType),t.mediaRecorder=new MediaRecorder(t.stream.getMediaStream(),i)}else console.warn("isTypeSupported is not supported, using default codecs for browser"),t.mediaRecorder=new MediaRecorder(t.stream.getMediaStream());t.mediaRecorder.start(10)}catch(t){n(t)}t.mediaRecorder.ondataavailable=function(e){t.chunks.push(e.data)},t.mediaRecorder.onerror=function(t){console.error("MediaRecorder error: ",t)},t.mediaRecorder.onstart=function(){console.log("MediaRecorder started (state="+t.mediaRecorder.state+")")},t.mediaRecorder.onstop=function(){t.onStopDefault()},t.mediaRecorder.onpause=function(){console.log("MediaRecorder paused (state="+t.mediaRecorder.state+")")},t.mediaRecorder.onresume=function(){console.log("MediaRecorder resumed (state="+t.mediaRecorder.state+")")},t.mediaRecorder.onwarning=function(t){console.log("MediaRecorder warning: "+t)},t.state=r.LocalRecorderState.RECORDING,e()})},t.prototype.stop=function(){var t=this;return new Promise(function(e,n){try{if(t.state===r.LocalRecorderState.READY||t.state===r.LocalRecorderState.FINISHED)throw Error("'LocalRecord.stop()' needs 'LocalRecord.state' to be 'RECORDING' or 'PAUSED' (current value: '"+t.state+"'). Call 'LocalRecorder.start()' before");t.mediaRecorder.onstop=function(){t.onStopDefault(),e()},t.mediaRecorder.stop()}catch(t){n(t)}})},t.prototype.pause=function(){var t=this;return new Promise(function(e,n){try{t.state!==r.LocalRecorderState.RECORDING&&n(Error("'LocalRecord.pause()' needs 'LocalRecord.state' to be 'RECORDING' (current value: '"+t.state+"'). Call 'LocalRecorder.start()' or 'LocalRecorder.resume()' before")),t.mediaRecorder.pause(),t.state=r.LocalRecorderState.PAUSED}catch(t){n(t)}})},t.prototype.resume=function(){var t=this;return new Promise(function(e,n){try{if(t.state!==r.LocalRecorderState.PAUSED)throw Error("'LocalRecord.resume()' needs 'LocalRecord.state' to be 'PAUSED' (current value: '"+t.state+"'). Call 'LocalRecorder.pause()' before");t.mediaRecorder.resume(),t.state=r.LocalRecorderState.RECORDING}catch(t){n(t)}})},t.prototype.preview=function(t){if(this.state!==r.LocalRecorderState.FINISHED)throw Error("'LocalRecord.preview()' needs 'LocalRecord.state' to be 'FINISHED' (current value: '"+this.state+"'). Call 'LocalRecorder.stop()' before");if(this.videoPreview=document.createElement("video"),this.videoPreview.id=this.id,this.videoPreview.autoplay=!0,"string"==typeof t){this.htmlParentElementId=t;var e=document.getElementById(t);e&&(this.videoPreview=e.appendChild(this.videoPreview))}else this.htmlParentElementId=t.id,this.videoPreview=t.appendChild(this.videoPreview);return this.videoPreview.src=this.videoPreviewSrc,this.videoPreview},t.prototype.clean=function(){var t=this,e=function(){delete t.blob,t.chunks=[],t.count=0,delete t.mediaRecorder,t.state=r.LocalRecorderState.READY};this.state===r.LocalRecorderState.RECORDING||this.state===r.LocalRecorderState.PAUSED?this.stop().then(function(){return e()}).catch(function(){return e()}):e()},t.prototype.download=function(){if(this.state!==r.LocalRecorderState.FINISHED)throw Error("'LocalRecord.download()' needs 'LocalRecord.state' to be 'FINISHED' (current value: '"+this.state+"'). Call 'LocalRecorder.stop()' before");var t=document.createElement("a");t.style.display="none",document.body.appendChild(t);var e=window.URL.createObjectURL(this.blob);t.href=e,t.download=this.id+".webm",t.click(),window.URL.revokeObjectURL(e),document.body.removeChild(t)},t.prototype.getBlob=function(){if(this.state!==r.LocalRecorderState.FINISHED)throw Error("Call 'LocalRecord.stop()' before getting Blob file");return this.blob},t.prototype.uploadAsBinary=function(t,e){var n=this;return new Promise(function(i,o){if(n.state!==r.LocalRecorderState.FINISHED)o(Error("'LocalRecord.uploadAsBinary()' needs 'LocalRecord.state' to be 'FINISHED' (current value: '"+n.state+"'). Call 'LocalRecorder.stop()' before"));else{var s=new XMLHttpRequest;if(s.open("POST",t,!0),"object"==typeof e)for(var a=0,l=Object.keys(e);an&&e[r]<0&&(n=e[r]);return n}(l,a);n.emit("volume_change",t,h);var e=0;if(t>h&&!n.speaking){for(var r=n.speakingHistory.length-3;r=2&&(n.speaking=!0,n.emit("speaking"))}else if(th)),y()}},c)};return y(),n}},"txJ/":function(t,e){var n=Object.create||function(t){var e=function(){};return e.prototype=t,new e},r=Object.keys||function(t){var e=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.push(n);return n},i=Function.prototype.bind||function(t){var e=this;return function(){return e.apply(t,arguments)}};function o(){this._events&&Object.prototype.hasOwnProperty.call(this,"_events")||(this._events=n(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0}t.exports=o,o.EventEmitter=o,o.prototype._events=void 0,o.prototype._maxListeners=void 0;var s,a=10;try{var l={};Object.defineProperty&&Object.defineProperty(l,"x",{value:0}),s=0===l.x}catch(t){s=!1}function u(t){return void 0===t._maxListeners?o.defaultMaxListeners:t._maxListeners}function c(t,e,r,i){var o,s,a;if("function"!=typeof r)throw new TypeError('"listener" argument must be a function');if((s=t._events)?(s.newListener&&(t.emit("newListener",e,r.listener?r.listener:r),s=t._events),a=s[e]):(s=t._events=n(null),t._eventsCount=0),a){if("function"==typeof a?a=s[e]=i?[r,a]:[a,r]:i?a.unshift(r):a.push(r),!a.warned&&(o=u(t))&&o>0&&a.length>o){a.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+a.length+' "'+String(e)+'" listeners added. Use emitter.setMaxListeners() to increase limit.');l.name="MaxListenersExceededWarning",l.emitter=t,l.type=e,l.count=a.length,"object"==typeof console&&console.warn&&console.warn("%s: %s",l.name,l.message)}}else a=s[e]=r,++t._eventsCount;return t}function h(){if(!this.fired)switch(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length){case 0:return this.listener.call(this.target);case 1:return this.listener.call(this.target,arguments[0]);case 2:return this.listener.call(this.target,arguments[0],arguments[1]);case 3:return this.listener.call(this.target,arguments[0],arguments[1],arguments[2]);default:for(var t=new Array(arguments.length),e=0;e1&&(e=arguments[1]),e instanceof Error)throw e;var l=new Error('Unhandled "error" event. ('+e+")");throw l.context=e,l}if(!(n=s[t]))return!1;var u="function"==typeof n;switch(r=arguments.length){case 1:!function(t,e,n){if(e)t.call(n);else for(var r=t.length,i=m(t,r),o=0;o=0;s--)if(r[s]===e||r[s].listener===e){a=r[s].listener,o=s;break}if(o<0)return this;0===o?r.shift():function(t,e){for(var n=o,r=n+1,i=t.length;r=0;o--)this.removeListener(t,e[o]);return this},o.prototype.listeners=function(t){return p(this,t,!0)},o.prototype.rawListeners=function(t){return p(this,t,!1)},o.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):f.call(t,e)},o.prototype.listenerCount=f,o.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]}},yLV6:function(t,e,n){var r;!function(i,o,s,a){"use strict";var l,u=["","webkit","Moz","MS","ms","o"],c=o.createElement("div"),h="function",d=Math.round,p=Math.abs,f=Date.now;function m(t,e,n){return setTimeout(S(t,n),e)}function y(t,e,n){return!!Array.isArray(t)&&(v(t,n[e],n),!0)}function v(t,e,n){var r;if(t)if(t.forEach)t.forEach(e,n);else if(t.length!==a)for(r=0;r\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=i.console&&(i.console.warn||i.console.log);return o&&o.call(i.console,r,n),t.apply(this,arguments)}}l="function"!=typeof Object.assign?function(t){if(t===a||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1;n-1}function T(t){return t.trim().split(/\s+/g)}function P(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var r=0;rn[e]}):r.sort()),r}function N(t,e){for(var n,r,i=e[0].toUpperCase()+e.slice(1),o=0;o1&&!n.firstMultiple?n.firstMultiple=et(e):1===i&&(n.firstMultiple=!1);var o=n.firstInput,s=n.firstMultiple,l=s?s.center:o.center,u=e.center=nt(r);e.timeStamp=f(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=st(l,u),e.distance=ot(l,u),function(t,e){var n=e.center,r=t.offsetDelta||{},i=t.prevDelta||{},o=t.prevInput||{};e.eventType!==B&&o.eventType!==U||(i=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},r=t.offsetDelta={x:n.x,y:n.y}),e.deltaX=i.x+(n.x-r.x),e.deltaY=i.y+(n.y-r.y)}(n,e),e.offsetDirection=it(e.deltaX,e.deltaY);var c,h,d=rt(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=d.x,e.overallVelocityY=d.y,e.overallVelocity=p(d.x)>p(d.y)?d.x:d.y,e.scale=s?(c=s.pointers,ot((h=r)[0],h[1],J)/ot(c[0],c[1],J)):1,e.rotation=s?function(t,e){return st(r[1],r[0],J)+st(t[1],t[0],J)}(s.pointers):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,function(t,e){var n,r,i,o,s=t.lastInterval||e,l=e.timeStamp-s.timeStamp;if(e.eventType!=z&&(l>j||s.velocity===a)){var u=e.deltaX-s.deltaX,c=e.deltaY-s.deltaY,h=rt(l,u,c);r=h.x,i=h.y,n=p(h.x)>p(h.y)?h.x:h.y,o=it(u,c),t.lastInterval=e}else n=s.velocity,r=s.velocityX,i=s.velocityY,o=s.direction;e.velocity=n,e.velocityX=r,e.velocityY=i,e.direction=o}(n,e);var m=t.element;O(e.srcEvent.target,m)&&(m=e.srcEvent.target),e.target=m}(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function et(t){for(var e=[],n=0;n=p(e)?t<0?H:W:e<0?G:X}function ot(t,e,n){n||(n=Z);var r=e[n[0]]-t[n[0]],i=e[n[1]]-t[n[1]];return Math.sqrt(r*r+i*i)}function st(t,e,n){return n||(n=Z),180*Math.atan2(e[n[1]]-t[n[1]],e[n[0]]-t[n[0]])/Math.PI}$.prototype={handler:function(){},init:function(){this.evEl&&x(this.element,this.evEl,this.domHandler),this.evTarget&&x(this.target,this.evTarget,this.domHandler),this.evWin&&x(M(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&k(this.element,this.evEl,this.domHandler),this.evTarget&&k(this.target,this.evTarget,this.domHandler),this.evWin&&k(M(this.element),this.evWin,this.domHandler)}};var at={mousedown:B,mousemove:2,mouseup:U},lt="mousedown",ut="mousemove mouseup";function ct(){this.evEl=lt,this.evWin=ut,this.pressed=!1,$.apply(this,arguments)}w(ct,$,{handler:function(t){var e=at[t.type];e&B&&0===t.button&&(this.pressed=!0),2&e&&1!==t.which&&(e=U),this.pressed&&(e&U&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:"mouse",srcEvent:t}))}});var ht={pointerdown:B,pointermove:2,pointerup:U,pointercancel:z,pointerout:z},dt={2:"touch",3:"pen",4:"mouse",5:"kinect"},pt="pointerdown",ft="pointermove pointerup pointercancel";function mt(){this.evEl=pt,this.evWin=ft,$.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}i.MSPointerEvent&&!i.PointerEvent&&(pt="MSPointerDown",ft="MSPointerMove MSPointerUp MSPointerCancel"),w(mt,$,{handler:function(t){var e=this.store,n=!1,r=t.type.toLowerCase().replace("ms",""),i=ht[r],o=dt[t.pointerType]||t.pointerType,s="touch"==o,a=P(e,t.pointerId,"pointerId");i&B&&(0===t.button||s)?a<0&&(e.push(t),a=e.length-1):i&(U|z)&&(n=!0),a<0||(e[a]=t,this.callback(this.manager,i,{pointers:e,changedPointers:[t],pointerType:o,srcEvent:t}),n&&e.splice(a,1))}});var yt={touchstart:B,touchmove:2,touchend:U,touchcancel:z},vt="touchstart",gt="touchstart touchmove touchend touchcancel";function bt(){this.evTarget=vt,this.evWin=gt,this.started=!1,$.apply(this,arguments)}w(bt,$,{handler:function(t){var e=yt[t.type];if(e===B&&(this.started=!0),this.started){var n=(function(t,e){var n=R(t.touches),r=R(t.changedTouches);return e&(U|z)&&(n=A(n.concat(r),"identifier",!0)),[n,r]}).call(this,t,e);e&(U|z)&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:t})}}});var _t={touchstart:B,touchmove:2,touchend:U,touchcancel:z},wt="touchstart touchmove touchend touchcancel";function St(){this.evTarget=wt,this.targetIds={},$.apply(this,arguments)}w(St,$,{handler:function(t){var e=_t[t.type],n=(function(t,e){var n=R(t.touches),r=this.targetIds;if(e&(2|B)&&1===n.length)return r[n[0].identifier]=!0,[n,n];var i,o,s=R(t.changedTouches),a=[],l=this.target;if(o=n.filter(function(t){return O(t.target,l)}),e===B)for(i=0;i-1&&r.splice(t,1)},Et)}}w(Ct,$,{handler:function(t,e,n){var r="mouse"==n.pointerType;if(!(r&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if("touch"==n.pointerType)(function(t,e){t&B?(this.primaryTouch=e.changedPointers[0].identifier,xt.call(this,e)):t&(U|z)&&xt.call(this,e)}).call(this,e,n);else if(r&&(function(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,r=0;r-1&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){var e=this,n=this.state;function r(n){e.manager.emit(n,t)}n=Nt&&r(e.options.event+Vt(n))},tryEmit:function(t){if(this.canEmit())return this.emit(t);this.state=32},canEmit:function(){for(var t=0;te.threshold&&i&e.direction},attrTest:function(t){return Bt.prototype.attrTest.call(this,t)&&(this.state&Rt||!(this.state&Rt)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=Ft(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),w(zt,Bt,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||this.state&Rt)},emit:function(t){1!==t.scale&&(t.additionalEvent=this.options.event+(t.scale<1?"in":"out")),this._super.emit.call(this,t)}}),w(qt,Lt,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return["auto"]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,r=t.distancee.time;if(this._input=t,!r||!n||t.eventType&(U|z)&&!i)this.reset();else if(t.eventType&B)this.reset(),this._timer=m(function(){this.state=Dt,this.tryEmit()},e.time,this);else if(t.eventType&U)return Dt;return 32},reset:function(){clearTimeout(this._timer)},emit:function(t){this.state===Dt&&(t&&t.eventType&U?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=f(),this.manager.emit(this.options.event,this._input)))}}),w(Ht,Bt,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||this.state&Rt)}}),w(Wt,Bt,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:Q|K,pointers:1},getTouchAction:function(){return Ut.prototype.getTouchAction.call(this)},attrTest:function(t){var e,n=this.options.direction;return n&(Q|K)?e=t.overallVelocity:n&Q?e=t.overallVelocityX:n&K&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&n&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&p(e)>this.options.velocity&&t.eventType&U},emit:function(t){var e=Ft(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),w(Gt,Lt,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return["manipulation"]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,r=t.distance=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s}function l(t,e){return function(n,r){e(n,r,t)}}function u(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function c(t){var e="function"==typeof Symbol&&t[Symbol.iterator],n=0;return e?e.call(t):{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}function h(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function d(){for(var t=[],e=0;e0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(et);function ct(t){return t}function ht(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),at(ct,t)}function dt(){for(var t=[],e=0;e1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof i&&(n=t.pop()),null===r&&1===t.length&&t[0]instanceof L?t[0]:ht(n)(ot(t,r))}function pt(){return function(t){return t.lift(new ft(t))}}var ft=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var n=this.connectable;n._refCount++;var r=new mt(t,n),i=e.subscribe(r);return r.closed||(r.connection=n.connect()),i},t}(),mt=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return o(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},e}(T),yt=function(t){function e(e,n){var r=t.call(this)||this;return r.source=e,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}return o(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new S).add(this.source.subscribe(new gt(this.getSubject(),this))),t.closed?(this._connection=null,t=S.EMPTY):this._connection=t),t},e.prototype.refCount=function(){return pt()(this)},e}(L).prototype,vt={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:yt._subscribe},_isComplete:{value:yt._isComplete,writable:!0},getSubject:{value:yt.getSubject},connect:{value:yt.connect},refCount:{value:yt.refCount}},gt=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return o(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(U);function bt(t,e){return function(n){var r;if(r="function"==typeof t?t:function(){return t},"function"==typeof e)return n.lift(new _t(r,e));var i=Object.create(n,vt);return i.source=n,i.subjectFactory=r,i}}var _t=function(){function t(t,e){this.subjectFactory=t,this.selector=e}return t.prototype.call=function(t,e){var n=this.selector,r=this.subjectFactory(),i=n(r).subscribe(t);return i.add(e.subscribe(r)),i},t}();function wt(){return new z}function St(){return function(t){return pt()(bt(wt)(t))}}function Et(t){return{providedIn:t.providedIn||null,factory:t.factory,value:void 0}}var Ct=function(){function t(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.ngInjectableDef=void 0!==e?Et({providedIn:e.providedIn||"root",factory:e.factory}):void 0}return t.prototype.toString=function(){return"InjectionToken "+this._desc},t}(),xt="__parameters__";function kt(t,e,n){var r=function(t){return function(){for(var e=[],n=0;n ");else if("object"==typeof e){var i=[];for(var o in e)if(e.hasOwnProperty(o)){var s=e[o];i.push(o+":"+("string"==typeof s?JSON.stringify(s):Vt(s)))}r="{"+i.join(", ")+"}"}return"StaticInjectorError"+(n?"("+n+")":"")+"["+r+"]: "+t.replace(ie,"\n ")}function ue(t,e){return new Error(le(t,e))}var ce=void 0;function he(t){var e=ce;return ce=t,e}function de(t,e){if(void 0===e&&(e=0),void 0===ce)throw new Error("inject() must be called from an injection context");if(null===ce){var n=t.ngInjectableDef;if(n&&"root"==n.providedIn)return void 0===n.value?n.value=n.factory():n.value;if(8&e)return null;throw new Error("Injector: NOT_FOUND ["+Vt(t)+"]")}return ce.get(t,8&e?null:void 0,e)}function pe(t){for(var e=[],n=0;n0&&(i=setTimeout(function(){r._callbacks=r._callbacks.filter(function(t){return t.timeoutId!==i}),t(r._didWork,r.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:i,updateCb:n})},t.prototype.whenStable=function(t,e,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(t,e,n),this._runCallbacksIfReady()},t.prototype.getPendingRequestCount=function(){return this._pendingCount},t.prototype.findProviders=function(t,e,n){return[]},t}(),wn=function(){function t(){this._applications=new Map,Sn.addToWindow(this)}return t.prototype.registerApplication=function(t,e){this._applications.set(t,e)},t.prototype.unregisterApplication=function(t){this._applications.delete(t)},t.prototype.unregisterAllApplications=function(){this._applications.clear()},t.prototype.getTestability=function(t){return this._applications.get(t)||null},t.prototype.getAllTestabilities=function(){return Array.from(this._applications.values())},t.prototype.getAllRootElements=function(){return Array.from(this._applications.keys())},t.prototype.findTestabilityInTree=function(t,e){return void 0===e&&(e=!0),Sn.findTestabilityInTree(this,t,e)},a([u("design:paramtypes",[])],t)}(),Sn=new(function(){function t(){}return t.prototype.addToWindow=function(t){},t.prototype.findTestabilityInTree=function(t,e,n){return null},t}()),En=!0,Cn=!1,xn=new Ct("AllowMultipleToken");function kn(){return Cn=!0,En}var On=function(t,e){this.name=t,this.token=e};function In(t,e,n){void 0===n&&(n=[]);var r="Platform: "+e,i=new Ct(r);return function(e){void 0===e&&(e=[]);var o=Tn();if(!o||o.injector.get(xn,!1))if(t)t(n.concat(e).concat({provide:i,useValue:!0}));else{var s=n.concat(e).concat({provide:i,useValue:!0});!function(t){if(gn&&!gn.destroyed&&!gn.injector.get(xn,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");gn=t.get(Pn);var e=t.get(Ue,null);e&&e.forEach(function(t){return t()})}(Yt.create({providers:s,name:r}))}return function(t){var e=Tn();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}(i)}}function Tn(){return gn&&!gn.destroyed?gn:null}var Pn=function(){function t(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return t.prototype.bootstrapModuleFactory=function(t,e){var n,r=this,i="noop"===(n=e?e.ngZone:void 0)?new bn:("zone.js"===n?void 0:n)||new dn({enableLongStackTrace:kn()}),o=[{provide:dn,useValue:i}];return i.run(function(){var e=Yt.create({providers:o,parent:r.injector,name:t.moduleType.name}),n=t.create(e),s=n.injector.get(Se,null);if(!s)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.onDestroy(function(){return Nn(r._modules,n)}),i.runOutsideAngular(function(){return i.onError.subscribe({next:function(t){s.handleError(t)}})}),function(t,e,i){try{var o=((s=n.injector.get(Ve)).runInitializers(),s.donePromise.then(function(){return r._moduleDoBootstrap(n),n}));return De(o)?o.catch(function(n){throw e.runOutsideAngular(function(){return t.handleError(n)}),n}):o}catch(n){throw e.runOutsideAngular(function(){return t.handleError(n)}),n}var s}(s,i)})},t.prototype.bootstrapModule=function(t,e){var n=this;void 0===e&&(e=[]);var r=this.injector.get(Xe),i=Rn({},e);return r.createCompiler([i]).compileModuleAsync(t).then(function(t){return n.bootstrapModuleFactory(t,i)})},t.prototype._moduleDoBootstrap=function(t){var e=t.injector.get(An);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(function(t){return e.bootstrap(t)});else{if(!t.instance.ngDoBootstrap)throw new Error("The module "+Vt(t.instance.constructor)+' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.');t.instance.ngDoBootstrap(e)}this._modules.push(t)},t.prototype.onDestroy=function(t){this._destroyListeners.push(t)},Object.defineProperty(t.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(t){return t.destroy()}),this._destroyListeners.forEach(function(t){return t()}),this._destroyed=!0},Object.defineProperty(t.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),t}();function Rn(t,e){return Array.isArray(e)?e.reduce(Rn,t):s({},t,e)}var An=function(){function t(t,e,n,r,i,o){var s=this;this._zone=t,this._console=e,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=i,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=kn(),this._zone.onMicrotaskEmpty.subscribe({next:function(){s._zone.run(function(){s.tick()})}});var a=new L(function(t){s._stable=s._zone.isStable&&!s._zone.hasPendingMacrotasks&&!s._zone.hasPendingMicrotasks,s._zone.runOutsideAngular(function(){t.next(s._stable),t.complete()})}),l=new L(function(t){var e;s._zone.runOutsideAngular(function(){e=s._zone.onStable.subscribe(function(){dn.assertNotInAngularZone(),Mt(function(){s._stable||s._zone.hasPendingMacrotasks||s._zone.hasPendingMicrotasks||(s._stable=!0,t.next(!0))})})});var n=s._zone.onUnstable.subscribe(function(){dn.assertInAngularZone(),s._stable&&(s._stable=!1,s._zone.runOutsideAngular(function(){t.next(!1)}))});return function(){e.unsubscribe(),n.unsubscribe()}});this.isStable=dt(a,l.pipe(St()))}var e;return e=t,t.prototype.bootstrap=function(t,e){var n,r=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");n=t instanceof Ke?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);var i=n instanceof rn?null:this._injector.get(on),o=n.create(Yt.NULL,[],e||n.selector,i);o.onDestroy(function(){r._unloadComponent(o)});var s=o.injector.get(_n,null);return s&&o.injector.get(wn).registerApplication(o.location.nativeElement,s),this._loadComponent(o),kn()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),o},t.prototype.tick=function(){var t=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var n=e._tickScope();try{this._runningTick=!0,this._views.forEach(function(t){return t.detectChanges()}),this._enforceNoNewChanges&&this._views.forEach(function(t){return t.checkNoChanges()})}catch(e){this._zone.runOutsideAngular(function(){return t._exceptionHandler.handleError(e)})}finally{this._runningTick=!1,cn(n)}},t.prototype.attachView=function(t){var e=t;this._views.push(e),e.attachToAppRef(this)},t.prototype.detachView=function(t){var e=t;Nn(this._views,e),e.detachFromAppRef()},t.prototype._loadComponent=function(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(qe,[]).concat(this._bootstrapListeners).forEach(function(e){return e(t)})},t.prototype._unloadComponent=function(t){this.detachView(t.hostView),Nn(this.components,t)},t.prototype.ngOnDestroy=function(){this._views.slice().forEach(function(t){return t.destroy()})},Object.defineProperty(t.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),t._tickScope=un("ApplicationRef#tick()"),t}();function Nn(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}var Dn=function(){},Mn=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({}),Ln=function(){},Vn=function(t){this.nativeElement=t},Fn=function(){},jn=function(){function t(){this.dirty=!0,this._results=[],this.changes=new hn,this.length=0}return t.prototype.map=function(t){return this._results.map(t)},t.prototype.filter=function(t){return this._results.filter(t)},t.prototype.find=function(t){return this._results.find(t)},t.prototype.reduce=function(t,e){return this._results.reduce(t,e)},t.prototype.forEach=function(t){this._results.forEach(t)},t.prototype.some=function(t){return this._results.some(t)},t.prototype.toArray=function(){return this._results.slice()},t.prototype[Dt()]=function(){return this._results[Dt()]()},t.prototype.toString=function(){return this._results.toString()},t.prototype.reset=function(t){this._results=function t(e){return e.reduce(function(e,n){var r=Array.isArray(n)?t(n):n;return e.concat(r)},[])}(t),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]},t.prototype.notifyOnChanges=function(){this.changes.emit(this)},t.prototype.setDirty=function(){this.dirty=!0},t.prototype.destroy=function(){this.changes.complete(),this.changes.unsubscribe()},t}(),Bn=function(){},Un={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},zn=function(){function t(t,e){this._compiler=t,this._config=e||Un}return t.prototype.load=function(t){return this._compiler instanceof Ge?this.loadFactory(t):this.loadAndCompile(t)},t.prototype.loadAndCompile=function(t){var e=this,r=h(t.split("#"),2),i=r[0],o=r[1];return void 0===o&&(o="default"),n("crnd")(i).then(function(t){return t[o]}).then(function(t){return qn(t,i,o)}).then(function(t){return e._compiler.compileModuleAsync(t)})},t.prototype.loadFactory=function(t){var e=h(t.split("#"),2),r=e[0],i=e[1],o="NgFactory";return void 0===i&&(i="default",o=""),n("crnd")(this._config.factoryPathPrefix+r+this._config.factoryPathSuffix).then(function(t){return t[i+o]}).then(function(t){return qn(t,r,i)})},a([l(1,Ut())],t)}();function qn(t,e,n){if(!t)throw new Error("Cannot find '"+n+"' in '"+e+"'");return t}var Hn=function(){},Wn=function(){},Gn=function(){},Xn=function(){function t(t,e,n){this._debugContext=n,this.nativeNode=t,e&&e instanceof Qn?e.addChild(this):this.parent=null,this.listeners=[]}return Object.defineProperty(t.prototype,"injector",{get:function(){return this._debugContext.injector},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentInstance",{get:function(){return this._debugContext.component},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._debugContext.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"references",{get:function(){return this._debugContext.references},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"providerTokens",{get:function(){return this._debugContext.providerTokens},enumerable:!0,configurable:!0}),t}(),Qn=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.properties={},i.attributes={},i.classes={},i.styles={},i.childNodes=[],i.nativeElement=e,i}return o(e,t),e.prototype.addChild=function(t){t&&(this.childNodes.push(t),t.parent=this)},e.prototype.removeChild=function(t){var e=this.childNodes.indexOf(t);-1!==e&&(t.parent=null,this.childNodes.splice(e,1))},e.prototype.insertChildrenAfter=function(t,e){var n,r=this,i=this.childNodes.indexOf(t);-1!==i&&((n=this.childNodes).splice.apply(n,d([i+1,0],e)),e.forEach(function(t){t.parent&&t.parent.removeChild(t),t.parent=r}))},e.prototype.insertBefore=function(t,e){var n=this.childNodes.indexOf(t);-1===n?this.addChild(e):(e.parent&&e.parent.removeChild(e),e.parent=this,this.childNodes.splice(n,0,e))},e.prototype.query=function(t){return this.queryAll(t)[0]||null},e.prototype.queryAll=function(t){var e=[];return function t(e,n,r){e.childNodes.forEach(function(e){e instanceof Qn&&(n(e)&&r.push(e),t(e,n,r))})}(this,t,e),e},e.prototype.queryAllNodes=function(t){var e=[];return function t(e,n,r){e instanceof Qn&&e.childNodes.forEach(function(e){n(e)&&r.push(e),e instanceof Qn&&t(e,n,r)})}(this,t,e),e},Object.defineProperty(e.prototype,"children",{get:function(){return this.childNodes.filter(function(t){return t instanceof e})},enumerable:!0,configurable:!0}),e.prototype.triggerEventHandler=function(t,e){this.listeners.forEach(function(n){n.name==t&&n.callback(e)})},e}(Xn),Kn=new Map;function Yn(t){return Kn.get(t)||null}function Zn(t){Kn.set(t.nativeNode,t)}function Jn(t,e){var n=er(t),r=er(e);return n&&r?function(t,e,n){for(var r=t[Dt()](),i=e[Dt()]();;){var o=r.next(),s=i.next();if(o.done&&s.done)return!0;if(o.done||s.done)return!1;if(!n(o.value,s.value))return!1}}(t,e,Jn):!(n||!t||"object"!=typeof t&&"function"!=typeof t||r||!e||"object"!=typeof e&&"function"!=typeof e)||Lt(t,e)}var $n=function(){function t(t){this.wrapped=t}return t.wrap=function(e){return new t(e)},t.unwrap=function(e){return t.isWrapped(e)?e.wrapped:e},t.isWrapped=function(e){return e instanceof t},t}(),tr=function(){function t(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}return t.prototype.isFirstChange=function(){return this.firstChange},t}();function er(t){return!!nr(t)&&(Array.isArray(t)||!(t instanceof Map)&&Dt()in t)}function nr(t){return null!==t&&("function"==typeof t||"object"==typeof t)}var rr=function(){function t(){}return t.prototype.supports=function(t){return er(t)},t.prototype.create=function(t){return new or(t)},t}(),ir=function(t,e){return e},or=function(){function t(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||ir}return t.prototype.forEachItem=function(t){var e;for(e=this._itHead;null!==e;e=e._next)t(e)},t.prototype.forEachOperation=function(t){for(var e=this._itHead,n=this._removalsHead,r=0,i=null;e||n;){var o=!n||e&&e.currentIndex',!this.inertBodyElement.querySelector||this.inertBodyElement.querySelector("svg")?(this.inertBodyElement.innerHTML='

',this.getInertBodyElement=this.inertBodyElement.querySelector&&this.inertBodyElement.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(t){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}return t.prototype.getInertBodyElement_XHR=function(t){t=""+t+"";try{t=encodeURI(t)}catch(t){return null}var e=new XMLHttpRequest;e.responseType="document",e.open("GET","data:text/html;charset=utf-8,"+t,!1),e.send(null);var n=e.response.body;return n.removeChild(n.firstChild),n},t.prototype.getInertBodyElement_DOMParser=function(t){t=""+t+"";try{var e=(new window.DOMParser).parseFromString(t,"text/html").body;return e.removeChild(e.firstChild),e}catch(t){return null}},t.prototype.getInertBodyElement_InertDocument=function(t){var e=this.inertDocument.createElement("template");return"content"in e?(e.innerHTML=t,e):(this.inertBodyElement.innerHTML=t,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(this.inertBodyElement),this.inertBodyElement)},t.prototype.stripCustomNsAttrs=function(t){for(var e=t.attributes,n=e.length-1;0")}else this.sanitizedSomething=!0},t.prototype.endElement=function(t){var e=t.nodeName.toLowerCase();Mr.hasOwnProperty(e)&&!Rr.hasOwnProperty(e)&&(this.buf.push(""))},t.prototype.chars=function(t){this.buf.push(zr(t))},t.prototype.checkClobberedElement=function(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+t.outerHTML);return e},t}(),Br=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Ur=/([^\#-~ |!])/g;function zr(t){return t.replace(/&/g,"&").replace(Br,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(Ur,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}function qr(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Hr=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:calc|attr))\\([-0-9.%, #a-zA-Z]+\\))$","g"),Wr=/^url\(([^)]+)\)$/,Gr=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}({}),Xr=function(){};function Qr(t,e,n){var r=t.state,i=1792&r;return i===e?(t.state=-1793&r|n,t.initIndex=-1,!0):i===n}function Kr(t,e,n){return(1792&t.state)===e&&t.initIndex<=n&&(t.initIndex=n+1,!0)}function Yr(t,e){return t.nodes[e]}function Zr(t,e){return t.nodes[e]}function Jr(t,e){return t.nodes[e]}function $r(t,e){return t.nodes[e]}function ti(t,e){return t.nodes[e]}var ei={setCurrentNode:void 0,createRootView:void 0,createEmbeddedView:void 0,createComponentView:void 0,createNgModuleRef:void 0,overrideProvider:void 0,overrideComponentView:void 0,clearOverrides:void 0,checkAndUpdateView:void 0,checkNoChangesView:void 0,destroyView:void 0,resolveDep:void 0,createDebugContext:void 0,handleEvent:void 0,updateDirectives:void 0,updateRenderer:void 0,dirtyParentQueries:void 0};function ni(t,e,n,r){var i="ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '"+e+"'. Current value: '"+n+"'.";return r&&(i+=" It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook ?"),function(t,e){var n=new Error(t);return ri(n,e),n}(i,t)}function ri(t,e){t[ye]=e,t[ge]=e.logError.bind(e)}function ii(t){return new Error("ViewDestroyedError: Attempt to use a destroyed view: "+t)}var oi=function(){},si=new Map;function ai(t){var e=si.get(t);return e||(e=Vt(t)+"_"+si.size,si.set(t,e)),e}var li="$$undefined",ui="$$empty";function ci(t){return{id:li,styles:t.styles,encapsulation:t.encapsulation,data:t.data}}var hi=0;function di(t,e,n,r){return!(!(2&t.state)&&Lt(t.oldValues[e.bindingIndex+n],r))}function pi(t,e,n,r){return!!di(t,e,n,r)&&(t.oldValues[e.bindingIndex+n]=r,!0)}function fi(t,e,n,r){var i=t.oldValues[e.bindingIndex+n];if(1&t.state||!Jn(i,r)){var o=e.bindings[n].name;throw ni(ei.createDebugContext(t,e.nodeIndex),o+": "+i,o+": "+r,0!=(1&t.state))}}function mi(t){for(var e=t;e;)2&e.def.flags&&(e.state|=8),e=e.viewContainerParent||e.parent}function yi(t,e){for(var n=t;n&&n!==e;)n.state|=64,n=n.viewContainerParent||n.parent}function vi(t,e,n,r){try{return mi(33554432&t.def.nodes[e].flags?Zr(t,e).componentView:t),ei.handleEvent(t,e,n,r)}catch(e){t.root.errorHandler.handleError(e)}}function gi(t){return t.parent?Zr(t.parent,t.parentNodeDef.nodeIndex):null}function bi(t){return t.parent?t.parentNodeDef.parent:null}function _i(t,e){switch(201347067&e.flags){case 1:return Zr(t,e.nodeIndex).renderElement;case 2:return Yr(t,e.nodeIndex).renderText}}function wi(t){return!!t.parent&&!!(32768&t.parentNodeDef.flags)}function Si(t){return!(!t.parent||32768&t.parentNodeDef.flags)}function Ei(t){return 1<-1}(r)||"root"===i.providedIn&&r._def.isRoot))){var u=t._providers.length;return t._def.providersByKey[e.tokenKey]={flags:5120,value:e.token.ngInjectableDef.factory,deps:[],index:u,token:e.token},t._providers[u]=qi,t._providers[u]=Ki(t,t._def.providersByKey[e.tokenKey])}return 4&e.flags?n:t._parent.get(e.token,n)}finally{he(o)}}function Ki(t,e){var n;switch(201347067&e.flags){case 512:n=function(t,e,n){var r=n.length;switch(r){case 0:return new e;case 1:return new e(Qi(t,n[0]));case 2:return new e(Qi(t,n[0]),Qi(t,n[1]));case 3:return new e(Qi(t,n[0]),Qi(t,n[1]),Qi(t,n[2]));default:for(var i=new Array(r),o=0;o=n.length)&&(e=n.length-1),e<0)return null;var r=n[e];return r.viewContainerParent=null,to(n,e),ei.dirtyParentQueries(r),Ji(r),r}function Zi(t,e,n){var r=e?_i(e,e.def.lastRenderRootNode):t.renderElement;Ti(n,2,n.renderer.parentNode(r),n.renderer.nextSibling(r),void 0)}function Ji(t){Ti(t,3,null,null,void 0)}function $i(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function to(t,e){e>=t.length-1?t.pop():t.splice(e,1)}var eo=new Object;function no(t,e,n,r,i,o){return new ro(t,e,n,r,i,o)}var ro=function(t){function e(e,n,r,i,o,s){var a=t.call(this)||this;return a.selector=e,a.componentType=n,a._inputs=i,a._outputs=o,a.ngContentSelectors=s,a.viewDefFactory=r,a}return o(e,t),Object.defineProperty(e.prototype,"inputs",{get:function(){var t=[],e=this._inputs;for(var n in e)t.push({propName:n,templateName:e[n]});return t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputs",{get:function(){var t=[];for(var e in this._outputs)t.push({propName:e,templateName:this._outputs[e]});return t},enumerable:!0,configurable:!0}),e.prototype.create=function(t,e,n,r){if(!r)throw new Error("ngModule should be provided");var i=Ii(this.viewDefFactory),o=i.nodes[0].element.componentProvider.nodeIndex,s=ei.createRootView(t,e||[],n,i,r,eo),a=Jr(s,o).instance;return n&&s.renderer.setAttribute(Zr(s,0).renderElement,"ng-version",me.full),new io(s,new lo(s),a)},e}(Ke),io=function(t){function e(e,n,r){var i=t.call(this)||this;return i._view=e,i._viewRef=n,i._component=r,i._elDef=i._view.def.nodes[0],i.hostView=n,i.changeDetectorRef=n,i.instance=r,i}return o(e,t),Object.defineProperty(e.prototype,"location",{get:function(){return new Vn(Zr(this._view,this._elDef.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return new po(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentType",{get:function(){return this._component.constructor},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){this._viewRef.destroy()},e.prototype.onDestroy=function(t){this._viewRef.onDestroy(t)},e}(Qe);function oo(t,e,n){return new so(t,e,n)}var so=function(){function t(t,e,n){this._view=t,this._elDef=e,this._data=n,this._embeddedViews=[]}return Object.defineProperty(t.prototype,"element",{get:function(){return new Vn(this._data.renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return new po(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parentInjector",{get:function(){for(var t=this._view,e=this._elDef.parent;!e&&t;)e=bi(t),t=t.parent;return t?new po(t,e):new po(this._view,null)},enumerable:!0,configurable:!0}),t.prototype.clear=function(){for(var t=this._embeddedViews.length-1;t>=0;t--){var e=Yi(this._data,t);ei.destroyView(e)}},t.prototype.get=function(t){var e=this._embeddedViews[t];if(e){var n=new lo(e);return n.attachToViewContainerRef(this),n}return null},Object.defineProperty(t.prototype,"length",{get:function(){return this._embeddedViews.length},enumerable:!0,configurable:!0}),t.prototype.createEmbeddedView=function(t,e,n){var r=t.createEmbeddedView(e||{});return this.insert(r,n),r},t.prototype.createComponent=function(t,e,n,r,i){var o=n||this.parentInjector;i||t instanceof rn||(i=o.get(on));var s=t.create(o,r,void 0,i);return this.insert(s.hostView,e),s},t.prototype.insert=function(t,e){if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");var n,r,i,o,s=t;return i=s._view,o=(n=this._data).viewContainer._embeddedViews,null!==(r=e)&&void 0!==r||(r=o.length),i.viewContainerParent=this._view,$i(o,r,i),function(t,e){var n=gi(e);if(n&&n!==t&&!(16&e.state)){e.state|=16;var r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(e),function(t,n){if(!(4&n.flags)){e.parent.def.nodeFlags|=4,n.flags|=4;for(var r=n.parent;r;)r.childFlags|=4,r=r.parent}}(0,e.parentNodeDef)}}(n,i),ei.dirtyParentQueries(i),Zi(n,r>0?o[r-1]:null,i),s.attachToViewContainerRef(this),t},t.prototype.move=function(t,e){if(t.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");var n,r,i,o,s,a=this._embeddedViews.indexOf(t._view);return i=e,s=(o=(n=this._data).viewContainer._embeddedViews)[r=a],to(o,r),null==i&&(i=o.length),$i(o,i,s),ei.dirtyParentQueries(s),Ji(s),Zi(n,i>0?o[i-1]:null,s),t},t.prototype.indexOf=function(t){return this._embeddedViews.indexOf(t._view)},t.prototype.remove=function(t){var e=Yi(this._data,t);e&&ei.destroyView(e)},t.prototype.detach=function(t){var e=Yi(this._data,t);return e?new lo(e):null},t}();function ao(t){return new lo(t)}var lo=function(){function t(t){this._view=t,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(t.prototype,"rootNodes",{get:function(){return Ti(this._view,0,void 0,void 0,t=[]),t;var t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"destroyed",{get:function(){return 0!=(128&this._view.state)},enumerable:!0,configurable:!0}),t.prototype.markForCheck=function(){mi(this._view)},t.prototype.detach=function(){this._view.state&=-5},t.prototype.detectChanges=function(){var t=this._view.root.rendererFactory;t.begin&&t.begin();try{ei.checkAndUpdateView(this._view)}finally{t.end&&t.end()}},t.prototype.checkNoChanges=function(){ei.checkNoChangesView(this._view)},t.prototype.reattach=function(){this._view.state|=4},t.prototype.onDestroy=function(t){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(t)},t.prototype.destroy=function(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),ei.destroyView(this._view)},t.prototype.detachFromAppRef=function(){this._appRef=null,Ji(this._view),ei.dirtyParentQueries(this._view)},t.prototype.attachToAppRef=function(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t},t.prototype.attachToViewContainerRef=function(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t},t}();function uo(t,e){return new co(t,e)}var co=function(t){function e(e,n){var r=t.call(this)||this;return r._parentView=e,r._def=n,r}return o(e,t),e.prototype.createEmbeddedView=function(t){return new lo(ei.createEmbeddedView(this._parentView,this._def,this._def.element.template,t))},Object.defineProperty(e.prototype,"elementRef",{get:function(){return new Vn(Zr(this._parentView,this._def.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),e}(Hn);function ho(t,e){return new po(t,e)}var po=function(){function t(t,e){this.view=t,this.elDef=e}return t.prototype.get=function(t,e){return void 0===e&&(e=Yt.THROW_IF_NOT_FOUND),ei.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:t,tokenKey:ai(t)},e)},t}();function fo(t,e){var n=t.def.nodes[e];if(1&n.flags){var r=Zr(t,n.nodeIndex);return n.element.template?r.template:r.renderElement}if(2&n.flags)return Yr(t,n.nodeIndex).renderText;if(20240&n.flags)return Jr(t,n.nodeIndex).instance;throw new Error("Illegal state: read nodeValue for node index "+e)}function mo(t){return new yo(t.renderer)}var yo=function(){function t(t){this.delegate=t}return t.prototype.selectRootElement=function(t){return this.delegate.selectRootElement(t)},t.prototype.createElement=function(t,e){var n=h(Mi(e),2),r=this.delegate.createElement(n[1],n[0]);return t&&this.delegate.appendChild(t,r),r},t.prototype.createViewRoot=function(t){return t},t.prototype.createTemplateAnchor=function(t){var e=this.delegate.createComment("");return t&&this.delegate.appendChild(t,e),e},t.prototype.createText=function(t,e){var n=this.delegate.createText(e);return t&&this.delegate.appendChild(t,n),n},t.prototype.projectNodes=function(t,e){for(var n=0;n0,e.provider.value,e.provider.deps);if(e.outputs.length)for(var r=0;r0,r=e.provider;switch(201347067&e.flags){case 512:return Mo(t,e.parent,n,r.value,r.deps);case 1024:return function(t,e,n,r,i){var o=i.length;switch(o){case 0:return r();case 1:return r(Vo(t,e,n,i[0]));case 2:return r(Vo(t,e,n,i[0]),Vo(t,e,n,i[1]));case 3:return r(Vo(t,e,n,i[0]),Vo(t,e,n,i[1]),Vo(t,e,n,i[2]));default:for(var s=Array(o),a=0;a0)u=m,es(m)||(c=m);else for(;u&&f===u.nodeIndex+u.childCount;){var g=u.parent;g&&(g.childFlags|=u.childFlags,g.childMatchedQueries|=u.childMatchedQueries),c=(u=g)&&es(u)?u.renderParent:u}}return{factory:null,nodeFlags:s,rootNodeFlags:a,nodeMatchedQueries:l,flags:t,nodes:e,updateDirectives:n||oi,updateRenderer:r||oi,handleEvent:function(t,n,r,i){return e[n].element.handleEvent(t,r,i)},bindingCount:i,outputCount:o,lastRenderRootNode:p}}function es(t){return 0!=(1&t.flags)&&null===t.element.name}function ns(t,e,n){var r=e.element&&e.element.template;if(r){if(!r.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(r.lastRenderRootNode&&16777216&r.lastRenderRootNode.flags)throw new Error("Illegal State: Last root node of a template can't have embedded views, at index "+e.nodeIndex+"!")}if(20224&e.flags&&0==(1&(t?t.flags:0)))throw new Error("Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index "+e.nodeIndex+"!");if(e.query){if(67108864&e.flags&&(!t||0==(16384&t.flags)))throw new Error("Illegal State: Content Query nodes need to be children of directives, at index "+e.nodeIndex+"!");if(134217728&e.flags&&t)throw new Error("Illegal State: View Query nodes have to be top level nodes, at index "+e.nodeIndex+"!")}if(e.childCount){var i=t?t.nodeIndex+t.childCount:n-1;if(e.nodeIndex<=i&&e.nodeIndex+e.childCount>i)throw new Error("Illegal State: childCount of node leads outside of parent, at index "+e.nodeIndex+"!")}}function rs(t,e,n,r){var i=ss(t.root,t.renderer,t,e,n);return as(i,t.component,r),ls(i),i}function is(t,e,n){var r=ss(t,t.renderer,null,null,e);return as(r,n,n),ls(r),r}function os(t,e,n,r){var i,o=e.element.componentRendererType;return i=o?t.root.rendererFactory.createRenderer(r,o):t.root.renderer,ss(t.root,i,t,e.element.componentProvider,n)}function ss(t,e,n,r,i){var o=new Array(i.nodes.length),s=i.outputCount?new Array(i.outputCount):null;return{def:i,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:o,state:13,root:t,renderer:e,oldValues:new Array(i.bindingCount),disposables:s,initIndex:-1}}function as(t,e,n){t.component=e,t.context=n}function ls(t){var e;wi(t)&&(e=Zr(t.parent,t.parentNodeDef.parent.nodeIndex).renderElement);for(var n=t.def,r=t.nodes,i=0;i0&&zi(t,e,0,n)&&(p=!0),d>1&&zi(t,e,1,r)&&(p=!0),d>2&&zi(t,e,2,i)&&(p=!0),d>3&&zi(t,e,3,o)&&(p=!0),d>4&&zi(t,e,4,s)&&(p=!0),d>5&&zi(t,e,5,a)&&(p=!0),d>6&&zi(t,e,6,l)&&(p=!0),d>7&&zi(t,e,7,u)&&(p=!0),d>8&&zi(t,e,8,c)&&(p=!0),d>9&&zi(t,e,9,h)&&(p=!0),p}(t,e,n,r,i,o,s,a,l,u,c,h);case 2:return function(t,e,n,r,i,o,s,a,l,u,c,h){var d=!1,p=e.bindings,f=p.length;if(f>0&&pi(t,e,0,n)&&(d=!0),f>1&&pi(t,e,1,r)&&(d=!0),f>2&&pi(t,e,2,i)&&(d=!0),f>3&&pi(t,e,3,o)&&(d=!0),f>4&&pi(t,e,4,s)&&(d=!0),f>5&&pi(t,e,5,a)&&(d=!0),f>6&&pi(t,e,6,l)&&(d=!0),f>7&&pi(t,e,7,u)&&(d=!0),f>8&&pi(t,e,8,c)&&(d=!0),f>9&&pi(t,e,9,h)&&(d=!0),d){var m=e.text.prefix;f>0&&(m+=$o(n,p[0])),f>1&&(m+=$o(r,p[1])),f>2&&(m+=$o(i,p[2])),f>3&&(m+=$o(o,p[3])),f>4&&(m+=$o(s,p[4])),f>5&&(m+=$o(a,p[5])),f>6&&(m+=$o(l,p[6])),f>7&&(m+=$o(u,p[7])),f>8&&(m+=$o(c,p[8])),f>9&&(m+=$o(h,p[9]));var y=Yr(t,e.nodeIndex).renderText;t.renderer.setValue(y,m)}return d}(t,e,n,r,i,o,s,a,l,u,c,h);case 16384:return function(t,e,n,r,i,o,s,a,l,u,c,h){var d=Jr(t,e.nodeIndex),p=d.instance,f=!1,m=void 0,y=e.bindings.length;return y>0&&di(t,e,0,n)&&(f=!0,m=jo(t,d,e,0,n,m)),y>1&&di(t,e,1,r)&&(f=!0,m=jo(t,d,e,1,r,m)),y>2&&di(t,e,2,i)&&(f=!0,m=jo(t,d,e,2,i,m)),y>3&&di(t,e,3,o)&&(f=!0,m=jo(t,d,e,3,o,m)),y>4&&di(t,e,4,s)&&(f=!0,m=jo(t,d,e,4,s,m)),y>5&&di(t,e,5,a)&&(f=!0,m=jo(t,d,e,5,a,m)),y>6&&di(t,e,6,l)&&(f=!0,m=jo(t,d,e,6,l,m)),y>7&&di(t,e,7,u)&&(f=!0,m=jo(t,d,e,7,u,m)),y>8&&di(t,e,8,c)&&(f=!0,m=jo(t,d,e,8,c,m)),y>9&&di(t,e,9,h)&&(f=!0,m=jo(t,d,e,9,h,m)),m&&p.ngOnChanges(m),65536&e.flags&&Kr(t,256,e.nodeIndex)&&p.ngOnInit(),262144&e.flags&&p.ngDoCheck(),f}(t,e,n,r,i,o,s,a,l,u,c,h);case 32:case 64:case 128:return function(t,e,n,r,i,o,s,a,l,u,c,h){var d=e.bindings,p=!1,f=d.length;if(f>0&&pi(t,e,0,n)&&(p=!0),f>1&&pi(t,e,1,r)&&(p=!0),f>2&&pi(t,e,2,i)&&(p=!0),f>3&&pi(t,e,3,o)&&(p=!0),f>4&&pi(t,e,4,s)&&(p=!0),f>5&&pi(t,e,5,a)&&(p=!0),f>6&&pi(t,e,6,l)&&(p=!0),f>7&&pi(t,e,7,u)&&(p=!0),f>8&&pi(t,e,8,c)&&(p=!0),f>9&&pi(t,e,9,h)&&(p=!0),p){var m=$r(t,e.nodeIndex),y=void 0;switch(201347067&e.flags){case 32:y=new Array(d.length),f>0&&(y[0]=n),f>1&&(y[1]=r),f>2&&(y[2]=i),f>3&&(y[3]=o),f>4&&(y[4]=s),f>5&&(y[5]=a),f>6&&(y[6]=l),f>7&&(y[7]=u),f>8&&(y[8]=c),f>9&&(y[9]=h);break;case 64:y={},f>0&&(y[d[0].name]=n),f>1&&(y[d[1].name]=r),f>2&&(y[d[2].name]=i),f>3&&(y[d[3].name]=o),f>4&&(y[d[4].name]=s),f>5&&(y[d[5].name]=a),f>6&&(y[d[6].name]=l),f>7&&(y[d[7].name]=u),f>8&&(y[d[8].name]=c),f>9&&(y[d[9].name]=h);break;case 128:var v=n;switch(f){case 1:y=v.transform(n);break;case 2:y=v.transform(r);break;case 3:y=v.transform(r,i);break;case 4:y=v.transform(r,i,o);break;case 5:y=v.transform(r,i,o,s);break;case 6:y=v.transform(r,i,o,s,a);break;case 7:y=v.transform(r,i,o,s,a,l);break;case 8:y=v.transform(r,i,o,s,a,l,u);break;case 9:y=v.transform(r,i,o,s,a,l,u,c);break;case 10:y=v.transform(r,i,o,s,a,l,u,c,h)}}m.value=y}return p}(t,e,n,r,i,o,s,a,l,u,c,h);default:throw"unreachable"}}(t,e,r,i,o,s,a,l,u,c,h,p):function(t,e,n){switch(201347067&e.flags){case 1:return function(t,e,n){for(var r=!1,i=0;i0&&fi(t,e,0,n),d>1&&fi(t,e,1,r),d>2&&fi(t,e,2,i),d>3&&fi(t,e,3,o),d>4&&fi(t,e,4,s),d>5&&fi(t,e,5,a),d>6&&fi(t,e,6,l),d>7&&fi(t,e,7,u),d>8&&fi(t,e,8,c),d>9&&fi(t,e,9,h)}(t,e,r,i,o,s,a,l,u,c,h,d):function(t,e,n){for(var r=0;r0){var o=new Set(t.modules);Ps.forEach(function(e,r){if(o.has(r.ngInjectableDef.providedIn)){var i={token:r,flags:e.flags|(n?4096:0),deps:xi(e.deps),value:e.value,index:t.providers.length};t.providers.push(i),t.providersByKey[ai(r)]=i}})}}(t=t.factory(function(){return oi})),t):t}(r))}var Ts=new Map,Ps=new Map,Rs=new Map;function As(t){Ts.set(t.token,t),"function"==typeof t.token&&t.token.ngInjectableDef&&"function"==typeof t.token.ngInjectableDef.providedIn&&Ps.set(t.token,t)}function Ns(t,e){var n=Ii(Ii(e.viewDefFactory).nodes[0].element.componentView);Rs.set(t,n)}function Ds(){Ts.clear(),Ps.clear(),Rs.clear()}function Ms(t){if(0===Ts.size)return t;var e=function(t){for(var e=[],n=null,r=0;r=d.length){var p=d[h]=vl(e,h,r,i,a,null);if(!Ga&&Wa){var f=Wa.tNode;f.next=p,f.dynamicContainerNode&&(f.dynamicContainerNode.next=p)}}c.tNode=d[h],Ga&&(Qa=null,(null==Wa.tNode.child&&Wa.view===Ya||2===Wa.tNode.type)&&(Wa.tNode.child=c.tNode))}if(2==(2&e)&&u){var m=o;m[fa]=c,rl&&(m[ua].node=c.tNode)}return Wa=c,Ga=!0,c}function cl(t,e,n,r){var i,o=Ga,s=Wa;if(null==t.data[ca]&&t.data[ga]&&!e.template)_l(t.data[ga]);else try{Ga=!0,Wa=null,i=il(t.data,t),fl(),e.template(r,n),2&r?sl():t.data[ua].firstTemplatePass=rl=!1}finally{ol(i,1==(1&r)),Ga=o,Wa=s}return t}function hl(t,e,n,r){var i=il(e,t);try{Ha.begin&&Ha.begin(),r?(fl(),r(dl(e),n),sl()):(nl||(xa(Ya,Xa,Ka),ka(Za,Xa.contentHooks,Xa.contentCheckHooks,Ka)),al(tl),gl(0,la))}finally{Ha.end&&Ha.end(),ol(i)}}function dl(t){return 1&t[pa]?3:2}var pl=null;function fl(){pl=null}function ml(t,e,n,r,i){return{id:t,template:e,viewQuery:i,node:null,data:el.slice(),childIndex:-1,bindingStartIndex:-1,directives:null,firstTemplatePass:!0,initHooks:null,checkHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,pipeDestroyHooks:null,cleanup:null,hostBindings:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof n?n():n,pipeRegistry:"function"==typeof r?r():r,currentMatches:null}}function yl(t,e){Ha=t;var n=t.createRenderer(null,null);return"string"==typeof e?Ra(n)?n.selectRootElement(e):n.querySelector(e):e}function vl(t,e,n,r,i,o){return{type:t,index:e,flags:0,tagName:n,attrs:r,localNames:null,initialInputs:void 0,inputs:void 0,outputs:void 0,tViews:o,next:null,child:null,parent:i,dynamicContainerNode:null,detached:null,stylingTemplate:null,projection:null}}function gl(t,e){var n=Ya[e],r=n.data;bl(r)&&6&r[pa]&&El(r,n,Za[t])}function bl(t){return 8==(8&t[pa])}function _l(t){for(var e=0;e=la?e[ua].childIndex>-1&&(n=Ba(e)):e[Ta].length&&(n=e[Ta][0].data),null==n){for(;e&&!e[ha]&&e!==t;)za(e),e=Ua(e,t);za(e||t),n=e&&e[ha]}e=n}}(t),t[pa]|=32},t.prototype.onDestroy=function(t){var e,n;n=t,function(t){return t[va]||(t[va]=[])}(e=this._view).push(n),e[ua].firstTemplatePass&&function(t){return t[ua].cleanup||(t[ua].cleanup=[])}(e).push(e[va].length-1,null)},t.prototype.markForCheck=function(){!function(t){for(var e=t;null!=e[ca];)e[pa]|=4,e=e[ca];var n,r;e[pa]|=4,(n=e[ga]).clean==$a&&(n.clean=new Promise(function(t){return r=t}),n.scheduler(function(){_l(n),r(null),n.clean=$a}))}(this._view)},t.prototype.detach=function(){this._view[pa]&=-9},t.prototype.reattach=function(){this._view[pa]|=8},t.prototype.detectChanges=function(){Sl(this.context)},t.prototype.checkNoChanges=function(){!function(t){nl=!0;try{Sl(t)}finally{nl=!1}}(this.context)},t.prototype.attachToViewContainerRef=function(t){this._viewContainerRef=t},t.prototype.detachFromAppRef=function(){this._appRef=null},t.prototype.attachToAppRef=function(t){this._appRef=t},t}(),Il=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.resolveComponentFactory=function(t){return new Al(t.ngComponentDef)},e}(en);function Tl(t){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}var Pl=new Ct("ROOT_CONTEXT_TOKEN",{providedIn:"root",factory:function(){return kl(de(Rl))}}),Rl=new Ct("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return requestAnimationFrame.bind(window)}}),Al=function(t){function e(e){var n=t.call(this)||this;return n.componentDef=e,n.componentType=e.type,n.selector=e.selectors[0][0],n.ngContentSelectors=[],n}return o(e,t),Object.defineProperty(e.prototype,"inputs",{get:function(){return Tl(this.componentDef.inputs)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputs",{get:function(){return Tl(this.componentDef.outputs)},enumerable:!0,configurable:!0}),e.prototype.create=function(t,e,n,r){var i,o,s=void 0===n,a=r?r.injector.get(Dn):Aa,l=s?(i=this.selector,Ra(o=a.createRenderer(null,this.componentDef.rendererType)||qa)?o.createElement(i,pl):null===pl?o.createElement(i):o.createElementNS(pl,i)):yl(a,n),u=r&&!s?r.injector.get(Pl):kl(requestAnimationFrame.bind(window)),c=ll(a.createRenderer(l,this.componentDef.rendererType),ml(-1,null,null,null,null),u,this.componentDef.onPush?4:2);c[ba]=r&&r.injector||null;var h,d,p=il(c,null);try{if(a.begin&&a.begin(),d=function(t,e,n,r){Ga=!1,Wa=null;var i,o=ul(0,3,e,null,null,ll(qa,(i=n.template).ngPrivateData||(i.ngPrivateData=ml(-1,i,n.directiveDefs,n.pipeDefs,n.viewQuery)),null,n.onPush?4:2,r));return rl&&(o.tNode.flags=4096,n.diPublic&&n.diPublic(n),Xa.directives=[n]),o}(0,l,this.componentDef),u.components.push(h=function(t,e,n){if(Object.defineProperty(e,Ja,{enumerable:!1,value:Wa}),null==Za&&(Ya[ya]=Za=[]),Za[t]=e,rl){var r=Wa.tNode.flags;0==(4095&r)?Wa.tNode.flags=t<<14|4096&r|1:Wa.tNode.flags++}else{var i=n.diPublic;i&&i(n)}return null!=n.attributes&&3==Wa.tNode.type&&function(t,e){for(var n=Ra(qa),r=0;r>14,r=n+(4095&t),i=n;i0?e.substring(1):e},e.prototype.prepareExternalUrl=function(t){var e=Ul.joinWithSlash(this._baseHref,t);return e.length>0?"#"+e:e},e.prototype.pushState=function(t,e,n,r){var i=this.prepareExternalUrl(n+Ul.normalizeQueryParams(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(t,e,i)},e.prototype.replaceState=function(t,e,n,r){var i=this.prepareExternalUrl(n+Ul.normalizeQueryParams(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,i)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},a([l(1,Ut()),l(1,Bt(Bl))],e)}(jl),Hl=function(t){function e(e,n){var r=t.call(this)||this;if(r._platformLocation=e,null==n&&(n=r._platformLocation.getBaseHrefFromDOM()),null==n)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return r._baseHref=n,r}return o(e,t),e.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},e.prototype.getBaseHref=function(){return this._baseHref},e.prototype.prepareExternalUrl=function(t){return Ul.joinWithSlash(this._baseHref,t)},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.pathname+Ul.normalizeQueryParams(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?""+e+n:e},e.prototype.pushState=function(t,e,n,r){var i=this.prepareExternalUrl(n+Ul.normalizeQueryParams(r));this._platformLocation.pushState(t,e,i)},e.prototype.replaceState=function(t,e,n,r){var i=this.prepareExternalUrl(n+Ul.normalizeQueryParams(r));this._platformLocation.replaceState(t,e,i)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},a([l(1,Ut()),l(1,Bt(Bl))],e)}(jl),Wl=void 0,Gl=["en",[["a","p"],["AM","PM"],Wl],[["AM","PM"],Wl,Wl],[["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"]],Wl,[["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"]],Wl,[["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}",Wl,"{1} 'at' {0}",Wl],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"$","US Dollar",{},function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}],Xl={},Ql=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({}),Kl=new Ct("UseV4Plurals"),Yl=function(){},Zl=function(t){function e(e,n){var r=t.call(this)||this;return r.locale=e,r.deprecatedPluralFn=n,r}return o(e,t),e.prototype.getPluralCategory=function(t,e){switch(this.deprecatedPluralFn?this.deprecatedPluralFn(e||this.locale,t):function(t){return function(t){var e=t.toLowerCase().replace(/_/g,"-"),n=Xl[e];if(n)return n;var r=e.split("-")[0];if(n=Xl[r])return n;if("en"===r)return Gl;throw new Error('Missing locale data for the locale "'+t+'".')}(t)[18]}(e||this.locale)(t)){case Ql.Zero:return"zero";case Ql.One:return"one";case Ql.Two:return"two";case Ql.Few:return"few";case Ql.Many:return"many";default:return"other"}},a([l(0,Bt(br)),l(1,Ut()),l(1,Bt(Kl))],e)}(Yl),Jl=function(){function t(t,e,n,r){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=r,this._initialClasses=[]}return Object.defineProperty(t.prototype,"klass",{set:function(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClass",{set:function(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(er(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())},enumerable:!0,configurable:!0}),t.prototype.ngDoCheck=function(){if(this._iterableDiffer){var t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){var e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}},t.prototype._applyKeyValueChanges=function(t){var e=this;t.forEachAddedItem(function(t){return e._toggleClass(t.key,t.currentValue)}),t.forEachChangedItem(function(t){return e._toggleClass(t.key,t.currentValue)}),t.forEachRemovedItem(function(t){t.previousValue&&e._toggleClass(t.key,!1)})},t.prototype._applyIterableChanges=function(t){var e=this;t.forEachAddedItem(function(t){if("string"!=typeof t.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+Vt(t.item));e._toggleClass(t.item,!0)}),t.forEachRemovedItem(function(t){return e._toggleClass(t.item,!1)})},t.prototype._applyClasses=function(t){var e=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach(function(t){return e._toggleClass(t,!0)}):Object.keys(t).forEach(function(n){return e._toggleClass(n,!!t[n])}))},t.prototype._removeClasses=function(t){var e=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach(function(t){return e._toggleClass(t,!1)}):Object.keys(t).forEach(function(t){return e._toggleClass(t,!1)}))},t.prototype._toggleClass=function(t,e){var n=this;(t=t.trim())&&t.split(/\s+/g).forEach(function(t){e?n._renderer.addClass(n._ngEl.nativeElement,t):n._renderer.removeClass(n._ngEl.nativeElement,t)})},t}(),$l=function(){function t(t,e,n,r){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=r}return Object.defineProperty(t.prototype,"first",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"last",{get:function(){return this.index===this.count-1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"even",{get:function(){return this.index%2==0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"odd",{get:function(){return!this.even},enumerable:!0,configurable:!0}),t}(),tu=function(){function t(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._ngForOfDirty=!0,this._differ=null}return Object.defineProperty(t.prototype,"ngForOf",{set:function(t){this._ngForOf=t,this._ngForOfDirty=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngForTrackBy",{get:function(){return this._trackByFn},set:function(t){kn()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn("trackBy must be a function, but received "+JSON.stringify(t)+". See https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html#!#change-propagation for more information."),this._trackByFn=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngForTemplate",{set:function(t){t&&(this._template=t)},enumerable:!0,configurable:!0}),t.prototype.ngDoCheck=function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var t=this._ngForOf;if(!this._differ&&t)try{this._differ=this._differs.find(t).create(this.ngForTrackBy)}catch(n){throw new Error("Cannot find a differ supporting object '"+t+"' of type '"+((e=t).name||typeof e)+"'. NgFor only supports binding to Iterables such as Arrays.")}}var e;if(this._differ){var n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}},t.prototype._applyChanges=function(t){var e=this,n=[];t.forEachOperation(function(t,r,i){if(null==t.previousIndex){var o=e._viewContainer.createEmbeddedView(e._template,new $l(null,e._ngForOf,-1,-1),i),s=new eu(t,o);n.push(s)}else null==i?e._viewContainer.remove(r):(o=e._viewContainer.get(r),e._viewContainer.move(o,i),s=new eu(t,o),n.push(s))});for(var r=0;r0},e.prototype.tagName=function(t){return t.tagName},e.prototype.attributeMap=function(t){for(var e=new Map,n=t.attributes,r=0;r0;s||(s=t[o]=[]);var l=rc(e)?Zone.root:Zone.current;if(0===s.length)s.push({zone:l,handler:i});else{for(var u=!1,c=0;c-1},a([l(0,Bt(xu)),l(1,Bt(ac)),l(3,Ut()),l(3,Bt(lc))],e)}(Lu),hc=["alt","control","meta","shift"],dc={alt:function(t){return t.altKey},control:function(t){return t.ctrlKey},meta:function(t){return t.metaKey},shift:function(t){return t.shiftKey}},pc=function(t){function e(e){return t.call(this,e)||this}var n;return o(e,t),n=e,e.prototype.supports=function(t){return null!=n.parseEventName(t)},e.prototype.addEventListener=function(t,e,r){var i=n.parseEventName(e),o=n.eventCallback(i.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return vu().onAndCancel(t,i.domEventName,o)})},e.parseEventName=function(t){var e=t.toLowerCase().split("."),r=e.shift();if(0===e.length||"keydown"!==r&&"keyup"!==r)return null;var i=n._normalizeKey(e.pop()),o="";if(hc.forEach(function(t){var n=e.indexOf(t);n>-1&&(e.splice(n,1),o+=t+".")}),o+=i,0!=e.length||0===i.length)return null;var s={};return s.domEventName=r,s.fullKey=o,s},e.getEventFullKey=function(t){var e="",n=vu().getEventKey(t);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),hc.forEach(function(r){r!=n&&(0,dc[r])(t)&&(e+=r+".")}),e+=n},e.eventCallback=function(t,e,r){return function(i){n.getEventFullKey(i)===t&&r.runGuarded(function(){return e(i)})}},e._normalizeKey=function(t){switch(t){case"esc":return"escape";default:return t}},n=a([l(0,Bt(xu))],e)}(Lu),fc=function(){},mc=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n}return o(e,t),e.prototype.sanitize=function(t,e){if(null==e)return null;switch(t){case Gr.NONE:return e;case Gr.HTML:return e instanceof vc?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"HTML"),function(t,e){var n=null;try{Pr=Pr||new Cr(t);var r=e?String(e):"";n=Pr.getInertBodyElement(r);var i=5,o=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,o=n.innerHTML,n=Pr.getInertBodyElement(r)}while(r!==o);var s=new jr,a=s.sanitizeChildren(qr(n)||n);return kn()&&s.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content (see http://g.co/ng/security#xss)."),a}finally{if(n)for(var l=qr(n)||n;l.firstChild;)l.removeChild(l.firstChild)}}(this._doc,String(e)));case Gr.STYLE:return e instanceof gc?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"Style"),function(t){if(!(t=String(t).trim()))return"";var e=t.match(Wr);return e&&Or(e[1])===e[1]||t.match(Hr)&&function(t){for(var e=!0,n=!0,r=0;r0){var r=t.slice(0,e),i=t.slice(e+1).trim();n.set(r,i)}}),n},t.prototype.append=function(t,e){var n=this.getAll(t);null===n?this.set(t,e):n.push(e)},t.prototype.delete=function(t){var e=t.toLowerCase();this._normalizedNames.delete(e),this._headers.delete(e)},t.prototype.forEach=function(t){var e=this;this._headers.forEach(function(n,r){return t(n,e._normalizedNames.get(r),e._headers)})},t.prototype.get=function(t){var e=this.getAll(t);return null===e?null:e.length>0?e[0]:null},t.prototype.has=function(t){return this._headers.has(t.toLowerCase())},t.prototype.keys=function(){return Array.from(this._normalizedNames.values())},t.prototype.set=function(t,e){Array.isArray(e)?e.length&&this._headers.set(t.toLowerCase(),[e.join(",")]):this._headers.set(t.toLowerCase(),[e]),this.mayBeSetNormalizedName(t)},t.prototype.values=function(){return Array.from(this._headers.values())},t.prototype.toJSON=function(){var t=this,e={};return this._headers.forEach(function(n,r){var i=[];n.forEach(function(t){return i.push.apply(i,d(t.split(",")))}),e[t._normalizedNames.get(r)]=i}),e},t.prototype.getAll=function(t){return this.has(t)&&this._headers.get(t.toLowerCase())||null},t.prototype.entries=function(){throw new Error('"entries" method is not implemented on Headers class')},t.prototype.mayBeSetNormalizedName=function(t){var e=t.toLowerCase();this._normalizedNames.has(e)||this._normalizedNames.set(e,t)},t}(),Rc=function(){function t(t){void 0===t&&(t={});var e=t.body,n=t.status,r=t.headers,i=t.statusText,o=t.type,s=t.url;this.body=null!=e?e:null,this.status=null!=n?n:null,this.headers=null!=r?r:null,this.statusText=null!=i?i:null,this.type=null!=o?o:null,this.url=null!=s?s:null}return t.prototype.merge=function(e){return new t({body:e&&null!=e.body?e.body:this.body,status:e&&null!=e.status?e.status:this.status,headers:e&&null!=e.headers?e.headers:this.headers,statusText:e&&null!=e.statusText?e.statusText:this.statusText,type:e&&null!=e.type?e.type:this.type,url:e&&null!=e.url?e.url:this.url})},t}(),Ac=function(t){function e(){return t.call(this,{status:200,statusText:"Ok",type:Oc.Default,headers:new Pc})||this}return o(e,t),e}(Rc),Nc=function(){};function Dc(t){if("string"!=typeof t)return t;switch(t.toUpperCase()){case"GET":return kc.Get;case"POST":return kc.Post;case"PUT":return kc.Put;case"DELETE":return kc.Delete;case"OPTIONS":return kc.Options;case"HEAD":return kc.Head;case"PATCH":return kc.Patch}throw new Error('Invalid request method. The method "'+t+'" is not supported.')}var Mc=function(t){return t>=200&&t<300},Lc=function(){function t(){}return t.prototype.encodeKey=function(t){return Vc(t)},t.prototype.encodeValue=function(t){return Vc(t)},t}();function Vc(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}var Fc=function(){function t(t,e){void 0===t&&(t=""),void 0===e&&(e=new Lc),this.rawParams=t,this.queryEncoder=e,this.paramsMap=function(t){void 0===t&&(t="");var e=new Map;return t.length>0&&t.split("&").forEach(function(t){var n=t.indexOf("="),r=h(-1==n?[t,""]:[t.slice(0,n),t.slice(n+1)],2),i=r[0],o=r[1],s=e.get(i)||[];s.push(o),e.set(i,s)}),e}(t)}return t.prototype.clone=function(){var e=new t("",this.queryEncoder);return e.appendAll(this),e},t.prototype.has=function(t){return this.paramsMap.has(t)},t.prototype.get=function(t){var e=this.paramsMap.get(t);return Array.isArray(e)?e[0]:null},t.prototype.getAll=function(t){return this.paramsMap.get(t)||[]},t.prototype.set=function(t,e){if(void 0!==e&&null!==e){var n=this.paramsMap.get(t)||[];n.length=0,n.push(e),this.paramsMap.set(t,n)}else this.delete(t)},t.prototype.setAll=function(t){var e=this;t.paramsMap.forEach(function(t,n){var r=e.paramsMap.get(n)||[];r.length=0,r.push(t[0]),e.paramsMap.set(n,r)})},t.prototype.append=function(t,e){if(void 0!==e&&null!==e){var n=this.paramsMap.get(t)||[];n.push(e),this.paramsMap.set(t,n)}},t.prototype.appendAll=function(t){var e=this;t.paramsMap.forEach(function(t,n){for(var r=e.paramsMap.get(n)||[],i=0;i=200&&n.status<=299,n.statusText=e.statusText,n.headers=e.headers,n.type=e.type,n.url=e.url,n}return o(e,t),e.prototype.toString=function(){return"Response with status: "+this.status+" "+this.statusText+" for URL: "+this.url},e}(jc),Uc=/^\)\]\}',?\n/,zc=function(){function t(t,e,n){var r=this;this.request=t,this.response=new L(function(i){var o=e.build();o.open(kc[t.method].toUpperCase(),t.url),null!=t.withCredentials&&(o.withCredentials=t.withCredentials);var s=function(){var e=1223===o.status?204:o.status,r=null;204!==e&&"string"==typeof(r=void 0===o.response?o.responseText:o.response)&&(r=r.replace(Uc,"")),0===e&&(e=r?200:0);var s,a=Pc.fromResponseHeaderString(o.getAllResponseHeaders()),l=("responseURL"in(s=o)?s.responseURL:/^X-Request-URL:/m.test(s.getAllResponseHeaders())?s.getResponseHeader("X-Request-URL"):null)||t.url,u=new Rc({body:r,status:e,headers:a,statusText:o.statusText||"OK",url:l});null!=n&&(u=n.merge(u));var c=new Bc(u);if(c.ok=Mc(e),c.ok)return i.next(c),void i.complete();i.error(c)},a=function(t){var e=new Rc({body:t,type:Oc.Error,status:o.status,statusText:o.statusText});null!=n&&(e=n.merge(e)),i.error(new Bc(e))};if(r.setDetectedContentType(t,o),null==t.headers&&(t.headers=new Pc),t.headers.has("Accept")||t.headers.append("Accept","application/json, text/plain, */*"),t.headers.forEach(function(t,e){return o.setRequestHeader(e,t.join(","))}),null!=t.responseType&&null!=o.responseType)switch(t.responseType){case Tc.ArrayBuffer:o.responseType="arraybuffer";break;case Tc.Json:o.responseType="json";break;case Tc.Text:o.responseType="text";break;case Tc.Blob:o.responseType="blob";break;default:throw new Error("The selected responseType is not supported")}return o.addEventListener("load",s),o.addEventListener("error",a),o.send(r.request.getBody()),function(){o.removeEventListener("load",s),o.removeEventListener("error",a),o.abort()}})}return t.prototype.setDetectedContentType=function(t,e){if(null==t.headers||null==t.headers.get("Content-Type"))switch(t.contentType){case Ic.NONE:break;case Ic.JSON:e.setRequestHeader("content-type","application/json");break;case Ic.FORM:e.setRequestHeader("content-type","application/x-www-form-urlencoded;charset=UTF-8");break;case Ic.TEXT:e.setRequestHeader("content-type","text/plain");break;case Ic.BLOB:var n=t.blob();n.type&&e.setRequestHeader("content-type",n.type)}},t}(),qc=function(){function t(t,e){void 0===t&&(t="XSRF-TOKEN"),void 0===e&&(e="X-XSRF-TOKEN"),this._cookieName=t,this._headerName=e}return t.prototype.configureRequest=function(t){var e=vu().getCookie(this._cookieName);e&&t.headers.set(this._headerName,e)},t}(),Hc=function(){function t(t,e,n){this._browserXHR=t,this._baseResponseOptions=e,this._xsrfStrategy=n}return t.prototype.createConnection=function(t){return this._xsrfStrategy.configureRequest(t),new zc(t,this._browserXHR,this._baseResponseOptions)},t}(),Wc=function(){function t(t){void 0===t&&(t={});var e=t.method,n=t.headers,r=t.body,i=t.url,o=t.search,s=t.params,a=t.withCredentials,l=t.responseType;this.method=null!=e?Dc(e):null,this.headers=null!=n?n:null,this.body=null!=r?r:null,this.url=null!=i?i:null,this.params=this._mergeSearchParams(s||o),this.withCredentials=null!=a?a:null,this.responseType=null!=l?l:null}return Object.defineProperty(t.prototype,"search",{get:function(){return this.params},set:function(t){this.params=t},enumerable:!0,configurable:!0}),t.prototype.merge=function(e){return new t({method:e&&null!=e.method?e.method:this.method,headers:e&&null!=e.headers?e.headers:new Pc(this.headers),body:e&&null!=e.body?e.body:this.body,url:e&&null!=e.url?e.url:this.url,params:e&&this._mergeSearchParams(e.params||e.search),withCredentials:e&&null!=e.withCredentials?e.withCredentials:this.withCredentials,responseType:e&&null!=e.responseType?e.responseType:this.responseType})},t.prototype._mergeSearchParams=function(t){return t?t instanceof Fc?t.clone():"string"==typeof t?new Fc(t):this._parseParams(t):this.params},t.prototype._parseParams=function(t){var e=this;void 0===t&&(t={});var n=new Fc;return Object.keys(t).forEach(function(r){var i=t[r];Array.isArray(i)?i.forEach(function(t){return e._appendParam(r,t,n)}):e._appendParam(r,i,n)}),n},t.prototype._appendParam=function(t,e,n){"string"!=typeof e&&(e=JSON.stringify(e)),n.append(t,e)},t}(),Gc=function(t){function e(){return t.call(this,{method:kc.Get,headers:new Pc})||this}return o(e,t),e}(Wc),Xc=function(t){function e(e){var n=t.call(this)||this,r=e.url;n.url=e.url;var i,o=e.params||e.search;if(o&&(i="object"!=typeof o||o instanceof Fc?o.toString():function(t){var e=new Fc;return Object.keys(t).forEach(function(n){var r=t[n];r&&Array.isArray(r)?r.forEach(function(t){return e.append(n,t.toString())}):e.append(n,r.toString())}),e}(o).toString()).length>0){var s="?";-1!=n.url.indexOf("?")&&(s="&"==n.url[n.url.length-1]?"":"&"),n.url=r+s+i}return n._body=e.body,n.method=Dc(e.method),n.headers=new Pc(e.headers),n.contentType=n.detectContentType(),n.withCredentials=e.withCredentials,n.responseType=e.responseType,n}return o(e,t),e.prototype.detectContentType=function(){switch(this.headers.get("content-type")){case"application/json":return Ic.JSON;case"application/x-www-form-urlencoded":return Ic.FORM;case"multipart/form-data":return Ic.FORM_DATA;case"text/plain":case"text/html":return Ic.TEXT;case"application/octet-stream":return this._body instanceof Jc?Ic.ARRAY_BUFFER:Ic.BLOB;default:return this.detectContentTypeFromBody()}},e.prototype.detectContentTypeFromBody=function(){return null==this._body?Ic.NONE:this._body instanceof Fc?Ic.FORM:this._body instanceof Yc?Ic.FORM_DATA:this._body instanceof Zc?Ic.BLOB:this._body instanceof Jc?Ic.ARRAY_BUFFER:this._body&&"object"==typeof this._body?Ic.JSON:Ic.TEXT},e.prototype.getBody=function(){switch(this.contentType){case Ic.JSON:case Ic.FORM:return this.text();case Ic.FORM_DATA:return this._body;case Ic.TEXT:return this.text();case Ic.BLOB:return this.blob();case Ic.ARRAY_BUFFER:return this.arrayBuffer();default:return null}},e}(jc),Qc=function(){},Kc="object"==typeof window?window:Qc,Yc=Kc.FormData||Qc,Zc=Kc.Blob||Qc,Jc=Kc.ArrayBuffer||Qc;function $c(t,e){return t.createConnection(e).response}function th(t,e,n,r){return t.merge(new Wc(e?{method:e.method||n,url:e.url||r,search:e.search,params:e.params,headers:e.headers,body:e.body,withCredentials:e.withCredentials,responseType:e.responseType}:{method:n,url:r}))}var eh=function(){function t(t,e){this._backend=t,this._defaultOptions=e}return t.prototype.request=function(t,e){var n;if("string"==typeof t)n=$c(this._backend,new Xc(th(this._defaultOptions,e,kc.Get,t)));else{if(!(t instanceof Xc))throw new Error("First argument must be a url string or Request instance.");n=$c(this._backend,t)}return n},t.prototype.get=function(t,e){return this.request(new Xc(th(this._defaultOptions,e,kc.Get,t)))},t.prototype.post=function(t,e,n){return this.request(new Xc(th(this._defaultOptions.merge(new Wc({body:e})),n,kc.Post,t)))},t.prototype.put=function(t,e,n){return this.request(new Xc(th(this._defaultOptions.merge(new Wc({body:e})),n,kc.Put,t)))},t.prototype.delete=function(t,e){return this.request(new Xc(th(this._defaultOptions,e,kc.Delete,t)))},t.prototype.patch=function(t,e,n){return this.request(new Xc(th(this._defaultOptions.merge(new Wc({body:e})),n,kc.Patch,t)))},t.prototype.head=function(t,e){return this.request(new Xc(th(this._defaultOptions,e,kc.Head,t)))},t.prototype.options=function(t,e){return this.request(new Xc(th(this._defaultOptions,e,kc.Options,t)))},t}();function nh(){return new qc}function rh(t,e){return new eh(t,e)}var ih=function(){};function oh(t){return function(e){var n=new sh(t),r=e.lift(n);return n.caught=r}}var sh=function(){function t(t){this.selector=t}return t.prototype.call=function(t,e){return e.subscribe(new ah(t,this.selector,this.caught))},t}(),ah=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.selector=n,i.caught=r,i}return o(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=void 0;try{n=this.selector(e,this.caught)}catch(e){return void t.prototype.error.call(this,e)}this._unsubscribeAndRecycle();var r=new W(this,void 0,void 0);this.add(r),tt(this,n,void 0,void 0,r)}},e}(et),lh=function(){function t(t,e){this.http=t,this.router=e,this.urlLogIn="api-logIn",this.urlLogOut="api-logOut",this.reqIsLogged()}return t.prototype.logIn=function(t,e){var n=this;console.log("Login service started...");var r=btoa(encodeURIComponent(t+":"+e).replace(/%([0-9A-F]{2})/g,function(t,e){return String.fromCharCode("0x"+e)})),i=new Pc({Authorization:"Basic "+r,"X-Requested-With":"XMLHttpRequest"}),o=new Wc({headers:i});return this.http.get(this.urlLogIn,o).pipe(nt(function(t){return n.processLogInResponse(t),n.user}),oh(function(t){return L.throw(t)}))},t.prototype.logOut=function(){var t=this;return console.log("Logging out..."),this.http.get(this.urlLogOut).pipe(nt(function(e){return console.log("Logout succesful!"),t.user=null,t.role=null,t.token=null,localStorage.removeItem("login"),localStorage.removeItem("rol"),t.router.navigate([""]),e}),oh(function(t){return L.throw(t)}))},t.prototype.directLogOut=function(){this.logOut().subscribe(function(t){},function(t){return console.log("Error when trying to log out: "+t)})},t.prototype.processLogInResponse=function(t){console.log("Login succesful processing..."),this.user=t.json(),localStorage.setItem("login","OPENVIDUAPP"),-1!==this.user.roles.indexOf("ROLE_TEACHER")&&(this.role="ROLE_TEACHER",localStorage.setItem("rol","ROLE_TEACHER")),-1!==this.user.roles.indexOf("ROLE_STUDENT")&&(this.role="ROLE_STUDENT",localStorage.setItem("rol","ROLE_STUDENT"))},t.prototype.reqIsLogged=function(){var t=this;console.log("ReqIsLogged called");var e=new Pc({"X-Requested-With":"XMLHttpRequest"}),n=new Wc({headers:e});this.http.get(this.urlLogIn,n).pipe(nt(function(e){return t.processLogInResponse(e)}),oh(function(e){if(401!==e.status)return console.error("Error when asking if logged: "+JSON.stringify(e)),t.logOut(),L.throw(e)}))},t.prototype.checkCredentials=function(){this.isLoggedIn()||this.logOut()},t.prototype.isLoggedIn=function(){return null!=this.user&&void 0!==this.user},t.prototype.getCurrentUser=function(){return this.user},t.prototype.isTeacher=function(){return-1!==this.user.roles.indexOf("ROLE_TEACHER")&&"ROLE_TEACHER"===localStorage.getItem("rol")},t.prototype.isStudent=function(){return-1!==this.user.roles.indexOf("ROLE_STUDENT")&&"ROLE_STUDENT"===localStorage.getItem("rol")},t.prototype.updateUserLessons=function(t){this.getCurrentUser().lessons=t},t.prototype.connectionBelongsToTeacher=function(t){return t.data.indexOf("teacher@gmail.com")>-1},t}(),uh=function(){function t(t,e){this.router=t,this.authenticationService=e}return t.prototype.isVideoSessionUrl=function(){return"/lesson/"===this.router.url.substring(0,"/lesson/".length)},t}(),ch=function(){},hh="*";function dh(t,e){return void 0===e&&(e=null),{type:2,steps:t,options:e}}function ph(t){return{type:6,styles:t,offset:null}}function fh(t){Promise.resolve(null).then(t)}var mh=function(){function t(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=t+e}return t.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])},t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype.onDone=function(t){this._onDoneFns.push(t)},t.prototype.onDestroy=function(t){this._onDestroyFns.push(t)},t.prototype.hasStarted=function(){return this._started},t.prototype.init=function(){},t.prototype.play=function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0},t.prototype.triggerMicrotask=function(){var t=this;fh(function(){return t._onFinish()})},t.prototype._onStart=function(){this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[]},t.prototype.pause=function(){},t.prototype.restart=function(){},t.prototype.finish=function(){this._onFinish()},t.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])},t.prototype.reset=function(){},t.prototype.setPosition=function(t){},t.prototype.getPosition=function(){return 0},t.prototype.triggerCallback=function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0},t}(),yh=function(){function t(t){var e=this;this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;var n=0,r=0,i=0,o=this.players.length;0==o?fh(function(){return e._onFinish()}):this.players.forEach(function(t){t.onDone(function(){++n==o&&e._onFinish()}),t.onDestroy(function(){++r==o&&e._onDestroy()}),t.onStart(function(){++i==o&&e._onStart()})}),this.totalTime=this.players.reduce(function(t,e){return Math.max(t,e.totalTime)},0)}return t.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])},t.prototype.init=function(){this.players.forEach(function(t){return t.init()})},t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype._onStart=function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[])},t.prototype.onDone=function(t){this._onDoneFns.push(t)},t.prototype.onDestroy=function(t){this._onDestroyFns.push(t)},t.prototype.hasStarted=function(){return this._started},t.prototype.play=function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(t){return t.play()})},t.prototype.pause=function(){this.players.forEach(function(t){return t.pause()})},t.prototype.restart=function(){this.players.forEach(function(t){return t.restart()})},t.prototype.finish=function(){this._onFinish(),this.players.forEach(function(t){return t.finish()})},t.prototype.destroy=function(){this._onDestroy()},t.prototype._onDestroy=function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(t){return t.destroy()}),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])},t.prototype.reset=function(){this.players.forEach(function(t){return t.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1},t.prototype.setPosition=function(t){var e=t*this.totalTime;this.players.forEach(function(t){var n=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(n)})},t.prototype.getPosition=function(){var t=0;return this.players.forEach(function(e){var n=e.getPosition();t=Math.min(n,t)}),t},t.prototype.beforeDestroy=function(){this.players.forEach(function(t){t.beforeDestroy&&t.beforeDestroy()})},t.prototype.triggerCallback=function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0},t}(),vh="!";function gh(){throw Error("Host already has a portal attached")}var bh=function(){function t(){}return t.prototype.attach=function(t){return null==t&&function(){throw Error("Attempting to attach a portal to a null PortalOutlet")}(),t.hasAttached()&&gh(),this._attachedHost=t,t.attach(this)},t.prototype.detach=function(){var t=this._attachedHost;null==t?function(){throw Error("Attempting to detach a portal that is not attached to a host")}():(this._attachedHost=null,t.detach())},Object.defineProperty(t.prototype,"isAttached",{get:function(){return null!=this._attachedHost},enumerable:!0,configurable:!0}),t.prototype.setAttachedHost=function(t){this._attachedHost=t},t}(),_h=function(t){function e(e,n,r){var i=t.call(this)||this;return i.component=e,i.viewContainerRef=n,i.injector=r,i}return o(e,t),e}(bh),wh=function(t){function e(e,n,r){var i=t.call(this)||this;return i.templateRef=e,i.viewContainerRef=n,i.context=r,i}return o(e,t),Object.defineProperty(e.prototype,"origin",{get:function(){return this.templateRef.elementRef},enumerable:!0,configurable:!0}),e.prototype.attach=function(e,n){return void 0===n&&(n=this.context),this.context=n,t.prototype.attach.call(this,e)},e.prototype.detach=function(){return this.context=void 0,t.prototype.detach.call(this)},e}(bh),Sh=function(){function t(){this._isDisposed=!1}return t.prototype.hasAttached=function(){return!!this._attachedPortal},t.prototype.attach=function(t){return t||function(){throw Error("Must provide a portal to attach")}(),this.hasAttached()&&gh(),this._isDisposed&&function(){throw Error("This PortalOutlet has already been disposed")}(),t instanceof _h?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof wh?(this._attachedPortal=t,this.attachTemplatePortal(t)):void function(){throw Error("Attempting to attach an unknown Portal type. BasePortalOutlet accepts either a ComponentPortal or a TemplatePortal.")}()},t.prototype.detach=function(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()},t.prototype.dispose=function(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0},t.prototype.setDisposeFn=function(t){this._disposeFn=t},t.prototype._invokeDisposeFn=function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)},t}(),Eh=function(t){function e(e,n,r,i){var o=t.call(this)||this;return o.outletElement=e,o._componentFactoryResolver=n,o._appRef=r,o._defaultInjector=i,o}return o(e,t),e.prototype.attachComponentPortal=function(t){var e,n=this,r=this._componentFactoryResolver.resolveComponentFactory(t.component);return t.viewContainerRef?(e=t.viewContainerRef.createComponent(r,t.viewContainerRef.length,t.injector||t.viewContainerRef.parentInjector),this.setDisposeFn(function(){return e.destroy()})):(e=r.create(t.injector||this._defaultInjector),this._appRef.attachView(e.hostView),this.setDisposeFn(function(){n._appRef.detachView(e.hostView),e.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(e)),e},e.prototype.attachTemplatePortal=function(t){var e=this,n=t.viewContainerRef,r=n.createEmbeddedView(t.templateRef,t.context);return r.detectChanges(),r.rootNodes.forEach(function(t){return e.outletElement.appendChild(t)}),this.setDisposeFn(function(){var t=n.indexOf(r);-1!==t&&n.remove(t)}),r},e.prototype.dispose=function(){t.prototype.dispose.call(this),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)},e.prototype._getComponentRootNode=function(t){return t.hostView.rootNodes[0]},e}(Sh),Ch=function(t){function e(e,n){var r=t.call(this)||this;return r._componentFactoryResolver=e,r._viewContainerRef=n,r._isInitialized=!1,r.attached=new hn,r}return o(e,t),Object.defineProperty(e.prototype,"portal",{get:function(){return this._attachedPortal},set:function(e){(!this.hasAttached()||e||this._isInitialized)&&(this.hasAttached()&&t.prototype.detach.call(this),e&&t.prototype.attach.call(this,e),this._attachedPortal=e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"attachedRef",{get:function(){return this._attachedRef},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this._isInitialized=!0},e.prototype.ngOnDestroy=function(){t.prototype.dispose.call(this),this._attachedPortal=null,this._attachedRef=null},e.prototype.attachComponentPortal=function(e){e.setAttachedHost(this);var n=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,r=this._componentFactoryResolver.resolveComponentFactory(e.component),i=n.createComponent(r,n.length,e.injector||n.parentInjector);return t.prototype.setDisposeFn.call(this,function(){return i.destroy()}),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i},e.prototype.attachTemplatePortal=function(e){var n=this;e.setAttachedHost(this);var r=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context);return t.prototype.setDisposeFn.call(this,function(){return n._viewContainerRef.clear()}),this._attachedPortal=e,this._attachedRef=r,this.attached.emit(r),r},e}(Sh),xh=function(){},kh=function(){function t(t,e){this._parentInjector=t,this._customTokens=e}return t.prototype.get=function(t,e){var n=this._customTokens.get(t);return void 0!==n?n:this._parentInjector.get(t,e)},t}(),Oh=27,Ih=new L(function(t){return t.complete()});function Th(t){return t?function(t){return new L(function(e){return t.schedule(function(){return e.complete()})})}(t):Ih}function Ph(t){return new L(function(e){var n;try{n=t()}catch(t){return void e.error(t)}return(n?st(n):Th()).subscribe(e)})}function Rh(t){var e=new L(function(e){e.next(t),e.complete()});return e._isScalar=!0,e.value=t,e}function Ah(){for(var t=[],e=0;e0?ot(t,n):Th(n):Rh(t[0]),e)}}var Hh=new Ct("cdk-dir-doc",{providedIn:"root",factory:function(){return de(uu)}}),Wh=function(){function t(t){if(this.value="ltr",this.change=new hn,t){var e=(t.body?t.body.dir:null)||(t.documentElement?t.documentElement.dir:null);this.value="ltr"===e||"rtl"===e?e:"ltr"}}return t.prototype.ngOnDestroy=function(){this.change.complete()},t.ngInjectableDef=Et({factory:function(){return new t(de(Hh,8))},token:t,providedIn:"root"}),t}(),Gh=function(){};function Xh(t){return null!=t&&""+t!="false"}function Qh(t,e){return void 0===e&&(e=0),function(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}(t)?Number(t):e}function Kh(t){return Array.isArray(t)?t:[t]}function Yh(t){return null==t?"":"string"==typeof t?t:t+"px"}var Zh,Jh,$h="undefined"!=typeof Intl&&Intl.v8BreakIterator,td=function(){function t(t){this._platformId=t,this.isBrowser=this._platformId?du(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!$h)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}return t.ngInjectableDef=Et({factory:function(){return new t(de(ze,8))},token:t,providedIn:"root"}),t}();function ed(){if(null==Zh&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return Zh=!0}}))}finally{Zh=Zh||!1}return Zh}var nd=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function rd(){if(Jh)return Jh;if("object"!=typeof document||!document)return Jh=new Set(nd);var t=document.createElement("input");return Jh=new Set(nd.filter(function(e){return t.setAttribute("type",e),t.type===e}))}var id=function(){};function od(t,e,n,r){return m(n)&&(r=n,n=void 0),r?od(t,e,n).pipe(nt(function(t){return p(t)?r.apply(void 0,t):r(t)})):new L(function(r){!function t(e,n,r,i,o){var s;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(e)){var a=e;e.addEventListener(n,r,o),s=function(){return a.removeEventListener(n,r,o)}}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(e)){var l=e;e.on(n,r),s=function(){return l.off(n,r)}}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(e)){var u=e;e.addListener(n,r),s=function(){return u.removeListener(n,r)}}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(var c=0,h=e.length;c1?Array.prototype.slice.call(arguments):t)},r,n)})}Object;var sd=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r.pending=!1,r}return o(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this},e.prototype.requestAsyncId=function(t,e,n){return void 0===n&&(n=0),setInterval(t.flush.bind(t,this),n)},e.prototype.recycleAsyncId=function(t,e,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var n=!1,r=void 0;try{this.work(t)}catch(t){n=!0,r=!!t&&t||new Error(t)}if(n)return this.unsubscribe(),r},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,n=e.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null},e}(function(t){function e(e,n){return t.call(this)||this}return o(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(S)),ad=function(){function t(e,n){void 0===n&&(n=t.now),this.SchedulerAction=e,this.now=n}return t.prototype.schedule=function(t,e,n){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(n,e)},t.now=function(){return Date.now()},t}(),ld=function(t){function e(n,r){void 0===r&&(r=ad.now);var i=t.call(this,n,function(){return e.delegate&&e.delegate!==i?e.delegate.now():r()})||this;return i.actions=[],i.active=!1,i.scheduled=void 0,i}return o(e,t),e.prototype.schedule=function(n,r,i){return void 0===r&&(r=0),e.delegate&&e.delegate!==this?e.delegate.schedule(n,r,i):t.prototype.schedule.call(this,n,r,i)},e.prototype.flush=function(t){var e=this.actions;if(this.active)e.push(t);else{var n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}},e}(ad),ud=new ld(sd);function cd(t){return function(e){return e.lift(new hd(t))}}var hd=function(){function t(t){this.durationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new dd(t,this.durationSelector))},t}(),dd=function(t){function e(e,n){var r=t.call(this,e)||this;return r.durationSelector=n,r.hasValue=!1,r}return o(e,t),e.prototype._next=function(t){if(this.value=t,this.hasValue=!0,!this.throttled){var e=b(this.durationSelector)(t);if(e===v)this.destination.error(v.e);else{var n=tt(this,e);!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}}},e.prototype.clearThrottle=function(){var t=this.value,e=this.hasValue,n=this.throttled;n&&(this.remove(n),this.throttled=null,n.unsubscribe()),e&&(this.value=null,this.hasValue=!1,this.destination.next(t))},e.prototype.notifyNext=function(t,e,n,r){this.clearThrottle()},e.prototype.notifyComplete=function(){this.clearThrottle()},e}(et);function pd(t){return!p(t)&&t-parseFloat(t)+1>=0}function fd(t,e,n){void 0===t&&(t=0);var r=-1;return pd(e)?r=Number(e)<1?1:Number(e):H(e)&&(n=e),H(n)||(n=ud),new L(function(e){var i=pd(t)?t:+t-n.now();return n.schedule(md,i,{index:0,period:r,subscriber:e})})}function md(t){var e=t.index,n=t.period,r=t.subscriber;if(r.next(e),!r.closed){if(-1===n)return r.complete();t.index=e+1,this.schedule(t,n)}}function yd(t,e){return void 0===e&&(e=ud),cd(function(){return fd(t,e)})}var vd=function(){function t(t,e){this._ngZone=t,this._platform=e,this._scrolled=new z,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map}return t.prototype.register=function(t){var e=this,n=t.elementScrolled().subscribe(function(){return e._scrolled.next(t)});this.scrollContainers.set(t,n)},t.prototype.deregister=function(t){var e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))},t.prototype.scrolled=function(t){var e=this;return void 0===t&&(t=20),this._platform.isBrowser?L.create(function(n){e._globalSubscription||e._addGlobalListener();var r=t>0?e._scrolled.pipe(yd(t)).subscribe(n):e._scrolled.subscribe(n);return e._scrolledCount++,function(){r.unsubscribe(),e._scrolledCount--,e._scrolledCount||e._removeGlobalListener()}}):Ah()},t.prototype.ngOnDestroy=function(){var t=this;this._removeGlobalListener(),this.scrollContainers.forEach(function(e,n){return t.deregister(n)}),this._scrolled.complete()},t.prototype.ancestorScrolled=function(t,e){var n=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe(Nh(function(t){return!t||n.indexOf(t)>-1}))},t.prototype.getAncestorScrollContainers=function(t){var e=this,n=[];return this.scrollContainers.forEach(function(r,i){e._scrollableContainsElement(i,t)&&n.push(i)}),n},t.prototype._scrollableContainsElement=function(t,e){var n=e.nativeElement,r=t.getElementRef().nativeElement;do{if(n==r)return!0}while(n=n.parentElement);return!1},t.prototype._addGlobalListener=function(){var t=this;this._globalSubscription=this._ngZone.runOutsideAngular(function(){return od(window.document,"scroll").subscribe(function(){return t._scrolled.next()})})},t.prototype._removeGlobalListener=function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)},t.ngInjectableDef=Et({factory:function(){return new t(de(dn),de(td))},token:t,providedIn:"root"}),t}(),gd=function(){function t(t,e,n){var r=this;this._elementRef=t,this._scroll=e,this._ngZone=n,this._elementScrolled=new z,this._scrollListener=function(t){return r._elementScrolled.next(t)}}return t.prototype.ngOnInit=function(){var t=this;this._ngZone.runOutsideAngular(function(){t.getElementRef().nativeElement.addEventListener("scroll",t._scrollListener)}),this._scroll.register(this)},t.prototype.ngOnDestroy=function(){this._scroll.deregister(this),this._scrollListener&&this.getElementRef().nativeElement.removeEventListener("scroll",this._scrollListener),this._elementScrolled.complete()},t.prototype.elementScrolled=function(){return this._elementScrolled.asObservable()},t.prototype.getElementRef=function(){return this._elementRef},t}(),bd=function(){function t(t,e){var n=this;this._platform=t,this._change=t.isBrowser?e.runOutsideAngular(function(){return dt(od(window,"resize"),od(window,"orientationchange"))}):Ah(),this._invalidateCache=this.change().subscribe(function(){return n._updateViewportSize()})}return t.prototype.ngOnDestroy=function(){this._invalidateCache.unsubscribe()},t.prototype.getViewportSize=function(){this._viewportSize||this._updateViewportSize();var t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t},t.prototype.getViewportRect=function(){var t=this.getViewportScrollPosition(),e=this.getViewportSize(),n=e.width,r=e.height;return{top:t.top,left:t.left,bottom:t.top+r,right:t.left+n,height:r,width:n}},t.prototype.getViewportScrollPosition=function(){if(!this._platform.isBrowser)return{top:0,left:0};var t=document.documentElement.getBoundingClientRect();return{top:-t.top||document.body.scrollTop||window.scrollY||document.documentElement.scrollTop||0,left:-t.left||document.body.scrollLeft||window.scrollX||document.documentElement.scrollLeft||0}},t.prototype.change=function(t){return void 0===t&&(t=20),t>0?this._change.pipe(yd(t)):this._change},t.prototype._updateViewportSize=function(){this._viewportSize=this._platform.isBrowser?{width:window.innerWidth,height:window.innerHeight}:{width:0,height:0}},t.ngInjectableDef=Et({factory:function(){return new t(de(td),de(dn))},token:t,providedIn:"root"}),t}(),_d=function(){};function wd(t){return function(e){return e.lift(new Sd(t))}}var Sd=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var n=new Ed(t),r=tt(n,this.notifier);return r&&!n.seenValue?(n.add(r),e.subscribe(n)):n},t}(),Ed=function(t){function e(e){var n=t.call(this,e)||this;return n.seenValue=!1,n}return o(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.seenValue=!0,this.complete()},e.prototype.notifyComplete=function(){},e}(et),Cd=function(){function t(){}return t.prototype.enable=function(){},t.prototype.disable=function(){},t.prototype.attach=function(){},t}(),xd=function(){return function(t){var e=this;this.scrollStrategy=new Cd,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",t&&Object.keys(t).filter(function(e){return void 0!==t[e]}).forEach(function(n){return e[n]=t[n]})}}();function kd(t,e){if("top"!==e&&"bottom"!==e&&"center"!==e)throw Error("ConnectedPosition: Invalid "+t+' "'+e+'". Expected "top", "bottom" or "center".')}function Od(t,e){if("start"!==e&&"end"!==e&&"center"!==e)throw Error("ConnectedPosition: Invalid "+t+' "'+e+'". Expected "start", "end" or "center".')}var Id=function(){function t(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}return t.prototype.attach=function(){},t.prototype.enable=function(){if(this._canBeEnabled()){var t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=Yh(-this._previousScrollPosition.left),t.style.top=Yh(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}},t.prototype.disable=function(){if(this._isEnabled){var t=this._document.documentElement,e=this._document.body,n=t.style.scrollBehavior||"",r=e.style.scrollBehavior||"";this._isEnabled=!1,t.style.left=this._previousHTMLStyles.left,t.style.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),t.style.scrollBehavior=e.style.scrollBehavior="auto",window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),t.style.scrollBehavior=n,e.style.scrollBehavior=r}},t.prototype._canBeEnabled=function(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;var t=this._document.body,e=this._viewportRuler.getViewportSize();return t.scrollHeight>e.height||t.scrollWidth>e.width},t}();function Td(){return Error("Scroll strategy has already been attached.")}var Pd=function(){function t(t,e,n,r){var i=this;this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=n,this._config=r,this._scrollSubscription=null,this._detach=function(){i.disable(),i._overlayRef.hasAttached()&&i._ngZone.run(function(){return i._overlayRef.detach()})}}return t.prototype.attach=function(t){if(this._overlayRef)throw Td();this._overlayRef=t},t.prototype.enable=function(){var t=this;if(!this._scrollSubscription){var e=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe(function(){var e=t._viewportRuler.getViewportScrollPosition().top;Math.abs(e-t._initialScrollPosition)>t._config.threshold?t._detach():t._overlayRef.updatePosition()})):this._scrollSubscription=e.subscribe(this._detach)}},t.prototype.disable=function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)},t}();function Rd(t,e){return e.some(function(e){return t.bottome.bottom||t.righte.right})}function Ad(t,e){return e.some(function(e){return t.tope.bottom||t.lefte.right})}var Nd=function(){function t(t,e,n,r){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this._config=r,this._scrollSubscription=null}return t.prototype.attach=function(t){if(this._overlayRef)throw Td();this._overlayRef=t},t.prototype.enable=function(){var t=this;this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(function(){if(t._overlayRef.updatePosition(),t._config&&t._config.autoClose){var e=t._overlayRef.overlayElement.getBoundingClientRect(),n=t._viewportRuler.getViewportSize(),r=n.width,i=n.height;Rd(e,[{width:r,height:i,bottom:i,right:r,top:0,left:0}])&&(t.disable(),t._ngZone.run(function(){return t._overlayRef.detach()}))}}))},t.prototype.disable=function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)},t}(),Dd=function(){function t(t,e,n,r){var i=this;this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this.noop=function(){return new Cd},this.close=function(t){return new Pd(i._scrollDispatcher,i._ngZone,i._viewportRuler,t)},this.block=function(){return new Id(i._viewportRuler,i._document)},this.reposition=function(t){return new Nd(i._scrollDispatcher,i._viewportRuler,i._ngZone,t)},this._document=r}return t.ngInjectableDef=Et({factory:function(){return new t(de(vd),de(bd),de(dn),de(uu))},token:t,providedIn:"root"}),t}(),Md=function(){function t(t){var e=this;this._attachedOverlays=[],this._keydownListener=function(t){for(var n=e._attachedOverlays,r=n.length-1;r>-1;r--)if(n[r]._keydownEventSubscriptions>0){n[r]._keydownEvents.next(t);break}},this._document=t}return t.prototype.ngOnDestroy=function(){this._detach()},t.prototype.add=function(t){this.remove(t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener,!0),this._isAttached=!0),this._attachedOverlays.push(t)},t.prototype.remove=function(t){var e=this._attachedOverlays.indexOf(t);e>-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this._detach()},t.prototype._detach=function(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener,!0),this._isAttached=!1)},t.ngInjectableDef=Et({factory:function(){return new t(de(uu))},token:t,providedIn:"root"}),t}(),Ld=function(){function t(t){this._document=t}return t.prototype.ngOnDestroy=function(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)},t.prototype.getContainerElement=function(){return this._containerElement||this._createContainer(),this._containerElement},t.prototype._createContainer=function(){var t=this._document.createElement("div");t.classList.add("cdk-overlay-container"),this._document.body.appendChild(t),this._containerElement=t},t.ngInjectableDef=Et({factory:function(){return new t(de(uu))},token:t,providedIn:"root"}),t}(),Vd=function(){function t(t,e,n,r,i,o,s){var a=this;this._portalOutlet=t,this._host=e,this._pane=n,this._config=r,this._ngZone=i,this._keyboardDispatcher=o,this._document=s,this._backdropElement=null,this._backdropClick=new z,this._attachments=new z,this._detachments=new z,this._keydownEventsObservable=L.create(function(t){var e=a._keydownEvents.subscribe(t);return a._keydownEventSubscriptions++,function(){e.unsubscribe(),a._keydownEventSubscriptions--}}),this._keydownEvents=new z,this._keydownEventSubscriptions=0,r.scrollStrategy&&r.scrollStrategy.attach(this)}return Object.defineProperty(t.prototype,"overlayElement",{get:function(){return this._pane},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"backdropElement",{get:function(){return this._backdropElement},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hostElement",{get:function(){return this._host},enumerable:!0,configurable:!0}),t.prototype.attach=function(t){var e=this,n=this._portalOutlet.attach(t);return this._config.positionStrategy&&this._config.positionStrategy.attach(this),!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._config.scrollStrategy&&this._config.scrollStrategy.enable(),this._ngZone.onStable.asObservable().pipe(Fh(1)).subscribe(function(){e.hasAttached()&&e.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),n},t.prototype.detach=function(){var t=this;if(this.hasAttached()){this.detachBackdrop(),this._togglePointerEvents(!1),this._config.positionStrategy&&this._config.positionStrategy.detach&&this._config.positionStrategy.detach(),this._config.scrollStrategy&&this._config.scrollStrategy.disable(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1);var e=this._portalOutlet.detach();this._detachments.next(),this._keyboardDispatcher.remove(this);var n=this._ngZone.onStable.asObservable().pipe(wd(dt(this._attachments,this._detachments))).subscribe(function(){t._pane&&t._host&&0!==t._pane.children.length||(t._host&&t._host.parentElement&&(t._previousHostParent=t._host.parentElement,t._previousHostParent.removeChild(t._host)),n.unsubscribe())});return e}},t.prototype.dispose=function(){var t=this.hasAttached();this._config.positionStrategy&&this._config.positionStrategy.dispose(),this._config.scrollStrategy&&this._config.scrollStrategy.disable(),this.detachBackdrop(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._host&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,t&&this._detachments.next(),this._detachments.complete()},t.prototype.hasAttached=function(){return this._portalOutlet.hasAttached()},t.prototype.backdropClick=function(){return this._backdropClick.asObservable()},t.prototype.attachments=function(){return this._attachments.asObservable()},t.prototype.detachments=function(){return this._detachments.asObservable()},t.prototype.keydownEvents=function(){return this._keydownEventsObservable},t.prototype.getConfig=function(){return this._config},t.prototype.updatePosition=function(){this._config.positionStrategy&&this._config.positionStrategy.apply()},t.prototype.updateSize=function(t){this._config=s({},this._config,t),this._updateElementSize()},t.prototype.setDirection=function(t){this._config=s({},this._config,{direction:t}),this._updateElementDirection()},t.prototype.getDirection=function(){var t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"},t.prototype._updateElementDirection=function(){this._host.setAttribute("dir",this.getDirection())},t.prototype._updateElementSize=function(){var t=this._pane.style;t.width=Yh(this._config.width),t.height=Yh(this._config.height),t.minWidth=Yh(this._config.minWidth),t.minHeight=Yh(this._config.minHeight),t.maxWidth=Yh(this._config.maxWidth),t.maxHeight=Yh(this._config.maxHeight)},t.prototype._togglePointerEvents=function(t){this._pane.style.pointerEvents=t?"auto":"none"},t.prototype._attachBackdrop=function(){var t=this;this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",function(e){return t._backdropClick.next(e)}),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){t._backdropElement&&t._backdropElement.classList.add("cdk-overlay-backdrop-showing")})}):this._backdropElement.classList.add("cdk-overlay-backdrop-showing")},t.prototype._updateStackingOrder=function(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)},t.prototype.detachBackdrop=function(){var t=this,e=this._backdropElement;if(e){var n,r=function(){e&&e.parentNode&&e.parentNode.removeChild(e),t._backdropElement==e&&(t._backdropElement=null),clearTimeout(n)};e.classList.remove("cdk-overlay-backdrop-showing"),this._config.backdropClass&&this._toggleClasses(e,this._config.backdropClass,!1),this._ngZone.runOutsideAngular(function(){e.addEventListener("transitionend",r)}),e.style.pointerEvents="none",n=this._ngZone.runOutsideAngular(function(){return setTimeout(r,500)})}},t.prototype._toggleClasses=function(t,e,n){var r=t.classList;Kh(e).forEach(function(t){n?r.add(t):r.remove(t)})},t}(),Fd=function(){function t(t,e,n,r,i){var o=this;this._viewportRuler=e,this._document=n,this._platform=r,this._overlayContainer=i,this._isInitialRender=!0,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this.scrollables=[],this._preferredPositions=[],this._positionChanges=new z,this._resizeSubscription=S.EMPTY,this._offsetX=0,this._offsetY=0,this._positionChangeSubscriptions=0,this.positionChanges=L.create(function(t){var e=o._positionChanges.subscribe(t);return o._positionChangeSubscriptions++,function(){e.unsubscribe(),o._positionChangeSubscriptions--}}),this.setOrigin(t)}return Object.defineProperty(t.prototype,"positions",{get:function(){return this._preferredPositions},enumerable:!0,configurable:!0}),t.prototype.attach=function(t){var e=this;if(this._overlayRef&&t!==this._overlayRef)throw Error("This position strategy is already attached to an overlay");this._validatePositions(),t.hostElement.classList.add("cdk-overlay-connected-position-bounding-box"),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.overlayElement,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(function(){return e.apply()})},t.prototype.apply=function(){if(!(this._isDisposed||this._platform&&!this._platform.isBrowser))if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)this.reapplyLastPosition();else{this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._origin.getBoundingClientRect(),this._overlayRect=this._pane.getBoundingClientRect();for(var t,e=this._originRect,n=this._overlayRect,r=this._viewportRect,i=[],o=0,s=this._preferredPositions;od&&(d=y,h=m)}return this._isPushed=!1,void this._applyPosition(h.position,h.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(t.position,t.originPoint);this._applyPosition(t.position,t.originPoint)}},t.prototype.detach=function(){this._resizeSubscription.unsubscribe()},t.prototype.dispose=function(){this._isDisposed||(this.detach(),this._boundingBox=null,this._positionChanges.complete(),this._isDisposed=!0)},t.prototype.reapplyLastPosition=function(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._origin.getBoundingClientRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();var t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}},t.prototype.withScrollableContainers=function(t){this.scrollables=t},t.prototype.withPositions=function(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this},t.prototype.withViewportMargin=function(t){return this._viewportMargin=t,this},t.prototype.withFlexibleDimensions=function(t){return void 0===t&&(t=!0),this._hasFlexibleDimensions=t,this},t.prototype.withGrowAfterOpen=function(t){return void 0===t&&(t=!0),this._growAfterOpen=t,this},t.prototype.withPush=function(t){return void 0===t&&(t=!0),this._canPush=t,this},t.prototype.withLockedPosition=function(t){return void 0===t&&(t=!0),this._positionLocked=t,this},t.prototype.setOrigin=function(t){return this._origin=t instanceof Vn?t.nativeElement:t,this},t.prototype.withDefaultOffsetX=function(t){return this._offsetX=t,this},t.prototype.withDefaultOffsetY=function(t){return this._offsetY=t,this},t.prototype.withTransformOriginOn=function(t){return this._transformOriginSelector=t,this},t.prototype._getOriginPoint=function(t,e){var n;if("center"==e.originX)n=t.left+t.width/2;else{var r=this._isRtl()?t.right:t.left,i=this._isRtl()?t.left:t.right;n="start"==e.originX?r:i}return{x:n,y:"center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom}},t.prototype._getOverlayPoint=function(t,e,n){var r;return r="center"==n.overlayX?-e.width/2:"start"===n.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,{x:t.x+r,y:t.y+("center"==n.overlayY?-e.height/2:"top"==n.overlayY?0:-e.height)}},t.prototype._getOverlayFit=function(t,e,n,r){var i=t.x,o=t.y,s=this._getOffset(r,"x"),a=this._getOffset(r,"y");s&&(i+=s),a&&(o+=a);var l=0-o,u=o+e.height-n.height,c=this._subtractOverflows(e.width,0-i,i+e.width-n.width),h=this._subtractOverflows(e.height,l,u),d=c*h;return{visibleArea:d,isCompletelyWithinViewport:e.width*e.height===d,fitsInViewportVertically:h===e.height,fitsInViewportHorizontally:c==e.width}},t.prototype._canFitWithFlexibleDimensions=function(t,e,n){if(this._hasFlexibleDimensions){var r=n.bottom-e.y,i=n.right-e.x,o=this._overlayRef.getConfig().minHeight,s=this._overlayRef.getConfig().minWidth;return(t.fitsInViewportVertically||null!=o&&o<=r)&&(t.fitsInViewportHorizontally||null!=s&&s<=i)}},t.prototype._pushOverlayOnScreen=function(t,e){var n=this._viewportRect,r=Math.max(t.x+e.width-n.right,0),i=Math.max(t.y+e.height-n.bottom,0),o=Math.max(n.top-t.y,0),s=Math.max(n.left-t.x,0);return{x:t.x+(e.width<=n.width?s||-r:n.left-t.x),y:t.y+(e.height<=n.height?o||-i:n.top-t.y)}},t.prototype._applyPosition=function(t,e){if(this._setTransformOrigin(t),this._setOverlayElementStyles(e,t),this._setBoundingBoxStyles(e,t),this._lastPosition=t,this._positionChangeSubscriptions>0){var n=new function(t,e){this.connectionPair=t,this.scrollableViewProperties=e}(t,this._getScrollVisibility());this._positionChanges.next(n)}this._isInitialRender=!1},t.prototype._setTransformOrigin=function(t){if(this._transformOriginSelector){var e,n=this._boundingBox.querySelectorAll(this._transformOriginSelector),r=t.overlayY;e="center"===t.overlayX?"center":this._isRtl()?"start"===t.overlayX?"right":"left":"start"===t.overlayX?"left":"right";for(var i=0;ih&&!this._isInitialRender&&!this._growAfterOpen&&(r=t.y-h/2)}if("end"===e.overlayX&&!u||"start"===e.overlayX&&u)a=l.right-t.x+this._viewportMargin,o=t.x-l.left;else if("start"===e.overlayX&&!u||"end"===e.overlayX&&u)s=t.x,o=l.right-t.x;else{c=Math.min(l.right-t.x,t.x-l.top);var d=this._lastBoundingBoxSize.width;s=t.x-c,(o=2*c)>d&&!this._isInitialRender&&!this._growAfterOpen&&(s=t.x-d/2)}return{top:r,left:s,bottom:i,right:a,width:o,height:n}},t.prototype._setBoundingBoxStyles=function(t,e){var n=this._calculateBoundingBoxRect(t,e);this._isInitialRender||this._growAfterOpen||(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));var r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right="",r.width=r.height="100%";else{var i=this._overlayRef.getConfig().maxHeight,o=this._overlayRef.getConfig().maxWidth;r.height=Yh(n.height),r.top=Yh(n.top),r.bottom=Yh(n.bottom),r.width=Yh(n.width),r.left=Yh(n.left),r.right=Yh(n.right),r.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",r.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",i&&(r.maxHeight=Yh(i)),o&&(r.maxWidth=Yh(o))}this._lastBoundingBoxSize=n,jd(this._boundingBox.style,r)},t.prototype._resetBoundingBoxStyles=function(){jd(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})},t.prototype._resetOverlayElementStyles=function(){jd(this._pane.style,{top:"",left:"",bottom:"",right:"",position:""})},t.prototype._setOverlayElementStyles=function(t,e){var n={};this._hasExactPosition()?(jd(n,this._getExactOverlayY(e,t)),jd(n,this._getExactOverlayX(e,t))):n.position="static";var r="",i=this._getOffset(e,"x"),o=this._getOffset(e,"y");i&&(r+="translateX("+i+"px) "),o&&(r+="translateY("+o+"px)"),n.transform=r.trim(),this._hasFlexibleDimensions&&this._overlayRef.getConfig().maxHeight&&(n.maxHeight=""),this._hasFlexibleDimensions&&this._overlayRef.getConfig().maxWidth&&(n.maxWidth=""),jd(this._pane.style,n)},t.prototype._getExactOverlayY=function(t,e){var n={top:null,bottom:null},r=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect));var i=this._overlayContainer?this._overlayContainer.getContainerElement().getBoundingClientRect().top:0;return r.y-=i,"bottom"===t.overlayY?n.bottom=this._document.documentElement.clientHeight-(r.y+this._overlayRect.height)+"px":n.top=Yh(r.y),n},t.prototype._getExactOverlayX=function(t,e){var n={left:null,right:null},r=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect)),"right"==(this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left")?n.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":n.left=Yh(r.x),n},t.prototype._getScrollVisibility=function(){var t=this._origin.getBoundingClientRect(),e=this._pane.getBoundingClientRect(),n=this.scrollables.map(function(t){return t.getElementRef().nativeElement.getBoundingClientRect()});return{isOriginClipped:Ad(t,n),isOriginOutsideView:Rd(t,n),isOverlayClipped:Ad(e,n),isOverlayOutsideView:Rd(e,n)}},t.prototype._subtractOverflows=function(t){for(var e=[],n=1;n-1&&(this.openDialogs.splice(e,1),this.openDialogs.length||(this._ariaHiddenElements.forEach(function(t,e){t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._afterAllClosed.next()))},t.prototype._hideNonDialogContentFromAssistiveTechnology=function(){var t=this._overlayContainer.getContainerElement();if(t.parentElement)for(var e=t.parentElement.children,n=e.length-1;n>-1;n--){var r=e[n];r===t||"SCRIPT"===r.nodeName||"STYLE"===r.nodeName||r.hasAttribute("aria-live")||(this._ariaHiddenElements.set(r,r.getAttribute("aria-hidden")),r.setAttribute("aria-hidden","true"))}},t}(),ip=0,op=function(){function t(t,e,n){this.dialogRef=t,this._elementRef=e,this._dialog=n,this.ariaLabel="Close dialog"}return t.prototype.ngOnInit=function(){this.dialogRef||(this.dialogRef=up(this._elementRef,this._dialog.openDialogs))},t.prototype.ngOnChanges=function(t){var e=t._matDialogClose||t._matDialogCloseResult;e&&(this.dialogResult=e.currentValue)},t}(),sp=function(){function t(t,e,n){this._dialogRef=t,this._elementRef=e,this._dialog=n,this.id="mat-dialog-title-"+ip++}return t.prototype.ngOnInit=function(){var t=this;this._dialogRef||(this._dialogRef=up(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(function(){var e=t._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=t.id)})},t}(),ap=function(){},lp=function(){};function up(t,e){for(var n=t.nativeElement.parentElement;n&&!n.classList.contains("mat-dialog-container");)n=n.parentElement;return n?e.find(function(t){return t.id===n.id}):null}var cp=function(){};function hp(t,e,n){return function(r){return r.lift(new dp(t,e,n))}}var dp=function(){function t(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}return t.prototype.call=function(t,e){return e.subscribe(new pp(t,this.nextOrObserver,this.error,this.complete))},t}(),pp=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o._tapNext=N,o._tapError=N,o._tapComplete=N,o._tapError=r||N,o._tapComplete=i||N,m(n)?(o._context=o,o._tapNext=n):n&&(o._context=n,o._tapNext=n.next||N,o._tapError=n.error||N,o._tapComplete=n.complete||N),o}return o(e,t),e.prototype._next=function(t){try{this._tapNext.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.next(t)},e.prototype._error=function(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)},e.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()},e}(T);function fp(t,e){return void 0===e&&(e=ud),function(n){return n.lift(new mp(t,e))}}var mp=function(){function t(t,e){this.dueTime=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new yp(t,this.dueTime,this.scheduler))},t}(),yp=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.dueTime=n,i.scheduler=r,i.debouncedSubscription=null,i.lastValue=null,i.hasValue=!1,i}return o(e,t),e.prototype._next=function(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(vp,this.dueTime,this))},e.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},e.prototype.debouncedNext=function(){if(this.clearDebounce(),this.hasValue){var t=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}},e.prototype.clearDebounce=function(){var t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)},e}(T);function vp(t){t.debouncedNext()}var gp=function(){function t(t){this._platform=t}return t.prototype.isDisabled=function(t){return t.hasAttribute("disabled")},t.prototype.isVisible=function(t){return function(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility},t.prototype.isTabbable=function(t){if(!this._platform.isBrowser)return!1;var e=function(t){try{return t.frameElement}catch(t){return null}}(t.ownerDocument.defaultView||window);if(e){var n=e&&e.nodeName.toLowerCase();if(-1===_p(e))return!1;if((this._platform.BLINK||this._platform.WEBKIT)&&"object"===n)return!1;if((this._platform.BLINK||this._platform.WEBKIT)&&!this.isVisible(e))return!1}var r=t.nodeName.toLowerCase(),i=_p(t);if(t.hasAttribute("contenteditable"))return-1!==i;if("iframe"===r)return!1;if("audio"===r){if(!t.hasAttribute("controls"))return!1;if(this._platform.BLINK)return!0}if("video"===r){if(!t.hasAttribute("controls")&&this._platform.TRIDENT)return!1;if(this._platform.BLINK||this._platform.FIREFOX)return!0}return("object"!==r||!this._platform.BLINK&&!this._platform.WEBKIT)&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(t){var e=t.nodeName.toLowerCase(),n="input"===e&&t.type;return"text"===n||"password"===n||"select"===e||"textarea"===e}(t))&&t.tabIndex>=0},t.prototype.isFocusable=function(t){return function(t){return!function(t){return function(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function(t){var e=t.nodeName.toLowerCase();return"input"===e||"select"===e||"button"===e||"textarea"===e}(t)||function(t){return function(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||bp(t))}(t)&&!this.isDisabled(t)&&this.isVisible(t)},t.ngInjectableDef=Et({factory:function(){return new t(de(td))},token:t,providedIn:"root"}),t}();function bp(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;var e=t.getAttribute("tabindex");return"-32768"!=e&&!(!e||isNaN(parseInt(e,10)))}function _p(t){if(!bp(t))return null;var e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}var wp=function(){function t(t,e,n,r,i){void 0===i&&(i=!1),this._element=t,this._checker=e,this._ngZone=n,this._document=r,this._hasAttached=!1,this._enabled=!0,i||this.attachAnchors()}return Object.defineProperty(t.prototype,"enabled",{get:function(){return this._enabled},set:function(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._startAnchor.tabIndex=this._endAnchor.tabIndex=this._enabled?0:-1)},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){this._startAnchor&&this._startAnchor.parentNode&&this._startAnchor.parentNode.removeChild(this._startAnchor),this._endAnchor&&this._endAnchor.parentNode&&this._endAnchor.parentNode.removeChild(this._endAnchor),this._startAnchor=this._endAnchor=null},t.prototype.attachAnchors=function(){var t=this;return!!this._hasAttached||(this._ngZone.runOutsideAngular(function(){t._startAnchor||(t._startAnchor=t._createAnchor(),t._startAnchor.addEventListener("focus",function(){return t.focusLastTabbableElement()})),t._endAnchor||(t._endAnchor=t._createAnchor(),t._endAnchor.addEventListener("focus",function(){return t.focusFirstTabbableElement()}))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)},t.prototype.focusInitialElementWhenReady=function(){var t=this;return new Promise(function(e){t._executeOnStable(function(){return e(t.focusInitialElement())})})},t.prototype.focusFirstTabbableElementWhenReady=function(){var t=this;return new Promise(function(e){t._executeOnStable(function(){return e(t.focusFirstTabbableElement())})})},t.prototype.focusLastTabbableElementWhenReady=function(){var t=this;return new Promise(function(e){t._executeOnStable(function(){return e(t.focusLastTabbableElement())})})},t.prototype._getRegionBoundary=function(t){for(var e=this._element.querySelectorAll("[cdk-focus-region-"+t+"], [cdkFocusRegion"+t+"], [cdk-focus-"+t+"]"),n=0;n=0;n--){var r=e[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[n]):null;if(r)return r}return null},t.prototype._createAnchor=function(){var t=this._document.createElement("div");return t.tabIndex=this._enabled?0:-1,t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t},t.prototype._executeOnStable=function(t){this._ngZone.isStable?t():this._ngZone.onStable.asObservable().pipe(Fh(1)).subscribe(t)},t}(),Sp=function(){function t(t,e,n){this._checker=t,this._ngZone=e,this._document=n}return t.prototype.create=function(t,e){return void 0===e&&(e=!1),new wp(t,this._checker,this._ngZone,this._document,e)},t.ngInjectableDef=Et({factory:function(){return new t(de(gp),de(dn),de(uu))},token:t,providedIn:"root"}),t}(),Ep=new Ct("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),Cp=function(){function t(t,e){this._document=e,this._liveElement=t||this._createLiveElement()}return t.prototype.announce=function(t,e){var n=this;return void 0===e&&(e="polite"),this._liveElement.textContent="",this._liveElement.setAttribute("aria-live",e),new Promise(function(e){setTimeout(function(){n._liveElement.textContent=t,e()},100)})},t.prototype.ngOnDestroy=function(){this._liveElement&&this._liveElement.parentNode&&this._liveElement.parentNode.removeChild(this._liveElement)},t.prototype._createLiveElement=function(){for(var t=this._document.getElementsByClassName("cdk-live-announcer-element"),e=0;e *",animation:{type:4,styles:null,timings:"400ms cubic-bezier(0.25, 0.8, 0.25, 1)"},options:null}],options:{}}]}});function qp(t){return ts(0,[(t()(),Vi(0,null,null,0))],null,null)}function Hp(t){return ts(0,[qo(402653184,1,{_portalOutlet:0}),(t()(),Vi(16777216,null,null,1,null,qp)),Oo(2,212992,[[1,4]],0,Ch,[en,Wn],{portal:[0,"portal"]},null)],function(t,e){t(e,2,0,"")},null)}var Wp=no("mat-dialog-container",Yd,function(t){return ts(0,[(t()(),Fi(0,0,null,null,1,"mat-dialog-container",[["aria-modal","true"],["class","mat-dialog-container"],["tabindex","-1"]],[[1,"id",0],[1,"role",0],[1,"aria-labelledby",0],[1,"aria-label",0],[1,"aria-describedby",0],[40,"@slideDialog",0]],[["component","@slideDialog.start"],["component","@slideDialog.done"]],function(t,e,n){var r=!0;return"component:@slideDialog.start"===e&&(r=!1!==fo(t,1)._onAnimationStart(n)&&r),"component:@slideDialog.done"===e&&(r=!1!==fo(t,1)._onAnimationDone(n)&&r),r},Hp,zp)),Oo(1,49152,null,0,Yd,[Vn,Sp,Gn,[2,uu],Qd],null,null)],null,function(t,e){t(e,0,0,fo(e,1)._id,fo(e,1)._config.role,fo(e,1)._config.ariaLabel?null:fo(e,1)._ariaLabelledBy,fo(e,1)._config.ariaLabel,fo(e,1)._config.ariaDescribedBy||null,fo(e,1)._state)})},{},{},[]),Gp={};function Xp(){for(var t=[],e=0;e0&&t.afterOpened().subscribe(function(){return t._dismissAfter(e.duration)}),e.announcementMessage&&this._live.announce(e.announcementMessage,e.politeness)},t.prototype._createOverlay=function(t){var e=new xd;e.direction=t.direction;var n=this._overlay.position().global(),r="rtl"===t.direction,i="left"===t.horizontalPosition||"start"===t.horizontalPosition&&!r||"end"===t.horizontalPosition&&r,o=!i&&"center"!==t.horizontalPosition;return i?n.left("0"):o?n.right("0"):n.centerHorizontally(),"top"===t.verticalPosition?n.top("0"):n.bottom("0"),e.positionStrategy=n,this._overlay.create(e)},t.prototype._createInjector=function(t,e){return new kh(t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,new WeakMap([[rf,e],[of,t.data]]))},t.ngInjectableDef=Et({factory:function(){return new t(de(Hd),de(Cp),de(Qt),de(ef),de(t,12),de(cf))},token:t,providedIn:uf}),t}(),df="accent",pf="primary",ff=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],mf=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;o._platform=n,o._focusMonitor=r,o._animationMode=i,o.isRoundButton=o._hasHostAttributes("mat-fab","mat-mini-fab"),o.isIconButton=o._hasHostAttributes("mat-icon-button");for(var s=0,a=ff;s *";case":leave":return"* => void";case":increment":return function(t,e){return parseFloat(e)>parseFloat(t)};case":decrement":return function(t,e){return parseFloat(e) *"}}(t,n);if("function"==typeof r)return void e.push(r);t=r}var i=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return n.push('The provided transition expression "'+t+'" is not supported'),e;var o=i[1],s=i[2],a=i[3];e.push(cm(o,a)),"<"!=s[0]||o==am&&a==am||e.push(cm(a,o))}(t,i,r)}):i.push(n),i),animation:o,queryCount:e.queryCount,depCount:e.depCount,options:ym(t.options)}},t.prototype.visitSequence=function(t,e){var n=this;return{type:2,steps:t.steps.map(function(t){return om(n,t,e)}),options:ym(t.options)}},t.prototype.visitGroup=function(t,e){var n=this,r=e.currentTime,i=0,o=t.steps.map(function(t){e.currentTime=r;var o=om(n,t,e);return i=Math.max(i,e.currentTime),o});return e.currentTime=i,{type:3,steps:o,options:ym(t.options)}},t.prototype.visitAnimate=function(t,e){var n,r=function(t,e){var n=null;if(t.hasOwnProperty("duration"))n=t;else if("number"==typeof t)return vm(qf(t,e).duration,0,"");var r=t;if(r.split(/\s+/).some(function(t){return"{"==t.charAt(0)&&"{"==t.charAt(1)})){var i=vm(0,0,"");return i.dynamic=!0,i.strValue=r,i}return vm((n=n||qf(r,e)).duration,n.delay,n.easing)}(t.timings,e.errors);e.currentAnimateTimings=r;var i=t.styles?t.styles:ph({});if(5==i.type)n=this.visitKeyframes(i,e);else{var o=t.styles,s=!1;if(!o){s=!0;var a={};r.easing&&(a.easing=r.easing),o=ph(a)}e.currentTime+=r.duration+r.delay;var l=this.visitStyle(o,e);l.isEmptyStep=s,n=l}return e.currentAnimateTimings=null,{type:4,timings:r,style:n,options:null}},t.prototype.visitStyle=function(t,e){var n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n},t.prototype._makeStyleAst=function(t,e){var n=[];Array.isArray(t.styles)?t.styles.forEach(function(t){"string"==typeof t?t==hh?n.push(t):e.errors.push("The provided style string value "+t+" is not allowed."):n.push(t)}):n.push(t.styles);var r=!1,i=null;return n.forEach(function(t){if(mm(t)){var e=t,n=e.easing;if(n&&(i=n,delete e.easing),!r)for(var o in e)if(e[o].toString().indexOf("{{")>=0){r=!0;break}}}),{type:6,styles:n,easing:i,offset:t.offset,containsDynamicStyles:r,options:null}},t.prototype._validateStyleAst=function(t,e){var n=this,r=e.currentAnimateTimings,i=e.currentTime,o=e.currentTime;r&&o>0&&(o-=r.duration+r.delay),t.styles.forEach(function(t){"string"!=typeof t&&Object.keys(t).forEach(function(r){if(n._driver.validateStyleProperty(r)){var s,a,l,u=e.collectedStyles[e.currentQuerySelector],c=u[r],h=!0;c&&(o!=i&&o>=c.startTime&&i<=c.endTime&&(e.errors.push('The CSS property "'+r+'" that exists between the times of "'+c.startTime+'ms" and "'+c.endTime+'ms" is also being animated in a parallel animation between the times of "'+o+'ms" and "'+i+'ms"'),h=!1),o=c.startTime),h&&(u[r]={startTime:o,endTime:i}),e.options&&(s=e.errors,a=e.options.params||{},(l=Jf(t[r])).length&&l.forEach(function(t){a.hasOwnProperty(t)||s.push("Unable to resolve the local animation param "+t+" in the given list of values")}))}else e.errors.push('The provided animation property "'+r+'" is not a supported CSS property for animations')})})},t.prototype.visitKeyframes=function(t,e){var n=this,r={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),r;var i=0,o=[],s=!1,a=!1,l=0,u=t.steps.map(function(t){var r=n._makeStyleAst(t,e),u=null!=r.offset?r.offset:function(t){if("string"==typeof t)return null;var e=null;if(Array.isArray(t))t.forEach(function(t){if(mm(t)&&t.hasOwnProperty("offset")){var n=t;e=parseFloat(n.offset),delete n.offset}});else if(mm(t)&&t.hasOwnProperty("offset")){var n=t;e=parseFloat(n.offset),delete n.offset}return e}(r.styles),c=0;return null!=u&&(i++,c=r.offset=u),a=a||c<0||c>1,s=s||c0&&i0?i==d?1:h*i:o[i],a=s*m;e.currentTime=p+f.delay+a,f.duration=a,n._validateStyleAst(t,e),t.offset=s,r.styles.push(t)}),r},t.prototype.visitReference=function(t,e){return{type:8,animation:om(this,Yf(t.animation),e),options:ym(t.options)}},t.prototype.visitAnimateChild=function(t,e){return e.depCount++,{type:9,options:ym(t.options)}},t.prototype.visitAnimateRef=function(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:ym(t.options)}},t.prototype.visitQuery=function(t,e){var n=e.currentQuerySelector,r=t.options||{};e.queryCount++,e.currentQuery=t;var i=h(function(t){var e=!!t.split(/\s*,\s*/).find(function(t){return":self"==t});return e&&(t=t.replace(hm,"")),[t=t.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,function(t){return".ng-trigger-"+t.substr(1)}).replace(/:animating/g,".ng-animating"),e]}(t.selector),2),o=i[0],s=i[1];e.currentQuerySelector=n.length?n+" "+o:o,Ef(e.collectedStyles,e.currentQuerySelector,{});var a=om(this,Yf(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:a,originalSelector:t.selector,options:ym(t.options)}},t.prototype.visitStagger=function(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");var n="full"===t.timings?{duration:0,delay:0,easing:"full"}:qf(t.timings,e.errors,!0);return{type:12,animation:om(this,Yf(t.animation),e),timings:n,options:null}},t}(),fm=function(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null};function mm(t){return!Array.isArray(t)&&"object"==typeof t}function ym(t){var e;return t?(t=Hf(t)).params&&(t.params=(e=t.params)?Hf(e):null):t={},t}function vm(t,e,n){return{duration:t,delay:e,easing:n}}function gm(t,e,n,r,i,o,s,a){return void 0===s&&(s=null),void 0===a&&(a=!1),{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:r,duration:i,delay:o,totalTime:i+o,easing:s,subTimeline:a}}var bm=function(){function t(){this._map=new Map}return t.prototype.consume=function(t){var e=this._map.get(t);return e?this._map.delete(t):e=[],e},t.prototype.append=function(t,e){var n=this._map.get(t);n||this._map.set(t,n=[]),n.push.apply(n,d(e))},t.prototype.has=function(t){return this._map.has(t)},t.prototype.clear=function(){this._map.clear()},t}(),_m=new RegExp(":enter","g"),wm=new RegExp(":leave","g");function Sm(t,e,n,r,i,o,s,a,l,u){return void 0===o&&(o={}),void 0===s&&(s={}),void 0===u&&(u=[]),(new Em).buildKeyframes(t,e,n,r,i,o,s,a,l,u)}var Em=function(){function t(){}return t.prototype.buildKeyframes=function(t,e,n,r,i,o,s,a,l,u){void 0===u&&(u=[]),l=l||new bm;var c=new xm(t,e,l,r,i,u,[]);c.options=a,c.currentTimeline.setStyles([o],null,c.errors,a),om(this,n,c);var h=c.timelines.filter(function(t){return t.containsAnimation()});if(h.length&&Object.keys(s).length){var d=h[h.length-1];d.allowOnlyTimelineStyles()||d.setStyles([s],null,c.errors,a)}return h.length?h.map(function(t){return t.buildKeyframes()}):[gm(e,[],[],[],0,0,"",!1)]},t.prototype.visitTrigger=function(t,e){},t.prototype.visitState=function(t,e){},t.prototype.visitTransition=function(t,e){},t.prototype.visitAnimateChild=function(t,e){var n=e.subInstructions.consume(e.element);if(n){var r=e.createSubContext(t.options),i=e.currentTimeline.currentTime,o=this._visitSubInstructions(n,r,r.options);i!=o&&e.transformIntoNewTimeline(o)}e.previousNode=t},t.prototype.visitAnimateRef=function(t,e){var n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t},t.prototype._visitSubInstructions=function(t,e,n){var r=e.currentTimeline.currentTime,i=null!=n.duration?Uf(n.duration):null,o=null!=n.delay?Uf(n.delay):null;return 0!==i&&t.forEach(function(t){var n=e.appendInstructionToTimeline(t,i,o);r=Math.max(r,n.duration+n.delay)}),r},t.prototype.visitReference=function(t,e){e.updateOptions(t.options,!0),om(this,t.animation,e),e.previousNode=t},t.prototype.visitSequence=function(t,e){var n=this,r=e.subContextCount,i=e,o=t.options;if(o&&(o.params||o.delay)&&((i=e.createSubContext(o)).transformIntoNewTimeline(),null!=o.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=Cm);var s=Uf(o.delay);i.delayNextStep(s)}t.steps.length&&(t.steps.forEach(function(t){return om(n,t,i)}),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>r&&i.transformIntoNewTimeline()),e.previousNode=t},t.prototype.visitGroup=function(t,e){var n=this,r=[],i=e.currentTimeline.currentTime,o=t.options&&t.options.delay?Uf(t.options.delay):0;t.steps.forEach(function(s){var a=e.createSubContext(t.options);o&&a.delayNextStep(o),om(n,s,a),i=Math.max(i,a.currentTimeline.currentTime),r.push(a.currentTimeline)}),r.forEach(function(t){return e.currentTimeline.mergeTimelineCollectedStyles(t)}),e.transformIntoNewTimeline(i),e.previousNode=t},t.prototype._visitTiming=function(t,e){if(t.dynamic){var n=t.strValue;return qf(e.params?$f(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}},t.prototype.visitAnimate=function(t,e){var n=e.currentAnimateTimings=this._visitTiming(t.timings,e),r=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),r.snapshotCurrentStyles());var i=t.style;5==i.type?this.visitKeyframes(i,e):(e.incrementTime(n.duration),this.visitStyle(i,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t},t.prototype.visitStyle=function(t,e){var n=e.currentTimeline,r=e.currentAnimateTimings;!r&&n.getCurrentStyleProperties().length&&n.forwardFrame();var i=r&&r.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(i):n.setStyles(t.styles,i,e.errors,e.options),e.previousNode=t},t.prototype.visitKeyframes=function(t,e){var n=e.currentAnimateTimings,r=e.currentTimeline.duration,i=n.duration,o=e.createSubContext().currentTimeline;o.easing=n.easing,t.styles.forEach(function(t){o.forwardTime((t.offset||0)*i),o.setStyles(t.styles,t.easing,e.errors,e.options),o.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(o),e.transformIntoNewTimeline(r+i),e.previousNode=t},t.prototype.visitQuery=function(t,e){var n=this,r=e.currentTimeline.currentTime,i=t.options||{},o=i.delay?Uf(i.delay):0;o&&(6===e.previousNode.type||0==r&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Cm);var s=r,a=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!i.optional,e.errors);e.currentQueryTotal=a.length;var l=null;a.forEach(function(r,i){e.currentQueryIndex=i;var a=e.createSubContext(t.options,r);o&&a.delayNextStep(o),r===e.element&&(l=a.currentTimeline),om(n,t.animation,a),a.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,a.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(s),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t},t.prototype.visitStagger=function(t,e){var n=e.parentContext,r=e.currentTimeline,i=t.timings,o=Math.abs(i.duration),s=o*(e.currentQueryTotal-1),a=o*e.currentQueryIndex;switch(i.duration<0?"reverse":i.easing){case"reverse":a=s-a;break;case"full":a=n.currentStaggerTime}var l=e.currentTimeline;a&&l.delayNextStep(a);var u=l.currentTime;om(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=r.currentTime-u+(r.startTime-n.currentTimeline.startTime)},t}(),Cm={},xm=function(){function t(t,e,n,r,i,o,s,a){this._driver=t,this.element=e,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=i,this.errors=o,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Cm,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new km(this._driver,e,0),s.push(this.currentTimeline)}return Object.defineProperty(t.prototype,"params",{get:function(){return this.options.params},enumerable:!0,configurable:!0}),t.prototype.updateOptions=function(t,e){var n=this;if(t){var r=t,i=this.options;null!=r.duration&&(i.duration=Uf(r.duration)),null!=r.delay&&(i.delay=Uf(r.delay));var o=r.params;if(o){var s=i.params;s||(s=this.options.params={}),Object.keys(o).forEach(function(t){e&&s.hasOwnProperty(t)||(s[t]=$f(o[t],s,n.errors))})}}},t.prototype._copyOptions=function(){var t={};if(this.options){var e=this.options.params;if(e){var n=t.params={};Object.keys(e).forEach(function(t){n[t]=e[t]})}}return t},t.prototype.createSubContext=function(e,n,r){void 0===e&&(e=null);var i=n||this.element,o=new t(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,r||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(e),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o},t.prototype.transformIntoNewTimeline=function(t){return this.previousNode=Cm,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline},t.prototype.appendInstructionToTimeline=function(t,e,n){var r={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},i=new Om(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,r,t.stretchStartingKeyframe);return this.timelines.push(i),r},t.prototype.incrementTime=function(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)},t.prototype.delayNextStep=function(t){t>0&&this.currentTimeline.delayNextStep(t)},t.prototype.invokeQuery=function(t,e,n,r,i,o){var s=[];if(r&&s.push(this.element),t.length>0){t=(t=t.replace(_m,"."+this._enterClassName)).replace(wm,"."+this._leaveClassName);var a=this._driver.query(this.element,t,1!=n);0!==n&&(a=n<0?a.slice(a.length+n,a.length):a.slice(0,n)),s.push.apply(s,d(a))}return i||0!=s.length||o.push('`query("'+e+'")` returned zero elements. (Use `query("'+e+'", { optional: true })` if you wish to allow this.)'),s},t}(),km=function(){function t(t,e,n,r){this._driver=t,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}return t.prototype.containsAnimation=function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}},t.prototype.getCurrentStyleProperties=function(){return Object.keys(this._currentKeyframe)},Object.defineProperty(t.prototype,"currentTime",{get:function(){return this.startTime+this.duration},enumerable:!0,configurable:!0}),t.prototype.delayNextStep=function(t){var e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t},t.prototype.fork=function(e,n){return this.applyStylesToKeyframe(),new t(this._driver,e,n||this.currentTime,this._elementTimelineStylesLookup)},t.prototype._loadKeyframe=function(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))},t.prototype.forwardFrame=function(){this.duration+=1,this._loadKeyframe()},t.prototype.forwardTime=function(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()},t.prototype._updateStyle=function(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}},t.prototype.allowOnlyTimelineStyles=function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe},t.prototype.applyEmptyStep=function(t){var e=this;t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(function(t){e._backFill[t]=e._globalTimelineStyles[t]||hh,e._currentKeyframe[t]=hh}),this._currentEmptyStepKeyframe=this._currentKeyframe},t.prototype.setStyles=function(t,e,n,r){var i=this;e&&(this._previousKeyframe.easing=e);var o=r&&r.params||{},s=function(t,e){var n,r={};return t.forEach(function(t){"*"===t?(n=n||Object.keys(e)).forEach(function(t){r[t]=hh}):Wf(t,!1,r)}),r}(t,this._globalTimelineStyles);Object.keys(s).forEach(function(t){var e=$f(s[t],o,n);i._pendingStyles[t]=e,i._localTimelineStyles.hasOwnProperty(t)||(i._backFill[t]=i._globalTimelineStyles.hasOwnProperty(t)?i._globalTimelineStyles[t]:hh),i._updateStyle(t,e)})},t.prototype.applyStylesToKeyframe=function(){var t=this,e=this._pendingStyles,n=Object.keys(e);0!=n.length&&(this._pendingStyles={},n.forEach(function(n){t._currentKeyframe[n]=e[n]}),Object.keys(this._localTimelineStyles).forEach(function(e){t._currentKeyframe.hasOwnProperty(e)||(t._currentKeyframe[e]=t._localTimelineStyles[e])}))},t.prototype.snapshotCurrentStyles=function(){var t=this;Object.keys(this._localTimelineStyles).forEach(function(e){var n=t._localTimelineStyles[e];t._pendingStyles[e]=n,t._updateStyle(e,n)})},t.prototype.getFinalKeyframe=function(){return this._keyframes.get(this.duration)},Object.defineProperty(t.prototype,"properties",{get:function(){var t=[];for(var e in this._currentKeyframe)t.push(e);return t},enumerable:!0,configurable:!0}),t.prototype.mergeTimelineCollectedStyles=function(t){var e=this;Object.keys(t._styleSummary).forEach(function(n){var r=e._styleSummary[n],i=t._styleSummary[n];(!r||i.time>r.time)&&e._updateStyle(n,i.value)})},t.prototype.buildKeyframes=function(){var t=this;this.applyStylesToKeyframe();var e=new Set,n=new Set,r=1===this._keyframes.size&&0===this.duration,i=[];this._keyframes.forEach(function(o,s){var a=Wf(o,!0);Object.keys(a).forEach(function(t){var r=a[t];r==vh?e.add(t):r==hh&&n.add(t)}),r||(a.offset=s/t.duration),i.push(a)});var o=e.size?tm(e.values()):[],s=n.size?tm(n.values()):[];if(r){var a=i[0],l=Hf(a);a.offset=0,l.offset=1,i=[a,l]}return gm(this.element,i,o,s,this.duration,this.startTime,this.easing,!1)},t}(),Om=function(t){function e(e,n,r,i,o,s,a){void 0===a&&(a=!1);var l=t.call(this,e,n,s.delay)||this;return l.element=n,l.keyframes=r,l.preStyleProps=i,l.postStyleProps=o,l._stretchStartingKeyframe=a,l.timings={duration:s.duration,delay:s.delay,easing:s.easing},l}return o(e,t),e.prototype.containsAnimation=function(){return this.keyframes.length>1},e.prototype.buildKeyframes=function(){var t=this.keyframes,e=this.timings,n=e.delay,r=e.duration,i=e.easing;if(this._stretchStartingKeyframe&&n){var o=[],s=r+n,a=n/s,l=Wf(t[0],!1);l.offset=0,o.push(l);var u=Wf(t[0],!1);u.offset=Im(a),o.push(u);for(var c=t.length-1,h=1;h<=c;h++){var d=Wf(t[h],!1);d.offset=Im((n+d.offset*r)/s),o.push(d)}r=s,n=0,i="",t=o}return gm(this.element,t,this.preStyleProps,this.postStyleProps,r,n,i,!0)},e}(km);function Im(t,e){void 0===e&&(e=3);var n=Math.pow(10,e-1);return Math.round(t*n)/n}var Tm=function(){},Pm=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.normalizePropertyName=function(t,e){return nm(t)},e.prototype.normalizeStyleValue=function(t,e,n,r){var i="",o=n.toString().trim();if(Rm[e]&&0!==n&&"0"!==n)if("number"==typeof n)i="px";else{var s=n.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&0==s[1].length&&r.push("Please provide a CSS unit value for "+t+":"+n)}return o+i},e}(Tm),Rm=function(t){var e={};return"width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",").forEach(function(t){return e[t]=!0}),e}();function Am(t,e,n,r,i,o,s,a,l,u,c,h,d){return{type:0,element:t,triggerName:e,isRemovalTransition:i,fromState:n,fromStyles:o,toState:r,toStyles:s,timelines:a,queriedElements:l,preStyleProps:u,postStyleProps:c,totalTime:h,errors:d}}var Nm={},Dm=function(){function t(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}return t.prototype.match=function(t,e,n,r){return function(t,e,n,r,i){return t.some(function(t){return t(e,n,r,i)})}(this.ast.matchers,t,e,n,r)},t.prototype.buildStyles=function(t,e,n){var r=this._stateStyles["*"],i=this._stateStyles[t],o=r?r.buildStyles(e,n):{};return i?i.buildStyles(e,n):o},t.prototype.build=function(t,e,n,r,i,o,a,l,u,c){var h=[],d=this.ast.options&&this.ast.options.params||Nm,p=this.buildStyles(n,a&&a.params||Nm,h),f=l&&l.params||Nm,m=this.buildStyles(r,f,h),y=new Set,v=new Map,g=new Map,b="void"===r,_={params:s({},d,f)},w=c?[]:Sm(t,e,this.ast.animation,i,o,p,m,_,u,h),S=0;if(w.forEach(function(t){S=Math.max(t.duration+t.delay,S)}),h.length)return Am(e,this._triggerName,n,r,b,p,m,[],[],v,g,S,h);w.forEach(function(t){var n=t.element,r=Ef(v,n,{});t.preStyleProps.forEach(function(t){return r[t]=!0});var i=Ef(g,n,{});t.postStyleProps.forEach(function(t){return i[t]=!0}),n!==e&&y.add(n)});var E=tm(y.values());return Am(e,this._triggerName,n,r,b,p,m,w,E,v,g,S)},t}(),Mm=function(){function t(t,e){this.styles=t,this.defaultParams=e}return t.prototype.buildStyles=function(t,e){var n={},r=Hf(this.defaultParams);return Object.keys(t).forEach(function(e){var n=t[e];null!=n&&(r[e]=n)}),this.styles.styles.forEach(function(t){if("string"!=typeof t){var i=t;Object.keys(i).forEach(function(t){var o=i[t];o.length>1&&(o=$f(o,r,e)),n[t]=o})}}),n},t}(),Lm=function(){function t(t,e){var n=this;this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(function(t){n.states[t.name]=new Mm(t.style,t.options&&t.options.params||{})}),Vm(this.states,"true","1"),Vm(this.states,"false","0"),e.transitions.forEach(function(e){n.transitionFactories.push(new Dm(t,e,n.states))}),this.fallbackTransition=new Dm(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(t,e){return!0}],options:null,queryCount:0,depCount:0},this.states)}return Object.defineProperty(t.prototype,"containsQueries",{get:function(){return this.ast.queryCount>0},enumerable:!0,configurable:!0}),t.prototype.matchTransition=function(t,e,n,r){return this.transitionFactories.find(function(i){return i.match(t,e,n,r)})||null},t.prototype.matchStyles=function(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)},t}();function Vm(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}var Fm=new bm,jm=function(){function t(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}return t.prototype.register=function(t,e){var n=[],r=dm(this._driver,e,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: "+n.join("\n"));this._animations[t]=r},t.prototype._buildPlayer=function(t,e,n){var r=t.element,i=bf(0,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(r,i,t.duration,t.delay,t.easing,[],!0)},t.prototype.create=function(t,e,n){var r=this;void 0===n&&(n={});var i,o=[],s=this._animations[t],a=new Map;if(s?(i=Sm(this._driver,e,s,"ng-enter","ng-leave",{},{},n,Fm,o)).forEach(function(t){var e=Ef(a,t.element,{});t.postStyleProps.forEach(function(t){return e[t]=null})}):(o.push("The requested animation doesn't exist or has already been destroyed"),i=[]),o.length)throw new Error("Unable to create the animation due to the following errors: "+o.join("\n"));a.forEach(function(t,e){Object.keys(t).forEach(function(n){t[n]=r._driver.computeStyle(e,n,hh)})});var l=gf(i.map(function(t){var e=a.get(t.element);return r._buildPlayer(t,{},e)}));return this._playersById[t]=l,l.onDestroy(function(){return r.destroy(t)}),this.players.push(l),l},t.prototype.destroy=function(t){var e=this._getPlayer(t);e.destroy(),delete this._playersById[t];var n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)},t.prototype._getPlayer=function(t){var e=this._playersById[t];if(!e)throw new Error("Unable to find the timeline player referenced by "+t);return e},t.prototype.listen=function(t,e,n,r){var i=Sf(e,"","","");return _f(this._getPlayer(t),n,i,r),function(){}},t.prototype.command=function(t,e,n,r){if("register"!=n)if("create"!=n){var i=this._getPlayer(t);switch(n){case"play":i.play();break;case"pause":i.pause();break;case"reset":i.reset();break;case"restart":i.restart();break;case"finish":i.finish();break;case"init":i.init();break;case"setPosition":i.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(t)}}else this.create(t,e,r[0]||{});else this.register(t,r[0])},t}(),Bm=[],Um={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},zm={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},qm="__ng_removed",Hm=function(){function t(t,e){void 0===e&&(e=""),this.namespaceId=e;var n=t&&t.hasOwnProperty("value");if(this.value=function(t){return null!=t?t:null}(n?t.value:t),n){var r=Hf(t);delete r.value,this.options=r}else this.options={};this.options.params||(this.options.params={})}return Object.defineProperty(t.prototype,"params",{get:function(){return this.options.params},enumerable:!0,configurable:!0}),t.prototype.absorbOptions=function(t){var e=t.params;if(e){var n=this.options.params;Object.keys(e).forEach(function(t){null==n[t]&&(n[t]=e[t])})}},t}(),Wm=new Hm("void"),Gm=function(){function t(t,e,n){this.id=t,this.hostElement=e,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,ty(e,this._hostClassName)}return t.prototype.listen=function(t,e,n,r){var i,o=this;if(!this._triggers.hasOwnProperty(e))throw new Error('Unable to listen on the animation trigger event "'+n+'" because the animation trigger "'+e+"\" doesn't exist!");if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'+e+'" because the provided event is undefined!');if("start"!=(i=n)&&"done"!=i)throw new Error('The provided animation trigger event "'+n+'" for the animation trigger "'+e+'" is not supported!');var s=Ef(this._elementListeners,t,[]),a={name:e,phase:n,callback:r};s.push(a);var l=Ef(this._engine.statesByElement,t,{});return l.hasOwnProperty(e)||(ty(t,"ng-trigger"),ty(t,"ng-trigger-"+e),l[e]=Wm),function(){o._engine.afterFlush(function(){var t=s.indexOf(a);t>=0&&s.splice(t,1),o._triggers[e]||delete l[e]})}},t.prototype.register=function(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)},t.prototype._getTrigger=function(t){var e=this._triggers[t];if(!e)throw new Error('The provided animation trigger "'+t+'" has not been registered!');return e},t.prototype.trigger=function(t,e,n,r){var i=this;void 0===r&&(r=!0);var o=this._getTrigger(e),s=new Qm(this.id,e,t),a=this._engine.statesByElement.get(t);a||(ty(t,"ng-trigger"),ty(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,a={}));var l=a[e],u=new Hm(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&l&&u.absorbOptions(l.options),a[e]=u,l||(l=Wm),"void"===u.value||l.value!==u.value){var c=Ef(this._engine.playersByElement,t,[]);c.forEach(function(t){t.namespaceId==i.id&&t.triggerName==e&&t.queued&&t.destroy()});var h=o.matchTransition(l.value,u.value,t,u.params),d=!1;if(!h){if(!r)return;h=o.fallbackTransition,d=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:h,fromState:l,toState:u,player:s,isFallbackTransition:d}),d||(ty(t,"ng-animate-queued"),s.onStart(function(){ey(t,"ng-animate-queued")})),s.onDone(function(){var e=i.players.indexOf(s);e>=0&&i.players.splice(e,1);var n=i._engine.playersByElement.get(t);if(n){var r=n.indexOf(s);r>=0&&n.splice(r,1)}}),this.players.push(s),c.push(s),s}if(!function(t,e){var n=Object.keys(t),r=Object.keys(e);if(n.length!=r.length)return!1;for(var i=0;i=0){for(var r=!1,i=n;i>=0;i--)if(this.driver.containsElement(this._namespaceList[i].hostElement,e)){this._namespaceList.splice(i+1,0,t),r=!0;break}r||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t},t.prototype.register=function(t,e){var n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n},t.prototype.registerTrigger=function(t,e,n){var r=this._namespaceLookup[t];r&&r.register(e,n)&&this.totalAnimations++},t.prototype.destroy=function(t,e){var n=this;if(t){var r=this._fetchNamespace(t);this.afterFlush(function(){n.namespacesByHostElement.delete(r.hostElement),delete n._namespaceLookup[t];var e=n._namespaceList.indexOf(r);e>=0&&n._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(function(){return r.destroy(e)})}},t.prototype._fetchNamespace=function(t){return this._namespaceLookup[t]},t.prototype.fetchNamespacesByElement=function(t){var e=new Set,n=this.statesByElement.get(t);if(n)for(var r=Object.keys(n),i=0;i=0&&this.collectedLeaveElements.splice(o,1)}if(t){var s=this._fetchNamespace(t);s&&s.insertNode(e,n)}r&&this.collectEnterElement(e)}},t.prototype.collectEnterElement=function(t){this.collectedEnterElements.push(t)},t.prototype.markElementAsDisabled=function(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),ty(t,"ng-animate-disabled")):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),ey(t,"ng-animate-disabled"))},t.prototype.removeNode=function(t,e,n){if(Km(e)){var r=t?this._fetchNamespace(t):null;r?r.removeNode(e,n):this.markElementAsRemoved(t,e,!1,n)}else this._onRemovalComplete(e,n)},t.prototype.markElementAsRemoved=function(t,e,n,r){this.collectedLeaveElements.push(e),e[qm]={namespaceId:t,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1}},t.prototype.listen=function(t,e,n,r,i){return Km(e)?this._fetchNamespace(t).listen(e,n,r,i):function(){}},t.prototype._buildInstruction=function(t,e,n,r,i){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,r,t.fromState.options,t.toState.options,e,i)},t.prototype.destroyInnerAnimations=function(t){var e=this,n=this.driver.query(t,".ng-trigger",!0);n.forEach(function(t){return e.destroyActiveAnimationsForElement(t)}),0!=this.playersByQueriedElement.size&&(n=this.driver.query(t,".ng-animating",!0)).forEach(function(t){return e.finishActiveQueriedAnimationOnElement(t)})},t.prototype.destroyActiveAnimationsForElement=function(t){var e=this.playersByElement.get(t);e&&e.forEach(function(t){t.queued?t.markedForDestroy=!0:t.destroy()})},t.prototype.finishActiveQueriedAnimationOnElement=function(t){var e=this.playersByQueriedElement.get(t);e&&e.forEach(function(t){return t.finish()})},t.prototype.whenRenderingDone=function(){var t=this;return new Promise(function(e){if(t.players.length)return gf(t.players).onDone(function(){return e()});e()})},t.prototype.processLeaveNode=function(t){var e=this,n=t[qm];if(n&&n.setForRemoval){if(t[qm]=Um,n.namespaceId){this.destroyInnerAnimations(t);var r=this._fetchNamespace(n.namespaceId);r&&r.clearElementCache(t)}this._onRemovalComplete(t,n.setForRemoval)}this.driver.matchesElement(t,".ng-animate-disabled")&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(function(n){e.markElementAsDisabled(t,!1)})},t.prototype.flush=function(t){var e=this;void 0===t&&(t=-1);var n=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(t,n){return e._balanceNamespaceList(t,n)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var r=0;r=0;k--)this._namespaceList[k].drainQueuedTransitions(e).forEach(function(t){var e=t.player,o=t.element;if(C.push(e),n.collectedEnterElements.length){var s=o[qm];if(s&&s.setForMove)return void e.destroy()}var h=!p||!n.driver.containsElement(p,o),d=S.get(o),f=y.get(o),m=n._buildInstruction(t,r,f,d,h);if(m.errors&&m.errors.length)x.push(m);else{if(h)return e.onStart(function(){return Kf(o,m.fromStyles)}),e.onDestroy(function(){return Qf(o,m.toStyles)}),void i.push(e);if(t.isFallbackTransition)return e.onStart(function(){return Kf(o,m.fromStyles)}),e.onDestroy(function(){return Qf(o,m.toStyles)}),void i.push(e);m.timelines.forEach(function(t){return t.stretchStartingKeyframe=!0}),r.append(o,m.timelines),a.push({instruction:m,player:e,element:o}),m.queriedElements.forEach(function(t){return Ef(l,t,[]).push(e)}),m.preStyleProps.forEach(function(t,e){var n=Object.keys(t);if(n.length){var r=u.get(e);r||u.set(e,r=new Set),n.forEach(function(t){return r.add(t)})}}),m.postStyleProps.forEach(function(t,e){var n=Object.keys(t),r=c.get(e);r||c.set(e,r=new Set),n.forEach(function(t){return r.add(t)})})}});if(x.length){var O=[];x.forEach(function(t){O.push("@"+t.triggerName+" has failed due to:\n"),t.errors.forEach(function(t){return O.push("- "+t+"\n")})}),C.forEach(function(t){return t.destroy()}),this.reportError(O)}var I=new Map,T=new Map;a.forEach(function(t){var e=t.element;r.has(e)&&(T.set(e,e),n._beforeAnimationBuild(t.player.namespaceId,t.instruction,I))}),i.forEach(function(t){var e=t.element;n._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(function(t){Ef(I,e,[]).push(t),t.destroy()})});var P=g.filter(function(t){return ry(t,u,c)}),R=new Map;Zm(R,this.driver,_,c,hh).forEach(function(t){ry(t,u,c)&&P.push(t)});var A=new Map;m.forEach(function(t,e){Zm(A,n.driver,new Set(t),u,vh)}),P.forEach(function(t){var e=R.get(t),n=A.get(t);R.set(t,s({},e,n))});var N=[],D=[],M={};a.forEach(function(t){var e=t.element,s=t.player,a=t.instruction;if(r.has(e)){if(h.has(e))return s.onDestroy(function(){return Qf(e,a.toStyles)}),s.disabled=!0,s.overrideTotalTime(a.totalTime),void i.push(s);var l=M;if(T.size>1){for(var u=e,c=[];u=u.parentNode;){var d=T.get(u);if(d){l=d;break}c.push(u)}c.forEach(function(t){return T.set(t,l)})}var p=n._buildAnimation(s.namespaceId,a,I,o,A,R);if(s.setRealPlayer(p),l===M)N.push(s);else{var f=n.playersByElement.get(l);f&&f.length&&(s.parentPlayer=gf(f)),i.push(s)}}else Kf(e,a.fromStyles),s.onDestroy(function(){return Qf(e,a.toStyles)}),D.push(s),h.has(e)&&i.push(s)}),D.forEach(function(t){var e=o.get(t.element);if(e&&e.length){var n=gf(e);t.setRealPlayer(n)}}),i.forEach(function(t){t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(var L=0;L0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new mh(t.duration,t.delay)},t}(),Qm=function(){function t(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n,this._player=new mh,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return t.prototype.setRealPlayer=function(t){var e=this;this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(function(n){e._queuedCallbacks[n].forEach(function(e){return _f(t,n,void 0,e)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)},t.prototype.getRealPlayer=function(){return this._player},t.prototype.overrideTotalTime=function(t){this.totalTime=t},t.prototype.syncPlayerEvents=function(t){var e=this,n=this._player;n.triggerCallback&&t.onStart(function(){return n.triggerCallback("start")}),t.onDone(function(){return e.finish()}),t.onDestroy(function(){return e.destroy()})},t.prototype._queueEvent=function(t,e){Ef(this._queuedCallbacks,t,[]).push(e)},t.prototype.onDone=function(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)},t.prototype.onStart=function(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)},t.prototype.onDestroy=function(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)},t.prototype.init=function(){this._player.init()},t.prototype.hasStarted=function(){return!this.queued&&this._player.hasStarted()},t.prototype.play=function(){!this.queued&&this._player.play()},t.prototype.pause=function(){!this.queued&&this._player.pause()},t.prototype.restart=function(){!this.queued&&this._player.restart()},t.prototype.finish=function(){this._player.finish()},t.prototype.destroy=function(){this.destroyed=!0,this._player.destroy()},t.prototype.reset=function(){!this.queued&&this._player.reset()},t.prototype.setPosition=function(t){this.queued||this._player.setPosition(t)},t.prototype.getPosition=function(){return this.queued?0:this._player.getPosition()},t.prototype.triggerCallback=function(t){var e=this._player;e.triggerCallback&&e.triggerCallback(t)},t}();function Km(t){return t&&1===t.nodeType}function Ym(t,e){var n=t.style.display;return t.style.display=null!=e?e:"none",n}function Zm(t,e,n,r,i){var o=[];n.forEach(function(t){return o.push(Ym(t))});var s=[];r.forEach(function(n,r){var o={};n.forEach(function(t){var n=o[t]=e.computeStyle(r,t,i);n&&0!=n.length||(r[qm]=zm,s.push(r))}),t.set(r,o)});var a=0;return n.forEach(function(t){return Ym(t,o[a++])}),s}function Jm(t,e){var n=new Map;if(t.forEach(function(t){return n.set(t,[])}),0==e.length)return n;var r=new Set(e),i=new Map;return e.forEach(function(t){var e=function t(e){if(!e)return 1;var o=i.get(e);if(o)return o;var s=e.parentNode;return o=n.has(s)?s:r.has(s)?1:t(s),i.set(e,o),o}(t);1!==e&&n.get(e).push(t)}),n}var $m="$$classes";function ty(t,e){if(t.classList)t.classList.add(e);else{var n=t[$m];n||(n=t[$m]={}),n[e]=!0}}function ey(t,e){if(t.classList)t.classList.remove(e);else{var n=t[$m];n&&delete n[e]}}function ny(t,e,n){gf(n).onDone(function(){return t.processLeaveNode(e)})}function ry(t,e,n){var r=n.get(t);if(!r)return!1;var i=e.get(t);return i?r.forEach(function(t){return i.add(t)}):e.set(t,r),n.delete(t),!0}var iy=function(){function t(t,e,n){var r=this;this.bodyNode=t,this._driver=e,this._triggerCache={},this.onRemovalComplete=function(t,e){},this._transitionEngine=new Xm(t,e,n),this._timelineEngine=new jm(t,e,n),this._transitionEngine.onRemovalComplete=function(t,e){return r.onRemovalComplete(t,e)}}return t.prototype.registerTrigger=function(t,e,n,r,i){var o=t+"-"+r,s=this._triggerCache[o];if(!s){var a=[],l=dm(this._driver,i,a);if(a.length)throw new Error('The animation trigger "'+r+'" has failed to build due to the following errors:\n - '+a.join("\n - "));s=function(t,e){return new Lm(t,e)}(r,l),this._triggerCache[o]=s}this._transitionEngine.registerTrigger(e,r,s)},t.prototype.register=function(t,e){this._transitionEngine.register(t,e)},t.prototype.destroy=function(t,e){this._transitionEngine.destroy(t,e)},t.prototype.onInsert=function(t,e,n,r){this._transitionEngine.insertNode(t,e,n,r)},t.prototype.onRemove=function(t,e,n){this._transitionEngine.removeNode(t,e,n)},t.prototype.disableAnimations=function(t,e){this._transitionEngine.markElementAsDisabled(t,e)},t.prototype.process=function(t,e,n,r){if("@"==n.charAt(0)){var i=h(Cf(n),2);this._timelineEngine.command(i[0],e,i[1],r)}else this._transitionEngine.trigger(t,e,n,r)},t.prototype.listen=function(t,e,n,r,i){if("@"==n.charAt(0)){var o=h(Cf(n),2);return this._timelineEngine.listen(o[0],e,o[1],i)}return this._transitionEngine.listen(t,e,n,r,i)},t.prototype.flush=function(t){void 0===t&&(t=-1),this._transitionEngine.flush(t)},Object.defineProperty(t.prototype,"players",{get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)},enumerable:!0,configurable:!0}),t.prototype.whenRenderingDone=function(){return this._transitionEngine.whenRenderingDone()},t}(),oy="animation",sy="animationend",ay=function(){function t(t,e,n,r,i,o,s){var a=this;this._element=t,this._name=e,this._duration=n,this._delay=r,this._easing=i,this._fillMode=o,this._onDoneFn=s,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=function(t){return a._handleCallback(t)}}return t.prototype.apply=function(){var t,e,n;e=this._duration+"ms "+this._easing+" "+this._delay+"ms 1 normal "+this._fillMode+" "+this._name,(n=py(t=this._element,"").trim()).length&&(function(t,e){for(var n=0;n=this._delay&&n>=this._duration&&this.finish()},t.prototype.finish=function(){this._finished||(this._finished=!0,this._onDoneFn(),hy(this._element,this._eventFn,!0))},t.prototype.destroy=function(){var t,e,n,r;this._destroyed||(this._destroyed=!0,this.finish(),e=this._name,(r=cy(n=py(t=this._element,"").split(","),e))>=0&&(n.splice(r,1),dy(t,"",n.join(","))))},t}();function ly(t,e,n){dy(t,"PlayState",n,uy(t,e))}function uy(t,e){var n=py(t,"");return n.indexOf(",")>0?cy(n.split(","),e):cy([n],e)}function cy(t,e){for(var n=0;n=0)return n;return-1}function hy(t,e,n){n?t.removeEventListener(sy,e):t.addEventListener(sy,e)}function dy(t,e,n,r){var i=oy+e;if(null!=r){var o=t.style[i];if(o.length){var s=o.split(",");s[r]=n,n=s.join(",")}}t.style[i]=n}function py(t,e){return t.style[oy+e]}var fy="linear",my=function(){function t(t,e,n,r,i,o,s){this.element=t,this.keyframes=e,this.animationName=n,this._duration=r,this._delay=i,this._finalStyles=s,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=o||fy,this.totalTime=r+i,this._buildStyler()}return t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype.onDone=function(t){this._onDoneFns.push(t)},t.prototype.onDestroy=function(t){this._onDestroyFns.push(t)},t.prototype.destroy=function(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])},t.prototype._flushDoneFns=function(){this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[]},t.prototype._flushStartFns=function(){this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[]},t.prototype.finish=function(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._flushDoneFns())},t.prototype.setPosition=function(t){this._styler.setPosition(t)},t.prototype.getPosition=function(){return this._styler.getPosition()},t.prototype.hasStarted=function(){return this._state>=2},t.prototype.init=function(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())},t.prototype.play=function(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2),this._styler.resume()},t.prototype.pause=function(){this.init(),this._styler.pause()},t.prototype.restart=function(){this.reset(),this.play()},t.prototype.reset=function(){this._styler.destroy(),this._buildStyler(),this._styler.apply()},t.prototype._buildStyler=function(){var t=this;this._styler=new ay(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",function(){return t.finish()})},t.prototype.triggerCallback=function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0},t.prototype.beforeDestroy=function(){var t=this;this.init();var e={};if(this.hasStarted()){var n=this._state>=3;Object.keys(this._finalStyles).forEach(function(r){"offset"!=r&&(e[r]=n?t._finalStyles[r]:sm(t.element,r))})}this.currentSnapshot=e},t}(),yy=function(t){function e(e,n){var r=t.call(this)||this;return r.element=e,r._startingStyles={},r.__initialized=!1,r._styles=Vf(n),r}return o(e,t),e.prototype.init=function(){var e=this;!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(function(t){e._startingStyles[t]=e.element.style[t]}),t.prototype.init.call(this))},e.prototype.play=function(){var e=this;this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(function(t){return e.element.style.setProperty(t,e._styles[t])}),t.prototype.play.call(this))},e.prototype.destroy=function(){var e=this;this._startingStyles&&(Object.keys(this._startingStyles).forEach(function(t){var n=e._startingStyles[t];n?e.element.style.setProperty(t,n):e.element.style.removeProperty(t)}),this._startingStyles=null,t.prototype.destroy.call(this))},e}(mh),vy=function(){function t(){this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}return t.prototype.validateStyleProperty=function(t){return Nf(t)},t.prototype.matchesElement=function(t,e){return Df(t,e)},t.prototype.containsElement=function(t,e){return Mf(t,e)},t.prototype.query=function(t,e,n){return Lf(t,e,n)},t.prototype.computeStyle=function(t,e,n){return window.getComputedStyle(t)[e]},t.prototype.buildKeyframeElement=function(t,e,n){var r="@keyframes "+e+" {\n",i="";(n=n.map(function(t){return Vf(t)})).forEach(function(t){i=" ";var e=parseFloat(t.offset);r+=""+i+100*e+"% {\n",i+=" ",Object.keys(t).forEach(function(e){var n=t[e];switch(e){case"offset":return;case"easing":return void(n&&(r+=i+"animation-timing-function: "+n+";\n"));default:return void(r+=""+i+e+": "+n+";\n")}}),r+=i+"}\n"}),r+="}\n";var o=document.createElement("style");return o.innerHTML=r,o},t.prototype.animate=function(t,e,n,r,i,o,s){void 0===o&&(o=[]),s&&this._notifyFaultyScrubber();var a=o.filter(function(t){return t instanceof my}),l={};rm(n,r)&&a.forEach(function(t){var e=t.currentSnapshot;Object.keys(e).forEach(function(t){return l[t]=e[t]})});var u=function(t){var e={};return t&&(Array.isArray(t)?t:[t]).forEach(function(t){Object.keys(t).forEach(function(n){"offset"!=n&&"easing"!=n&&(e[n]=t[n])})}),e}(e=im(t,e,l));if(0==n)return new yy(t,u);var c="gen_css_kf_"+this._count++,h=this.buildKeyframeElement(t,c,e);document.querySelector("head").appendChild(h);var d=new my(t,e,c,n,r,i,u);return d.onDestroy(function(){var t;(t=h).parentNode.removeChild(t)}),d},t.prototype._notifyFaultyScrubber=function(){this._warningIssued||(console.warn("@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n"," visit http://bit.ly/IWukam to learn more about using the web-animation-js polyfill."),this._warningIssued=!0)},t}(),gy=function(){function t(t,e,n){this.element=t,this.keyframes=e,this.options=n,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}return t.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])},t.prototype.init=function(){this._buildPlayer(),this._preparePlayerBeforeStart()},t.prototype._buildPlayer=function(){var t=this;if(!this._initialized){this._initialized=!0;var e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this.domPlayer.addEventListener("finish",function(){return t._onFinish()})}},t.prototype._preparePlayerBeforeStart=function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()},t.prototype._triggerWebAnimation=function(t,e,n){return t.animate(e,n)},t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype.onDone=function(t){this._onDoneFns.push(t)},t.prototype.onDestroy=function(t){this._onDestroyFns.push(t)},t.prototype.play=function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[],this._started=!0),this.domPlayer.play()},t.prototype.pause=function(){this.init(),this.domPlayer.pause()},t.prototype.finish=function(){this.init(),this._onFinish(),this.domPlayer.finish()},t.prototype.reset=function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1},t.prototype._resetDomPlayerState=function(){this.domPlayer&&this.domPlayer.cancel()},t.prototype.restart=function(){this.reset(),this.play()},t.prototype.hasStarted=function(){return this._started},t.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])},t.prototype.setPosition=function(t){this.domPlayer.currentTime=t*this.time},t.prototype.getPosition=function(){return this.domPlayer.currentTime/this.time},Object.defineProperty(t.prototype,"totalTime",{get:function(){return this._delay+this._duration},enumerable:!0,configurable:!0}),t.prototype.beforeDestroy=function(){var t=this,e={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(function(n){"offset"!=n&&(e[n]=t._finished?t._finalKeyframe[n]:sm(t.element,n))}),this.currentSnapshot=e},t.prototype.triggerCallback=function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0},t}(),by=function(){function t(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(_y().toString()),this._cssKeyframesDriver=new vy}return t.prototype.validateStyleProperty=function(t){return Nf(t)},t.prototype.matchesElement=function(t,e){return Df(t,e)},t.prototype.containsElement=function(t,e){return Mf(t,e)},t.prototype.query=function(t,e,n){return Lf(t,e,n)},t.prototype.computeStyle=function(t,e,n){return window.getComputedStyle(t)[e]},t.prototype.overrideWebAnimationsSupport=function(t){this._isNativeImpl=t},t.prototype.animate=function(t,e,n,r,i,o,s){if(void 0===o&&(o=[]),!s&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,n,r,i,o);var a={duration:n,delay:r,fill:0==r?"both":"forwards"};i&&(a.easing=i);var l={},u=o.filter(function(t){return t instanceof gy});return rm(n,r)&&u.forEach(function(t){var e=t.currentSnapshot;Object.keys(e).forEach(function(t){return l[t]=e[t]})}),e=im(t,e=e.map(function(t){return Wf(t,!1)}),l),new gy(t,e,a)},t}();function _y(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var wy=function(t){function e(e,n){var r=t.call(this)||this;return r._nextAnimationId=0,r._renderer=e.createRenderer(n.body,{id:"0",encapsulation:fe.None,styles:[],data:{animation:[]}}),r}return o(e,t),e.prototype.build=function(t){var e=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(t)?dh(t):t;return Cy(this._renderer,null,e,"register",[n]),new Sy(e,this._renderer)},a([l(1,Bt(xu))],e)}(ch),Sy=function(t){function e(e,n){var r=t.call(this)||this;return r._id=e,r._renderer=n,r}return o(e,t),e.prototype.create=function(t,e){return new Ey(this._id,t,e||{},this._renderer)},e}(function(){}),Ey=function(){function t(t,e,n,r){this.id=t,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}return t.prototype._listen=function(t,e){return this._renderer.listen(this.element,"@@"+this.id+":"+t,e)},t.prototype._command=function(t){for(var e=[],n=1;n=0&&t*,.mat-fab .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:block;font-size:inherit;width:2.5em;height:2.5em}@media screen and (-ms-high-contrast:active){.mat-button,.mat-fab,.mat-flat-button,.mat-icon-button,.mat-mini-fab,.mat-raised-button{outline:solid 1px}}"],data:{}});function My(t){return ts(2,[qo(402653184,1,{ripple:0}),(t()(),Fi(1,0,null,null,1,"span",[["class","mat-button-wrapper"]],null,null,null,null,null)),Qo(null,0),(t()(),Fi(3,0,null,null,1,"div",[["class","mat-button-ripple mat-ripple"],["matRipple",""]],[[2,"mat-button-ripple-round",null],[2,"mat-ripple-unbounded",null]],null,null,null,null)),Oo(4,212992,[[1,4]],0,jp,[Vn,dn,td,[2,Fp],[2,Ay]],{centered:[0,"centered"],disabled:[1,"disabled"],trigger:[2,"trigger"]},null),(t()(),Fi(5,0,null,null,0,"div",[["class","mat-button-focus-overlay"]],null,null,null,null,null))],function(t,e){var n=e.component;t(e,4,0,n.isIconButton,n._isRippleDisabled(),n._getHostElement())},function(t,e){var n=e.component;t(e,3,0,n.isRoundButton||n.isIconButton,fo(e,4).unbounded)})}var Ly=ci({encapsulation:2,styles:[".mat-snack-bar-container{border-radius:2px;box-sizing:border-box;display:block;margin:24px;max-width:568px;min-width:288px;padding:14px 24px;transform:translateY(100%) translateY(24px)}.mat-snack-bar-container.mat-snack-bar-center{margin:0;transform:translateY(100%)}.mat-snack-bar-container.mat-snack-bar-top{transform:translateY(-100%) translateY(-24px)}.mat-snack-bar-container.mat-snack-bar-top.mat-snack-bar-center{transform:translateY(-100%)}@media screen and (-ms-high-contrast:active){.mat-snack-bar-container{border:solid 1px}}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:0;max-width:inherit;width:100%}"],data:{animation:[{type:7,name:"state",definitions:[{type:0,name:"visible-top, visible-bottom",styles:{type:6,styles:{transform:"translateY(0%)"},offset:null},options:void 0},{type:1,expr:"visible-top => hidden-top, visible-bottom => hidden-bottom",animation:{type:4,styles:null,timings:"195ms cubic-bezier(0.4,0.0,1,1)"},options:null},{type:1,expr:"void => visible-top, void => visible-bottom",animation:{type:4,styles:null,timings:"225ms cubic-bezier(0.0,0.0,0.2,1)"},options:null}],options:{}}]}});function Vy(t){return ts(0,[(t()(),Vi(0,null,null,0))],null,null)}function Fy(t){return ts(2,[qo(402653184,1,{_portalOutlet:0}),(t()(),Vi(16777216,null,null,1,null,Vy)),Oo(2,212992,[[1,4]],0,Ch,[en,Wn],{portal:[0,"portal"]},null)],function(t,e){t(e,2,0,"")},null)}var jy=no("snack-bar-container",lf,function(t){return ts(0,[(t()(),Fi(0,0,null,null,1,"snack-bar-container",[["class","mat-snack-bar-container"],["role","alert"]],[[40,"@state",0]],[["component","@state.done"]],function(t,e,n){var r=!0;return"component:@state.done"===e&&(r=!1!==fo(t,1).onAnimationEnd(n)&&r),r},Fy,Ly)),Oo(1,180224,null,0,lf,[dn,Vn,Gn,sf],null,null)],null,function(t,e){t(e,0,0,fo(e,1)._animationState)})},{},{},[]),By=ci({encapsulation:2,styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;line-height:20px;opacity:1}.mat-simple-snackbar-action{display:flex;flex-direction:column;flex-shrink:0;justify-content:space-around;margin:-8px 0 -8px 8px}.mat-simple-snackbar-action button{flex:1;max-height:36px}[dir=rtl] .mat-simple-snackbar-action{margin-left:0;margin-right:8px}"],data:{animation:[{type:7,name:"contentFade",definitions:[{type:1,expr:":enter",animation:[{type:6,styles:{opacity:"0"},offset:null},{type:4,styles:null,timings:"375ms cubic-bezier(0.4,0.0,0.2,1)"}],options:null}],options:{}}]}});function Uy(t){return ts(0,[(t()(),Fi(0,0,null,null,3,"div",[["class","mat-simple-snackbar-action"]],null,null,null,null,null)),(t()(),Fi(1,0,null,null,2,"button",[["mat-button",""]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.action()&&r),r},My,Dy)),Oo(2,180224,null,0,mf,[Vn,td,xp,[2,Ay]],null,null),(t()(),Zo(3,0,["",""]))],null,function(t,e){var n=e.component;t(e,1,0,fo(e,2).disabled||null,"NoopAnimations"===fo(e,2)._animationMode),t(e,3,0,n.data.action)})}function zy(t){return ts(2,[(t()(),Fi(0,0,null,null,1,"span",[],null,null,null,null,null)),(t()(),Zo(1,null,["",""])),(t()(),Vi(16777216,null,null,1,null,Uy)),Oo(3,16384,null,0,nu,[Wn,Hn],{ngIf:[0,"ngIf"]},null)],function(t,e){t(e,3,0,e.component.hasAction)},function(t,e){t(e,1,0,e.component.data.message)})}var qy=no("simple-snack-bar",af,function(t){return ts(0,[(t()(),Fi(0,0,null,null,1,"simple-snack-bar",[["class","mat-simple-snackbar"]],[[40,"@contentFade",0]],null,null,zy,By)),Oo(1,49152,null,0,af,[rf,of],null,null)],null,function(t,e){t(e,0,0,void 0)})},{},{},[]);function Hy(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}Hy.prototype=Object.create(Error.prototype);var Wy=Hy,Gy=function(t){function e(e){var n=t.call(this)||this;return n._value=e,n}return o(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),e.prototype._subscribe=function(e){var n=t.prototype._subscribe.call(this,e);return n&&!n.closed&&e.next(this._value),n},e.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new j;return this._value},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)},e}(z);function Xy(t){return function(e){return 0===t?Th():e.lift(new Qy(t))}}var Qy=function(){function t(t){if(this.total=t,this.total<0)throw new Vh}return t.prototype.call=function(t,e){return e.subscribe(new Ky(t,this.total))},t}(),Ky=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.ring=new Array,r.count=0,r}return o(e,t),e.prototype._next=function(t){var e=this.ring,n=this.total,r=this.count++;e.length0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,i=0;i=2;return function(r){return r.pipe(t?Nh(function(e,n){return t(e,n,r)}):ct,Xy(1),n?Jy(e):Yy(function(){return new Wy}))}}function nv(t,e){return function(n){return n.lift(new rv(t,e,n))}}var rv=function(){function t(t,e,n){this.predicate=t,this.thisArg=e,this.source=n}return t.prototype.call=function(t,e){return e.subscribe(new iv(t,this.predicate,this.thisArg,this.source))},t}(),iv=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.predicate=n,o.thisArg=r,o.source=i,o.index=0,o.thisArg=r||o,o}return o(e,t),e.prototype.notifyComplete=function(t){this.destination.next(t),this.destination.complete()},e.prototype._next=function(t){var e=!1;try{e=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(t){return void this.destination.error(t)}e||this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(T);function ov(t,e){var n=arguments.length>=2;return function(r){return r.pipe(t?Nh(function(e,n){return t(e,n,r)}):ct,Fh(1),n?Jy(e):Yy(function(){return new Wy}))}}function sv(t,e){return at(t,e,1)}function av(t,e){var n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new lv(t,e,n))}}var lv=function(){function t(t,e,n){void 0===n&&(n=!1),this.accumulator=t,this.seed=e,this.hasSeed=n}return t.prototype.call=function(t,e){return e.subscribe(new uv(t,this.accumulator,this.seed,this.hasSeed))},t}(),uv=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.accumulator=n,o._seed=r,o.hasSeed=i,o.index=0,o}return o(e,t),Object.defineProperty(e.prototype,"seed",{get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t},enumerable:!0,configurable:!0}),e.prototype._next=function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.accumulator(this.seed,t,n)}catch(t){this.destination.error(t)}this.seed=e,this.destination.next(e)},e}(T);function cv(t,e){return arguments.length>=2?function(n){return D(av(t,e),Xy(1),Jy(e))(n)}:function(e){return D(av(function(e,n,r){return t(e,n,r+1)}),Xy(1))(e)}}var hv=function(t,e){this.id=t,this.url=e},dv=function(t){function e(e,n,r,i){void 0===r&&(r="imperative"),void 0===i&&(i=null);var o=t.call(this,e,n)||this;return o.navigationTrigger=r,o.restoredState=i,o}return o(e,t),e.prototype.toString=function(){return"NavigationStart(id: "+this.id+", url: '"+this.url+"')"},e}(hv),pv=function(t){function e(e,n,r){var i=t.call(this,e,n)||this;return i.urlAfterRedirects=r,i}return o(e,t),e.prototype.toString=function(){return"NavigationEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"')"},e}(hv),fv=function(t){function e(e,n,r){var i=t.call(this,e,n)||this;return i.reason=r,i}return o(e,t),e.prototype.toString=function(){return"NavigationCancel(id: "+this.id+", url: '"+this.url+"')"},e}(hv),mv=function(t){function e(e,n,r){var i=t.call(this,e,n)||this;return i.error=r,i}return o(e,t),e.prototype.toString=function(){return"NavigationError(id: "+this.id+", url: '"+this.url+"', error: "+this.error+")"},e}(hv),yv=function(t){function e(e,n,r,i){var o=t.call(this,e,n)||this;return o.urlAfterRedirects=r,o.state=i,o}return o(e,t),e.prototype.toString=function(){return"RoutesRecognized(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(hv),vv=function(t){function e(e,n,r,i){var o=t.call(this,e,n)||this;return o.urlAfterRedirects=r,o.state=i,o}return o(e,t),e.prototype.toString=function(){return"GuardsCheckStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(hv),gv=function(t){function e(e,n,r,i,o){var s=t.call(this,e,n)||this;return s.urlAfterRedirects=r,s.state=i,s.shouldActivate=o,s}return o(e,t),e.prototype.toString=function(){return"GuardsCheckEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+", shouldActivate: "+this.shouldActivate+")"},e}(hv),bv=function(t){function e(e,n,r,i){var o=t.call(this,e,n)||this;return o.urlAfterRedirects=r,o.state=i,o}return o(e,t),e.prototype.toString=function(){return"ResolveStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(hv),_v=function(t){function e(e,n,r,i){var o=t.call(this,e,n)||this;return o.urlAfterRedirects=r,o.state=i,o}return o(e,t),e.prototype.toString=function(){return"ResolveEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(hv),wv=function(){function t(t){this.route=t}return t.prototype.toString=function(){return"RouteConfigLoadStart(path: "+this.route.path+")"},t}(),Sv=function(){function t(t){this.route=t}return t.prototype.toString=function(){return"RouteConfigLoadEnd(path: "+this.route.path+")"},t}(),Ev=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ChildActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),Cv=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ChildActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),xv=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),kv=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),Ov=function(){function t(t,e,n){this.routerEvent=t,this.position=e,this.anchor=n}return t.prototype.toString=function(){return"Scroll(anchor: '"+this.anchor+"', position: '"+(this.position?this.position[0]+", "+this.position[1]:null)+"')"},t}(),Iv=function(){},Tv="primary",Pv=function(){function t(t){this.params=t||{}}return t.prototype.has=function(t){return this.params.hasOwnProperty(t)},t.prototype.get=function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e[0]:e}return null},t.prototype.getAll=function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e:[e]}return[]},Object.defineProperty(t.prototype,"keys",{get:function(){return Object.keys(this.params)},enumerable:!0,configurable:!0}),t}();function Rv(t){return new Pv(t)}function Av(t,e,n){var r=n.path.split("/");if(r.length>t.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||r.length0?t[t.length-1]:null}function Uv(t,e){for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)}function zv(t){return t.pipe(ht(),nv(function(t){return!0===t}))}function qv(t){return Me(t)?t:De(t)?st(Promise.resolve(t)):Ah(t)}function Hv(t,e,n){return n?function(t,e){return Fv(t,e)}(t.queryParams,e.queryParams)&&function t(e,n){if(!Qv(e.segments,n.segments))return!1;if(e.numberOfChildren!==n.numberOfChildren)return!1;for(var r in n.children){if(!e.children[r])return!1;if(!t(e.children[r],n.children[r]))return!1}return!0}(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(function(n){return e[n]===t[n]})}(t.queryParams,e.queryParams)&&function t(e,n){return function e(n,r,i){if(n.segments.length>i.length)return!!Qv(s=n.segments.slice(0,i.length),i)&&!r.hasChildren();if(n.segments.length===i.length){if(!Qv(n.segments,i))return!1;for(var o in r.children){if(!n.children[o])return!1;if(!t(n.children[o],r.children[o]))return!1}return!0}var s=i.slice(0,n.segments.length),a=i.slice(n.segments.length);return!!Qv(n.segments,s)&&!!n.children[Tv]&&e(n.children[Tv],r,a)}(e,n,n.segments)}(t.root,e.root)}var Wv=function(){function t(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}return Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=Rv(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return Jv.serialize(this)},t}(),Gv=function(){function t(t,e){var n=this;this.segments=t,this.children=e,this.parent=null,Uv(e,function(t,e){return t.parent=n})}return t.prototype.hasChildren=function(){return this.numberOfChildren>0},Object.defineProperty(t.prototype,"numberOfChildren",{get:function(){return Object.keys(this.children).length},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return $v(this)},t}(),Xv=function(){function t(t,e){this.path=t,this.parameters=e}return Object.defineProperty(t.prototype,"parameterMap",{get:function(){return this._parameterMap||(this._parameterMap=Rv(this.parameters)),this._parameterMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return og(this)},t}();function Qv(t,e){return t.length===e.length&&t.every(function(t,n){return t.path===e[n].path})}function Kv(t,e){var n=[];return Uv(t.children,function(t,r){r===Tv&&(n=n.concat(e(t,r)))}),Uv(t.children,function(t,r){r!==Tv&&(n=n.concat(e(t,r)))}),n}var Yv=function(){},Zv=function(){function t(){}return t.prototype.parse=function(t){var e=new cg(t);return new Wv(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())},t.prototype.serialize=function(t){var e,n;return"/"+function t(e,n){if(!e.hasChildren())return $v(e);if(n){var r=e.children[Tv]?t(e.children[Tv],!1):"",i=[];return Uv(e.children,function(e,n){n!==Tv&&i.push(n+":"+t(e,!1))}),i.length>0?r+"("+i.join("//")+")":r}var o=Kv(e,function(n,r){return r===Tv?[t(e.children[Tv],!1)]:[r+":"+t(n,!1)]});return $v(e)+"/("+o.join("//")+")"}(t.root,!0)+(e=t.queryParams,(n=Object.keys(e).map(function(t){var n=e[t];return Array.isArray(n)?n.map(function(e){return eg(t)+"="+eg(e)}).join("&"):eg(t)+"="+eg(n)})).length?"?"+n.join("&"):"")+("string"==typeof t.fragment?"#"+encodeURI(t.fragment):"")},t}(),Jv=new Zv;function $v(t){return t.segments.map(function(t){return og(t)}).join("/")}function tg(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function eg(t){return tg(t).replace(/%3B/gi,";")}function ng(t){return tg(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function rg(t){return decodeURIComponent(t)}function ig(t){return rg(t.replace(/\+/g,"%20"))}function og(t){return""+ng(t.path)+(e=t.parameters,Object.keys(e).map(function(t){return";"+ng(t)+"="+ng(e[t])}).join(""));var e}var sg=/^[^\/()?;=#]+/;function ag(t){var e=t.match(sg);return e?e[0]:""}var lg=/^[^=?&#]+/,ug=/^[^?&#]+/,cg=function(){function t(t){this.url=t,this.remaining=t}return t.prototype.parseRootSegment=function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Gv([],{}):new Gv([],this.parseChildren())},t.prototype.parseQueryParams=function(){var t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t},t.prototype.parseFragment=function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null},t.prototype.parseChildren=function(){if(""===this.remaining)return{};this.consumeOptional("/");var t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());var e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n[Tv]=new Gv(t,e)),n},t.prototype.parseSegment=function(){var t=ag(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '"+this.remaining+"'.");return this.capture(t),new Xv(rg(t),this.parseMatrixParams())},t.prototype.parseMatrixParams=function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t},t.prototype.parseParam=function(t){var e=ag(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var r=ag(this.remaining);r&&this.capture(n=r)}t[rg(e)]=rg(n)}},t.prototype.parseQueryParam=function(t){var e,n=(e=this.remaining.match(lg))?e[0]:"";if(n){this.capture(n);var r="";if(this.consumeOptional("=")){var i=function(t){var e=t.match(ug);return e?e[0]:""}(this.remaining);i&&this.capture(r=i)}var o=ig(n),s=ig(r);if(t.hasOwnProperty(o)){var a=t[o];Array.isArray(a)||(t[o]=a=[a]),a.push(s)}else t[o]=s}},t.prototype.parseParens=function(t){var e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=ag(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error("Cannot parse url '"+this.url+"'");var i=void 0;n.indexOf(":")>-1?(i=n.substr(0,n.indexOf(":")),this.capture(i),this.capture(":")):t&&(i=Tv);var o=this.parseChildren();e[i]=1===Object.keys(o).length?o[Tv]:new Gv([],o),this.consumeOptional("//")}return e},t.prototype.peekStartsWith=function(t){return this.remaining.startsWith(t)},t.prototype.consumeOptional=function(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)},t.prototype.capture=function(t){if(!this.consumeOptional(t))throw new Error('Expected "'+t+'".')},t}(),hg=function(t){this.segmentGroup=t||null},dg=function(t){this.urlTree=t};function pg(t){return new L(function(e){return e.error(new hg(t))})}function fg(t){return new L(function(e){return e.error(new dg(t))})}function mg(t){return new L(function(e){return e.error(new Error("Only absolute redirects can have named outlets. redirectTo: '"+t+"'"))})}var yg=function(){function t(t,e,n,r,i){this.configLoader=e,this.urlSerializer=n,this.urlTree=r,this.config=i,this.allowRedirects=!0,this.ngModule=t.get(on)}return t.prototype.apply=function(){var t=this;return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,Tv).pipe(nt(function(e){return t.createUrlTree(e,t.urlTree.queryParams,t.urlTree.fragment)})).pipe(oh(function(e){if(e instanceof dg)return t.allowRedirects=!1,t.match(e.urlTree);if(e instanceof hg)throw t.noMatchError(e);throw e}))},t.prototype.match=function(t){var e=this;return this.expandSegmentGroup(this.ngModule,this.config,t.root,Tv).pipe(nt(function(n){return e.createUrlTree(n,t.queryParams,t.fragment)})).pipe(oh(function(t){if(t instanceof hg)throw e.noMatchError(t);throw t}))},t.prototype.noMatchError=function(t){return new Error("Cannot match any routes. URL Segment: '"+t.segmentGroup+"'")},t.prototype.createUrlTree=function(t,e,n){var r,i=t.segments.length>0?new Gv([],((r={})[Tv]=t,r)):t;return new Wv(i,e,n)},t.prototype.expandSegmentGroup=function(t,e,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(nt(function(t){return new Gv([],t)})):this.expandSegment(t,n,e,n.segments,r,!0)},t.prototype.expandChildren=function(t,e,n){var r=this;return function(n,i){if(0===Object.keys(n).length)return Ah({});var o=[],s=[],a={};return Uv(n,function(n,i){var l,u,c=(l=i,u=n,r.expandSegmentGroup(t,e,u,l)).pipe(nt(function(t){return a[i]=t}));i===Tv?o.push(c):s.push(c)}),Ah.apply(null,o.concat(s)).pipe(Uh(),ev(),nt(function(){return a}))}(n.children)},t.prototype.expandSegment=function(t,e,n,r,i,o){var s=this;return Ah.apply(void 0,d(n)).pipe(nt(function(a){return s.expandSegmentAgainstRoute(t,e,n,a,r,i,o).pipe(oh(function(t){if(t instanceof hg)return Ah(null);throw t}))}),Uh(),ov(function(t){return!!t}),oh(function(t,n){if(t instanceof Wy||"EmptyError"===t.name){if(s.noLeftoversInUrl(e,r,i))return Ah(new Gv([],{}));throw new hg(e)}throw t}))},t.prototype.noLeftoversInUrl=function(t,e,n){return 0===e.length&&!t.children[n]},t.prototype.expandSegmentAgainstRoute=function(t,e,n,r,i,o,s){return _g(r)!==o?pg(e):void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,i):s&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,r,i,o):pg(e)},t.prototype.expandSegmentAgainstRouteUsingRedirect=function(t,e,n,r,i,o){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,o):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,i,o)},t.prototype.expandWildCardWithParamsAgainstRouteUsingRedirect=function(t,e,n,r){var i=this,o=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?fg(o):this.lineralizeSegments(n,o).pipe(at(function(n){var o=new Gv(n,{});return i.expandSegment(t,o,e,n,r,!1)}))},t.prototype.expandRegularSegmentAgainstRouteUsingRedirect=function(t,e,n,r,i,o){var s=this,a=vg(e,r,i),l=a.consumedSegments,u=a.lastChild,c=a.positionalParamSegments;if(!a.matched)return pg(e);var h=this.applyRedirectCommands(l,r.redirectTo,c);return r.redirectTo.startsWith("/")?fg(h):this.lineralizeSegments(r,h).pipe(at(function(r){return s.expandSegment(t,e,n,r.concat(i.slice(u)),o,!1)}))},t.prototype.matchSegmentAgainstRoute=function(t,e,n,r){var i=this;if("**"===n.path)return n.loadChildren?this.configLoader.load(t.injector,n).pipe(nt(function(t){return n._loadedConfig=t,new Gv(r,{})})):Ah(new Gv(r,{}));var o=vg(e,n,r),a=o.consumedSegments,l=o.lastChild;if(!o.matched)return pg(e);var u=r.slice(l);return this.getChildConfig(t,n).pipe(at(function(t){var n=t.module,r=t.routes,o=function(t,e,n,r){return n.length>0&&function(t,e,n){return r.some(function(n){return bg(t,e,n)&&_g(n)!==Tv})}(t,n)?{segmentGroup:gg(new Gv(e,function(t,e){var n,r,i={};i[Tv]=e;try{for(var o=c(t),s=o.next();!s.done;s=o.next()){var a=s.value;""===a.path&&_g(a)!==Tv&&(i[_g(a)]=new Gv([],{}))}}catch(t){n={error:t}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return i}(r,new Gv(n,t.children)))),slicedSegments:[]}:0===n.length&&function(t,e,n){return r.some(function(n){return bg(t,e,n)})}(t,n)?{segmentGroup:gg(new Gv(t.segments,function(t,e,n,r){var i,o,a={};try{for(var l=c(n),u=l.next();!u.done;u=l.next()){var h=u.value;bg(t,e,h)&&!r[_g(h)]&&(a[_g(h)]=new Gv([],{}))}}catch(t){i={error:t}}finally{try{u&&!u.done&&(o=l.return)&&o.call(l)}finally{if(i)throw i.error}}return s({},r,a)}(t,n,r,t.children))),slicedSegments:n}:{segmentGroup:t,slicedSegments:n}}(e,a,u,r),l=o.segmentGroup,h=o.slicedSegments;return 0===h.length&&l.hasChildren()?i.expandChildren(n,r,l).pipe(nt(function(t){return new Gv(a,t)})):0===r.length&&0===h.length?Ah(new Gv(a,{})):i.expandSegment(n,l,r,h,Tv,!0).pipe(nt(function(t){return new Gv(a.concat(t.segments),t.children)}))}))},t.prototype.getChildConfig=function(t,e){var n=this;return e.children?Ah(new Nv(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Ah(e._loadedConfig):function(t,e){var n=e.canLoad;return n&&0!==n.length?zv(st(n).pipe(nt(function(n){var r=t.get(n);return qv(r.canLoad?r.canLoad(e):r(e))}))):Ah(!0)}(t.injector,e).pipe(at(function(r){return r?n.configLoader.load(t.injector,e).pipe(nt(function(t){return e._loadedConfig=t,t})):function(t){return new L(function(e){return e.error(((n=Error("NavigationCancelingError: Cannot load children because the guard of the route \"path: '"+t.path+"'\" returned false")).ngNavigationCancelingError=!0,n));var n})}(e)})):Ah(new Nv([],t))},t.prototype.lineralizeSegments=function(t,e){for(var n=[],r=e.root;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return Ah(n);if(r.numberOfChildren>1||!r.children[Tv])return mg(t.redirectTo);r=r.children[Tv]}},t.prototype.applyRedirectCommands=function(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)},t.prototype.applyRedirectCreatreUrlTree=function(t,e,n,r){var i=this.createSegmentGroup(t,e.root,n,r);return new Wv(i,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)},t.prototype.createQueryParams=function(t,e){var n={};return Uv(t,function(t,r){if("string"==typeof t&&t.startsWith(":")){var i=t.substring(1);n[r]=e[i]}else n[r]=t}),n},t.prototype.createSegmentGroup=function(t,e,n,r){var i=this,o=this.createSegments(t,e.segments,n,r),s={};return Uv(e.children,function(e,o){s[o]=i.createSegmentGroup(t,e,n,r)}),new Gv(o,s)},t.prototype.createSegments=function(t,e,n,r){var i=this;return e.map(function(e){return e.path.startsWith(":")?i.findPosParam(t,e,r):i.findOrReturn(e,n)})},t.prototype.findPosParam=function(t,e,n){var r=n[e.path.substring(1)];if(!r)throw new Error("Cannot redirect to '"+t+"'. Cannot find '"+e.path+"'.");return r},t.prototype.findOrReturn=function(t,e){var n,r,i=0;try{for(var o=c(e),s=o.next();!s.done;s=o.next()){var a=s.value;if(a.path===t.path)return e.splice(i),a;i++}}catch(t){n={error:t}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return t},t}();function vg(t,e,n){if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var r=(e.matcher||Av)(n,t,e);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function gg(t){if(1===t.numberOfChildren&&t.children[Tv]){var e=t.children[Tv];return new Gv(t.segments.concat(e.segments),e.children)}return t}function bg(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function _g(t){return t.outlet||Tv}var wg=function(){function t(t){this._root=t}return Object.defineProperty(t.prototype,"root",{get:function(){return this._root.value},enumerable:!0,configurable:!0}),t.prototype.parent=function(t){var e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null},t.prototype.children=function(t){var e=Sg(t,this._root);return e?e.children.map(function(t){return t.value}):[]},t.prototype.firstChild=function(t){var e=Sg(t,this._root);return e&&e.children.length>0?e.children[0].value:null},t.prototype.siblings=function(t){var e=Eg(t,this._root);return e.length<2?[]:e[e.length-2].children.map(function(t){return t.value}).filter(function(e){return e!==t})},t.prototype.pathFromRoot=function(t){return Eg(t,this._root).map(function(t){return t.value})},t}();function Sg(t,e){var n,r;if(t===e.value)return e;try{for(var i=c(e.children),o=i.next();!o.done;o=i.next()){var s=Sg(t,o.value);if(s)return s}}catch(t){n={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return null}function Eg(t,e){var n,r;if(t===e.value)return[e];try{for(var i=c(e.children),o=i.next();!o.done;o=i.next()){var s=Eg(t,o.value);if(s.length)return s.unshift(e),s}}catch(t){n={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return[]}var Cg=function(){function t(t,e){this.value=t,this.children=e}return t.prototype.toString=function(){return"TreeNode("+this.value+")"},t}();function xg(t){var e={};return t&&t.children.forEach(function(t){return e[t.value.outlet]=t}),e}var kg=function(t){function e(e,n){var r=t.call(this,e)||this;return r.snapshot=n,Ag(r,e),r}return o(e,t),e.prototype.toString=function(){return this.snapshot.toString()},e}(wg);function Og(t,e){var n=function(t,e){var n=new Pg([],{},{},"",{},Tv,e,null,t.root,-1,{});return new Rg("",new Cg(n,[]))}(t,e),r=new Gy([new Xv("",{})]),i=new Gy({}),o=new Gy({}),s=new Gy({}),a=new Gy(""),l=new Ig(r,i,s,a,o,Tv,e,n.root);return l.snapshot=n.root,new kg(new Cg(l,[]),n)}var Ig=function(){function t(t,e,n,r,i,o,s,a){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=i,this.outlet=o,this.component=s,this._futureSnapshot=a}return Object.defineProperty(t.prototype,"routeConfig",{get:function(){return this._futureSnapshot.routeConfig},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=this.params.pipe(nt(function(t){return Rv(t)}))),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(nt(function(t){return Rv(t)}))),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.snapshot?this.snapshot.toString():"Future("+this._futureSnapshot+")"},t}();function Tg(t,e){void 0===e&&(e="emptyOnly");var n=t.pathFromRoot,r=0;if("always"!==e)for(r=n.length-1;r>=1;){var i=n[r],o=n[r-1];if(i.routeConfig&&""===i.routeConfig.path)r--;else{if(o.component)break;r--}}return function(t){return t.reduce(function(t,e){return{params:s({},t.params,e.params),data:s({},t.data,e.data),resolve:s({},t.resolve,e._resolvedData)}},{params:{},data:{},resolve:{}})}(n.slice(r))}var Pg=function(){function t(t,e,n,r,i,o,s,a,l,u,c){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=i,this.outlet=o,this.component=s,this.routeConfig=a,this._urlSegment=l,this._lastPathIndex=u,this._resolve=c}return Object.defineProperty(t.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=Rv(this.params)),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=Rv(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return"Route(url:'"+this.url.map(function(t){return t.toString()}).join("/")+"', path:'"+(this.routeConfig?this.routeConfig.path:"")+"')"},t}(),Rg=function(t){function e(e,n){var r=t.call(this,n)||this;return r.url=e,Ag(r,n),r}return o(e,t),e.prototype.toString=function(){return Ng(this._root)},e}(wg);function Ag(t,e){e.value._routerState=t,e.children.forEach(function(e){return Ag(t,e)})}function Ng(t){var e=t.children.length>0?" { "+t.children.map(Ng).join(", ")+" } ":"";return""+t.value+e}function Dg(t){if(t.snapshot){var e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,Fv(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),Fv(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(var n=0;n0&&Lg(n[0]))throw new Error("Root segment cannot have matrix parameters");var r=n.find(function(t){return"object"==typeof t&&null!=t&&t.outlets});if(r&&r!==Bv(n))throw new Error("{outlets:{}} has to be the last command")}return t.prototype.toRoot=function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]},t}(),jg=function(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n};function Bg(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets[Tv]:""+t}function Ug(t,e,n){if(t||(t=new Gv([],{})),0===t.segments.length&&t.hasChildren())return zg(t,e,n);var r=function(t,e,n){for(var r=0,i=e,o={match:!1,pathIndex:0,commandIndex:0};i=n.length)return o;var s=t.segments[i],a=Bg(n[r]),l=r0&&void 0===a)break;if(a&&l&&"object"==typeof l&&void 0===l.outlets){if(!Gg(a,l,s))return o;r+=2}else{if(!Gg(a,{},s))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}(t,e,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndex0?Bv(n).parameters:{};i=new Pg(n,l,Object.freeze(s({},this.urlTree.queryParams)),this.urlTree.fragment,rb(t),r,t.component,t,Jg(e),$g(e)+n.length,ib(t))}else{var u=function(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new Yg;return{consumedSegments:[],lastChild:0,parameters:{}}}var r=(e.matcher||Av)(n,t,e);if(!r)throw new Yg;var i={};Uv(r.posParams,function(t,e){i[e]=t.path});var o=r.consumed.length>0?s({},i,r.consumed[r.consumed.length-1].parameters):i;return{consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:o}}(e,t,n);o=u.consumedSegments,a=n.slice(u.lastChild),i=new Pg(o,u.parameters,Object.freeze(s({},this.urlTree.queryParams)),this.urlTree.fragment,rb(t),r,t.component,t,Jg(e),$g(e)+o.length,ib(t))}var c=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),h=tb(e,o,a,c,this.relativeLinkResolution),d=h.segmentGroup,p=h.slicedSegments;if(0===p.length&&d.hasChildren()){var f=this.processChildren(c,d);return[new Cg(i,f)]}if(0===c.length&&0===p.length)return[new Cg(i,[])];var m=this.processSegment(c,d,p,Tv);return[new Cg(i,m)]},t}();function Jg(t){for(var e=t;e._sourceSegment;)e=e._sourceSegment;return e}function $g(t){for(var e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;e._sourceSegment;)n+=(e=e._sourceSegment)._segmentIndexShift?e._segmentIndexShift:0;return n-1}function tb(t,e,n,r,i){if(n.length>0&&function(t,e,n){return r.some(function(n){return eb(t,e,n)&&nb(n)!==Tv})}(t,n)){var o=new Gv(e,function(t,e,n,r){var i,o,s={};s[Tv]=r,r._sourceSegment=t,r._segmentIndexShift=e.length;try{for(var a=c(n),l=a.next();!l.done;l=a.next()){var u=l.value;if(""===u.path&&nb(u)!==Tv){var h=new Gv([],{});h._sourceSegment=t,h._segmentIndexShift=e.length,s[nb(u)]=h}}}catch(t){i={error:t}}finally{try{l&&!l.done&&(o=a.return)&&o.call(a)}finally{if(i)throw i.error}}return s}(t,e,r,new Gv(n,t.children)));return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return r.some(function(n){return eb(t,e,n)})}(t,n)){var a=new Gv(t.segments,function(t,e,n,r,i,o){var a,l,u={};try{for(var h=c(r),d=h.next();!d.done;d=h.next()){var p=d.value;if(eb(t,n,p)&&!i[nb(p)]){var f=new Gv([],{});f._sourceSegment=t,f._segmentIndexShift="legacy"===o?t.segments.length:e.length,u[nb(p)]=f}}}catch(t){a={error:t}}finally{try{d&&!d.done&&(l=h.return)&&l.call(h)}finally{if(a)throw a.error}}return s({},i,u)}(t,e,n,r,t.children,i));return a._sourceSegment=t,a._segmentIndexShift=e.length,{segmentGroup:a,slicedSegments:n}}var l=new Gv(t.segments,t.children);return l._sourceSegment=t,l._segmentIndexShift=e.length,{segmentGroup:l,slicedSegments:n}}function eb(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function nb(t){return t.outlet||Tv}function rb(t){return t.data||{}}function ib(t){return t.resolve||{}}var ob=function(){},sb=function(){function t(){}return t.prototype.shouldDetach=function(t){return!1},t.prototype.store=function(t,e){},t.prototype.shouldAttach=function(t){return!1},t.prototype.retrieve=function(t){return null},t.prototype.shouldReuseRoute=function(t,e){return t.routeConfig===e.routeConfig},t}(),ab=new Ct("ROUTES"),lb=function(){function t(t,e,n,r){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=r}return t.prototype.load=function(t,e){var n=this;return this.onLoadStartListener&&this.onLoadStartListener(e),this.loadModuleFactory(e.loadChildren).pipe(nt(function(r){n.onLoadEndListener&&n.onLoadEndListener(e);var i=r.create(t);return new Nv(jv(i.injector.get(ab)).map(Vv),i)}))},t.prototype.loadModuleFactory=function(t){var e=this;return"string"==typeof t?st(this.loader.load(t)):qv(t()).pipe(at(function(t){return t instanceof sn?Ah(t):st(e.compiler.compileModuleAsync(t))}))},t}(),ub=function(){},cb=function(){function t(){}return t.prototype.shouldProcessUrl=function(t){return!0},t.prototype.extract=function(t){return t},t.prototype.merge=function(t,e){return t},t}();function hb(t){throw t}function db(t,e,n){return e.parse("/")}function pb(t,e){return Ah(null)}var fb=function(){function t(t,e,n,r,i,o,s,a){var l=this;this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=r,this.config=a,this.navigations=new Gy(null),this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new z,this.errorHandler=hb,this.malformedUriErrorHandler=db,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:pb,afterPreactivation:pb},this.urlHandlingStrategy=new cb,this.routeReuseStrategy=new sb,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=i.get(on),this.console=i.get(He);var u=i.get(dn);this.isNgZoneEnabled=u instanceof dn,this.resetConfig(a),this.currentUrlTree=new Wv(new Gv([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.configLoader=new lb(o,s,function(t){return l.triggerEvent(new wv(t))},function(t){return l.triggerEvent(new Sv(t))}),this.routerState=Og(this.currentUrlTree,this.rootComponentType),this.processNavigations()}return t.prototype.resetRootComponentType=function(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType},t.prototype.initialNavigation=function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})},t.prototype.setUpLocationChangeListener=function(){var t=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(e){var n=t.parseUrl(e.url),r="popstate"===e.type?"popstate":"hashchange",i=e.state&&e.state.navigationId?{navigationId:e.state.navigationId}:null;setTimeout(function(){t.scheduleNavigation(n,r,i,{replaceUrl:!0})},0)}))},Object.defineProperty(t.prototype,"url",{get:function(){return this.serializeUrl(this.currentUrlTree)},enumerable:!0,configurable:!0}),t.prototype.triggerEvent=function(t){this.events.next(t)},t.prototype.resetConfig=function(t){Dv(t),this.config=t.map(Vv),this.navigated=!1,this.lastSuccessfulId=-1},t.prototype.ngOnDestroy=function(){this.dispose()},t.prototype.dispose=function(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)},t.prototype.createUrlTree=function(t,e){void 0===e&&(e={});var n=e.relativeTo,r=e.queryParams,i=e.fragment,o=e.preserveQueryParams,a=e.queryParamsHandling,l=e.preserveFragment;kn()&&o&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");var u=n||this.routerState.root,c=l?this.currentUrlTree.fragment:i,h=null;if(a)switch(a){case"merge":h=s({},this.currentUrlTree.queryParams,r);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=r||null}else h=o?this.currentUrlTree.queryParams:r||null;return null!==h&&(h=this.removeEmptyProps(h)),function(t,e,n,r,i){if(0===n.length)return Vg(e.root,e.root,e,r,i);var o=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new Fg(!0,0,t);var e=0,n=!1,r=t.reduce(function(t,r,i){if("object"==typeof r&&null!=r){if(r.outlets){var o={};return Uv(r.outlets,function(t,e){o[e]="string"==typeof t?t.split("/"):t}),d(t,[{outlets:o}])}if(r.segmentPath)return d(t,[r.segmentPath])}return"string"!=typeof r?d(t,[r]):0===i?(r.split("/").forEach(function(r,i){0==i&&"."===r||(0==i&&""===r?n=!0:".."===r?e++:""!=r&&t.push(r))}),t):d(t,[r])},[]);return new Fg(n,e,r)}(n);if(o.toRoot())return Vg(e.root,new Gv([],{}),e,r,i);var s=function(t,n,r){if(t.isAbsolute)return new jg(e.root,!0,0);if(-1===r.snapshot._lastPathIndex)return new jg(r.snapshot._urlSegment,!0,0);var i=Lg(t.commands[0])?0:1;return function(e,n,o){for(var s=r.snapshot._urlSegment,a=r.snapshot._lastPathIndex+i,l=t.numberOfDoubleDots;l>a;){if(l-=a,!(s=s.parent))throw new Error("Invalid number of '../'");a=s.segments.length}return new jg(s,!1,a-l)}()}(o,0,t),a=s.processChildren?zg(s.segmentGroup,s.index,o.commands):Ug(s.segmentGroup,s.index,o.commands);return Vg(s.segmentGroup,a,e,r,i)}(u,this.currentUrlTree,t,h,c)},t.prototype.navigateByUrl=function(t,e){void 0===e&&(e={skipLocationChange:!1}),kn()&&this.isNgZoneEnabled&&!dn.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");var n=t instanceof Wv?t:this.parseUrl(t),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,e)},t.prototype.navigate=function(t,e){return void 0===e&&(e={skipLocationChange:!1}),function(t){for(var e=0;e0&&this._control.errorState?"error":"hint"},e.prototype._animateAndLockLabel=function(){var t=this;this._hasFloatingLabel()&&this._canLabelFloat&&(this._animationsEnabled&&(this._showAlwaysAnimate=!0,od(this._label.nativeElement,"transitionend").pipe(Fh(1)).subscribe(function(){t._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())},e.prototype._validatePlaceholders=function(){if(this._control.placeholder&&this._placeholderChild)throw Error("Placeholder attribute and child element were both specified.")},e.prototype._processHints=function(){this._validateHints(),this._syncDescribedByIds()},e.prototype._validateHints=function(){var t,e,n=this;this._hintChildren&&this._hintChildren.forEach(function(r){if("start"===r.align){if(t||n.hintLabel)throw Xb("start");t=r}else if("end"===r.align){if(e)throw Xb("end");e=r}})},e.prototype._syncDescribedByIds=function(){if(this._control){var t=[];if("hint"===this._getDisplayedMessages()){var e=this._hintChildren?this._hintChildren.find(function(t){return"start"===t.align}):null,n=this._hintChildren?this._hintChildren.find(function(t){return"end"===t.align}):null;e?t.push(e.id):this._hintLabel&&t.push(this._hintLabelId),n&&t.push(n.id)}else this._errorChildren&&(t=this._errorChildren.map(function(t){return t.id}));this._control.setDescribedByIds(t)}},e.prototype._validateControlChild=function(){if(!this._control)throw Error("mat-form-field must contain a MatFormFieldControl.")},e.prototype.updateOutlineGap=function(){var t=this._label?this._label.nativeElement:null;if("outline"===this.appearance&&t&&t.children.length&&t.textContent.trim()&&(!this._platform||this._platform.isBrowser))if(document.documentElement.contains(this._elementRef.nativeElement)){var e=0,n=0,r=this._connectionContainerRef.nativeElement.querySelectorAll(".mat-form-field-outline-start"),i=this._connectionContainerRef.nativeElement.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){for(var o=this._getStartEnd(this._connectionContainerRef.nativeElement.getBoundingClientRect()),s=this._getStartEnd(t.children[0].getBoundingClientRect()),a=0,l=0,u=t.children;l0?.75*a+10:0}for(var c=0;c enter",animation:[{type:6,styles:{opacity:0,transform:"translateY(-100%)"},offset:null},{type:4,styles:null,timings:"300ms cubic-bezier(0.55, 0, 0.55, 0.2)"}],options:null}],options:{}}]}});function i_(t){return ts(0,[(t()(),Fi(0,0,null,null,8,null,null,null,null,null,null,null)),(t()(),Fi(1,0,null,null,3,"div",[["class","mat-form-field-outline"]],null,null,null,null,null)),(t()(),Fi(2,0,null,null,0,"div",[["class","mat-form-field-outline-start"]],null,null,null,null,null)),(t()(),Fi(3,0,null,null,0,"div",[["class","mat-form-field-outline-gap"]],null,null,null,null,null)),(t()(),Fi(4,0,null,null,0,"div",[["class","mat-form-field-outline-end"]],null,null,null,null,null)),(t()(),Fi(5,0,null,null,3,"div",[["class","mat-form-field-outline mat-form-field-outline-thick"]],null,null,null,null,null)),(t()(),Fi(6,0,null,null,0,"div",[["class","mat-form-field-outline-start"]],null,null,null,null,null)),(t()(),Fi(7,0,null,null,0,"div",[["class","mat-form-field-outline-gap"]],null,null,null,null,null)),(t()(),Fi(8,0,null,null,0,"div",[["class","mat-form-field-outline-end"]],null,null,null,null,null))],null,null)}function o_(t){return ts(0,[(t()(),Fi(0,0,null,null,1,"div",[["class","mat-form-field-prefix"]],null,null,null,null,null)),Qo(null,0)],null,null)}function s_(t){return ts(0,[(t()(),Fi(0,0,null,null,2,null,null,null,null,null,null,null)),Qo(null,2),(t()(),Zo(2,null,["",""]))],null,function(t,e){t(e,2,0,e.component._control.placeholder)})}function a_(t){return ts(0,[Qo(null,3),(t()(),Vi(0,null,null,0))],null,null)}function l_(t){return ts(0,[(t()(),Fi(0,0,null,null,1,"span",[["aria-hidden","true"],["class","mat-placeholder-required mat-form-field-required-marker"]],null,null,null,null,null)),(t()(),Zo(-1,null,["\xa0*"]))],null,null)}function u_(t){return ts(0,[(t()(),Fi(0,0,[[4,0],["label",1]],null,8,"label",[["class","mat-form-field-label"]],[[8,"id",0],[1,"for",0],[1,"aria-owns",0],[2,"mat-empty",null],[2,"mat-form-field-empty",null],[2,"mat-accent",null],[2,"mat-warn",null]],[[null,"cdkObserveContent"]],function(t,e,n){var r=!0;return"cdkObserveContent"===e&&(r=!1!==t.component.updateOutlineGap()&&r),r},null,null)),Oo(1,16384,null,0,su,[],{ngSwitch:[0,"ngSwitch"]},null),Oo(2,1196032,null,0,e_,[t_,Vn,dn],null,{event:"cdkObserveContent"}),(t()(),Vi(16777216,null,null,1,null,s_)),Oo(4,278528,null,0,au,[Wn,Hn,su],{ngSwitchCase:[0,"ngSwitchCase"]},null),(t()(),Vi(16777216,null,null,1,null,a_)),Oo(6,278528,null,0,au,[Wn,Hn,su],{ngSwitchCase:[0,"ngSwitchCase"]},null),(t()(),Vi(16777216,null,null,1,null,l_)),Oo(8,16384,null,0,nu,[Wn,Hn],{ngIf:[0,"ngIf"]},null)],function(t,e){var n=e.component;t(e,1,0,n._hasLabel()),t(e,4,0,!1),t(e,6,0,!0),t(e,8,0,!n.hideRequiredMarker&&n._control.required&&!n._control.disabled)},function(t,e){var n=e.component;t(e,0,0,n._labelId,n._control.id,n._control.id,n._control.empty&&!n._shouldAlwaysFloat,n._control.empty&&!n._shouldAlwaysFloat,"accent"==n.color,"warn"==n.color)})}function c_(t){return ts(0,[(t()(),Fi(0,0,null,null,1,"div",[["class","mat-form-field-suffix"]],null,null,null,null,null)),Qo(null,4)],null,null)}function h_(t){return ts(0,[(t()(),Fi(0,0,[[1,0],["underline",1]],null,1,"div",[["class","mat-form-field-underline"]],null,null,null,null,null)),(t()(),Fi(1,0,null,null,0,"span",[["class","mat-form-field-ripple"]],[[2,"mat-accent",null],[2,"mat-warn",null]],null,null,null,null))],null,function(t,e){var n=e.component;t(e,1,0,"accent"==n.color,"warn"==n.color)})}function d_(t){return ts(0,[(t()(),Fi(0,0,null,null,1,"div",[],[[24,"@transitionMessages",0]],null,null,null,null)),Qo(null,5)],null,function(t,e){t(e,0,0,e.component._subscriptAnimationState)})}function p_(t){return ts(0,[(t()(),Fi(0,0,null,null,1,"div",[["class","mat-hint"]],[[8,"id",0]],null,null,null,null)),(t()(),Zo(1,null,["",""]))],null,function(t,e){var n=e.component;t(e,0,0,n._hintLabelId),t(e,1,0,n.hintLabel)})}function f_(t){return ts(0,[(t()(),Fi(0,0,null,null,5,"div",[["class","mat-form-field-hint-wrapper"]],[[24,"@transitionMessages",0]],null,null,null,null)),(t()(),Vi(16777216,null,null,1,null,p_)),Oo(2,16384,null,0,nu,[Wn,Hn],{ngIf:[0,"ngIf"]},null),Qo(null,6),(t()(),Fi(4,0,null,null,0,"div",[["class","mat-form-field-hint-spacer"]],null,null,null,null,null)),Qo(null,7)],function(t,e){t(e,2,0,e.component.hintLabel)},function(t,e){t(e,0,0,e.component._subscriptAnimationState)})}function m_(t){return ts(2,[qo(671088640,1,{underlineRef:0}),qo(402653184,2,{_connectionContainerRef:0}),qo(402653184,3,{_inputContainerRef:0}),qo(671088640,4,{_label:0}),(t()(),Fi(4,0,null,null,20,"div",[["class","mat-form-field-wrapper"]],null,null,null,null,null)),(t()(),Fi(5,0,[[2,0],["connectionContainer",1]],null,11,"div",[["class","mat-form-field-flex"]],null,[[null,"click"]],function(t,e,n){var r=!0,i=t.component;return"click"===e&&(r=!1!==(i._control.onContainerClick&&i._control.onContainerClick(n))&&r),r},null,null)),(t()(),Vi(16777216,null,null,1,null,i_)),Oo(7,16384,null,0,nu,[Wn,Hn],{ngIf:[0,"ngIf"]},null),(t()(),Vi(16777216,null,null,1,null,o_)),Oo(9,16384,null,0,nu,[Wn,Hn],{ngIf:[0,"ngIf"]},null),(t()(),Fi(10,0,[[3,0],["inputContainer",1]],null,4,"div",[["class","mat-form-field-infix"]],null,null,null,null,null)),Qo(null,1),(t()(),Fi(12,0,null,null,2,"span",[["class","mat-form-field-label-wrapper"]],null,null,null,null,null)),(t()(),Vi(16777216,null,null,1,null,u_)),Oo(14,16384,null,0,nu,[Wn,Hn],{ngIf:[0,"ngIf"]},null),(t()(),Vi(16777216,null,null,1,null,c_)),Oo(16,16384,null,0,nu,[Wn,Hn],{ngIf:[0,"ngIf"]},null),(t()(),Vi(16777216,null,null,1,null,h_)),Oo(18,16384,null,0,nu,[Wn,Hn],{ngIf:[0,"ngIf"]},null),(t()(),Fi(19,0,null,null,5,"div",[["class","mat-form-field-subscript-wrapper"]],null,null,null,null,null)),Oo(20,16384,null,0,su,[],{ngSwitch:[0,"ngSwitch"]},null),(t()(),Vi(16777216,null,null,1,null,d_)),Oo(22,278528,null,0,au,[Wn,Hn,su],{ngSwitchCase:[0,"ngSwitchCase"]},null),(t()(),Vi(16777216,null,null,1,null,f_)),Oo(24,278528,null,0,au,[Wn,Hn,su],{ngSwitchCase:[0,"ngSwitchCase"]},null)],function(t,e){var n=e.component;t(e,7,0,"outline"==n.appearance),t(e,9,0,n._prefixChildren.length),t(e,14,0,n._hasFloatingLabel()),t(e,16,0,n._suffixChildren.length),t(e,18,0,"outline"!=n.appearance),t(e,20,0,n._getDisplayedMessages()),t(e,22,0,"error"),t(e,24,0,"hint")},null)}function y_(){for(var t,e=[],n=0;nt?{max:{max:t,actual:e.value}}:null}},t.required=function(t){return __(t.value)?{required:!0}:null},t.requiredTrue=function(t){return!0===t.value?null:{required:!0}},t.email=function(t){return __(t.value)?null:E_.test(t.value)?null:{email:!0}},t.minLength=function(t){return function(e){if(__(e.value))return null;var n=e.value?e.value.length:0;return nt?{maxlength:{requiredLength:t,actualLength:n}}:null}},t.pattern=function(e){return e?("string"==typeof e?(r="","^"!==e.charAt(0)&&(r+="^"),r+=e,"$"!==e.charAt(e.length-1)&&(r+="$"),n=new RegExp(r)):(r=e.toString(),n=e),function(t){if(__(t.value))return null;var e=t.value;return n.test(e)?null:{pattern:{requiredPattern:r,actualValue:e}}}):t.nullValidator;var n,r},t.nullValidator=function(t){return null},t.compose=function(t){if(!t)return null;var e=t.filter(x_);return 0==e.length?null:function(t){return O_(function(t,n){return e.map(function(e){return e(t)})}(t))}},t.composeAsync=function(t){if(!t)return null;var e=t.filter(x_);return 0==e.length?null:function(t){return y_(function(t,n){return e.map(function(e){return e(t)})}(t).map(k_)).pipe(nt(O_))}},t}();function x_(t){return null!=t}function k_(t){var e=De(t)?st(t):t;if(!Me(e))throw new Error("Expected validator to return Promise or Observable.");return e}function O_(t){var e=t.reduce(function(t,e){return null!=e?s({},t,e):t},{});return 0===Object.keys(e).length?null:e}var I_=new Ct("NgValueAccessor"),T_=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"checked",t)},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t}(),P_=new Ct("CompositionEventMode"),R_=function(){function t(t,e,n){var r;this._renderer=t,this._elementRef=e,this._compositionMode=n,this.onChange=function(t){},this.onTouched=function(){},this._composing=!1,null==this._compositionMode&&(this._compositionMode=(r=vu()?vu().getUserAgent():"",!/android (\d+)/.test(r.toLowerCase())))}return t.prototype.writeValue=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._handleInput=function(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)},t.prototype._compositionStart=function(){this._composing=!0},t.prototype._compositionEnd=function(t){this._composing=!1,this._compositionMode&&this.onChange(t)},a([l(2,Ut()),l(2,Bt(P_))],t)}();function A_(t){return t.validate?function(e){return t.validate(e)}:t}function N_(t){return t.validate?function(e){return t.validate(e)}:t}var D_=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)},t.prototype.registerOnChange=function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t}();function M_(){throw new Error("unimplemented")}var L_=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._parent=null,e.name=null,e.valueAccessor=null,e._rawValidators=[],e._rawAsyncValidators=[],e}return o(e,t),Object.defineProperty(e.prototype,"validator",{get:function(){return M_()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return M_()},enumerable:!0,configurable:!0}),e}(g_),V_=function(){function t(){this._accessors=[]}return t.prototype.add=function(t,e){this._accessors.push([t,e])},t.prototype.remove=function(t){for(var e=this._accessors.length-1;e>=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)},t.prototype.select=function(t){var e=this;this._accessors.forEach(function(n){e._isSameGroup(n,t)&&n[1]!==t&&n[1].fireUncheck(t.value)})},t.prototype._isSameGroup=function(t,e){return!!t[0].control&&t[0]._parent===e._control._parent&&t[1].name===e.name},t}(),F_=function(){function t(t,e,n,r){this._renderer=t,this._elementRef=e,this._registry=n,this._injector=r,this.onChange=function(){},this.onTouched=function(){}}return t.prototype.ngOnInit=function(){this._control=this._injector.get(L_),this._checkName(),this._registry.add(this._control,this)},t.prototype.ngOnDestroy=function(){this._registry.remove(this)},t.prototype.writeValue=function(t){this._state=t===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)},t.prototype.registerOnChange=function(t){var e=this;this._fn=t,this.onChange=function(){t(e.value),e._registry.select(e)}},t.prototype.fireUncheck=function(t){this.writeValue(t)},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._checkName=function(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)},t.prototype._throwNameError=function(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: \n ')},t}(),j_=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(t))},t.prototype.registerOnChange=function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t}(),B_='\n

\n \n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });',U_='\n
\n
\n \n
\n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',z_='\n
\n
\n \n
\n
',q_=function(){function t(){}return t.controlParentException=function(){throw new Error("formControlName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+B_)},t.ngModelGroupException=function(){throw new Error('formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents\n that also have a "form" prefix: formGroupName, formArrayName, or formGroup.\n\n Option 1: Update the parent to be formGroupName (reactive form strategy)\n\n '+U_+"\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n "+z_)},t.missingFormException=function(){throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n "+B_)},t.groupParentException=function(){throw new Error("formGroupName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+U_)},t.arrayParentException=function(){throw new Error('formArrayName must be used with a parent formGroup directive. You\'ll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n \n
\n
\n
\n \n
\n
\n
\n\n In your class:\n\n this.cityArray = new FormArray([new FormControl(\'SF\')]);\n this.myGroup = new FormGroup({\n cities: this.cityArray\n });')},t.disabledAttrWarning=function(){console.warn("\n It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true\n when you set up this control in your component class, the disabled attribute will actually be set in the DOM for\n you. We recommend using this approach to avoid 'changed after checked' errors.\n \n Example: \n form = new FormGroup({\n first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),\n last: new FormControl('Drew', Validators.required)\n });\n ")},t.ngModelWarning=function(t){console.warn("\n It looks like you're using ngModel on the same form field as "+t+". \n Support for using the ngModel input property and ngModelChange event with \n reactive form directives has been deprecated in Angular v6 and will be removed \n in Angular v7.\n \n For more information on this, see our API docs here:\n https://angular.io/api/forms/"+("formControl"===t?"FormControlDirective":"FormControlName")+"#use-with-ngmodel\n ")},t}();function H_(t,e){return d(e.path,[t])}function W_(t,e){t||K_(e,"Cannot find control with"),e.valueAccessor||K_(e,"No value accessor for form control with"),t.validator=C_.compose([t.validator,e.validator]),t.asyncValidator=C_.composeAsync([t.asyncValidator,e.asyncValidator]),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(function(n){t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&G_(t,e)})}(t,e),function(t,e){t.registerOnChange(function(t,n){e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(function(){t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&G_(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),e.valueAccessor.setDisabledState&&t.registerOnDisabledChange(function(t){e.valueAccessor.setDisabledState(t)}),e._rawValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(function(){return t.updateValueAndValidity()})}),e._rawAsyncValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(function(){return t.updateValueAndValidity()})})}function G_(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function X_(t,e){null==t&&K_(e,"Cannot find control with"),t.validator=C_.compose([t.validator,e.validator]),t.asyncValidator=C_.composeAsync([t.asyncValidator,e.asyncValidator])}function Q_(t){return K_(t,"There is no FormControl instance attached to form control element with")}function K_(t,e){var n;throw n=t.path.length>1?"path: '"+t.path.join(" -> ")+"'":t.path[0]?"name: '"+t.path+"'":"unspecified name attribute",new Error(e+" "+n)}function Y_(t){return null!=t?C_.compose(t.map(A_)):null}function Z_(t){return null!=t?C_.composeAsync(t.map(N_)):null}var J_=[T_,j_,D_,function(){function t(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=function(t){},this.onTouched=function(){},this._compareWith=Lt}return Object.defineProperty(t.prototype,"compareWith",{set:function(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t},enumerable:!0,configurable:!0}),t.prototype.writeValue=function(t){this.value=t;var e=this._getOptionId(t);null==e&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=function(t,e){return null==t?""+e:(e&&"object"==typeof e&&(e="Object"),(t+": "+e).slice(0,50))}(e,t);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)},t.prototype.registerOnChange=function(t){var e=this;this.onChange=function(n){e.value=e._getOptionValue(n),t(e.value)}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._registerOption=function(){return(this._idCounter++).toString()},t.prototype._getOptionId=function(t){var e,n;try{for(var r=c(Array.from(this._optionMap.keys())),i=r.next();!i.done;i=r.next()){var o=i.value;if(this._compareWith(this._optionMap.get(o),t))return o}}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}return null},t.prototype._getOptionValue=function(t){var e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e):t},t}(),function(){function t(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=function(t){},this.onTouched=function(){},this._compareWith=Lt}return Object.defineProperty(t.prototype,"compareWith",{set:function(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t},enumerable:!0,configurable:!0}),t.prototype.writeValue=function(t){var e,n=this;if(this.value=t,Array.isArray(t)){var r=t.map(function(t){return n._getOptionId(t)});e=function(t,e){t._setSelected(r.indexOf(e.toString())>-1)}}else e=function(t,e){t._setSelected(!1)};this._optionMap.forEach(e)},t.prototype.registerOnChange=function(t){var e=this;this.onChange=function(n){var r=[];if(n.hasOwnProperty("selectedOptions"))for(var i=n.selectedOptions,o=0;o-1&&t.splice(n,1)}var ew=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormGroup(this)},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormGroup(this)},Object.defineProperty(e.prototype,"control",{get:function(){return this.formDirective.getFormGroup(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return H_(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return Y_(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return Z_(this._asyncValidators)},enumerable:!0,configurable:!0}),e.prototype._checkParentType=function(){},e}(b_),nw=function(){function t(t){this._cd=t}return Object.defineProperty(t.prototype,"ngClassUntouched",{get:function(){return!!this._cd.control&&this._cd.control.untouched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassTouched",{get:function(){return!!this._cd.control&&this._cd.control.touched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassPristine",{get:function(){return!!this._cd.control&&this._cd.control.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassDirty",{get:function(){return!!this._cd.control&&this._cd.control.dirty},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassValid",{get:function(){return!!this._cd.control&&this._cd.control.valid},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassInvalid",{get:function(){return!!this._cd.control&&this._cd.control.invalid},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassPending",{get:function(){return!!this._cd.control&&this._cd.control.pending},enumerable:!0,configurable:!0}),t}(),rw=function(t){function e(e){return t.call(this,e)||this}return o(e,t),a([l(0,zt())],e)}(nw),iw=function(t){function e(e){return t.call(this,e)||this}return o(e,t),a([l(0,zt())],e)}(nw);function ow(t){var e=aw(t)?t.validators:t;return Array.isArray(e)?Y_(e):e||null}function sw(t,e){var n=aw(e)?e.asyncValidators:t;return Array.isArray(n)?Z_(n):n||null}function aw(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}var lw=function(){function t(t,e){this.validator=t,this.asyncValidator=e,this._onCollectionChange=function(){},this.pristine=!0,this.touched=!1,this._onDisabledChange=[]}return Object.defineProperty(t.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valid",{get:function(){return"VALID"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"invalid",{get:function(){return"INVALID"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pending",{get:function(){return"PENDING"==this.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return"DISABLED"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enabled",{get:function(){return"DISABLED"!==this.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dirty",{get:function(){return!this.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"untouched",{get:function(){return!this.touched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"updateOn",{get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"},enumerable:!0,configurable:!0}),t.prototype.setValidators=function(t){this.validator=ow(t)},t.prototype.setAsyncValidators=function(t){this.asyncValidator=sw(t)},t.prototype.clearValidators=function(){this.validator=null},t.prototype.clearAsyncValidators=function(){this.asyncValidator=null},t.prototype.markAsTouched=function(t){void 0===t&&(t={}),this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)},t.prototype.markAsUntouched=function(t){void 0===t&&(t={}),this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(t){t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)},t.prototype.markAsDirty=function(t){void 0===t&&(t={}),this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)},t.prototype.markAsPristine=function(t){void 0===t&&(t={}),this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(t){t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)},t.prototype.markAsPending=function(t){void 0===t&&(t={}),this.status="PENDING",!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)},t.prototype.disable=function(t){void 0===t&&(t={}),this.status="DISABLED",this.errors=null,this._forEachChild(function(e){e.disable(s({},t,{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(t),this._onDisabledChange.forEach(function(t){return t(!0)})},t.prototype.enable=function(t){void 0===t&&(t={}),this.status="VALID",this._forEachChild(function(e){e.enable(s({},t,{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(t),this._onDisabledChange.forEach(function(t){return t(!1)})},t.prototype._updateAncestors=function(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),this._parent._updatePristine(),this._parent._updateTouched())},t.prototype.setParent=function(t){this._parent=t},t.prototype.updateValueAndValidity=function(t){void 0===t&&(t={}),this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)},t.prototype._updateTreeValidity=function(t){void 0===t&&(t={emitEvent:!0}),this._forEachChild(function(e){return e._updateTreeValidity(t)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})},t.prototype._setInitialStatus=function(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"},t.prototype._runValidator=function(){return this.validator?this.validator(this):null},t.prototype._runAsyncValidator=function(t){var e=this;if(this.asyncValidator){this.status="PENDING";var n=k_(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(function(n){return e.setErrors(n,{emitEvent:t})})}},t.prototype._cancelExistingSubscription=function(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()},t.prototype.setErrors=function(t,e){void 0===e&&(e={}),this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)},t.prototype.get=function(t){return function(t,e,n){return null==e?null:(e instanceof Array||(e=e.split(".")),e instanceof Array&&0===e.length?null:e.reduce(function(t,e){return t instanceof cw?t.controls.hasOwnProperty(e)?t.controls[e]:null:t instanceof hw&&t.at(e)||null},t))}(this,t)},t.prototype.getError=function(t,e){var n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null},t.prototype.hasError=function(t,e){return!!this.getError(t,e)},Object.defineProperty(t.prototype,"root",{get:function(){for(var t=this;t._parent;)t=t._parent;return t},enumerable:!0,configurable:!0}),t.prototype._updateControlsErrors=function(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)},t.prototype._initObservables=function(){this.valueChanges=new hn,this.statusChanges=new hn},t.prototype._calculateStatus=function(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"},t.prototype._anyControlsHaveStatus=function(t){return this._anyControls(function(e){return e.status===t})},t.prototype._anyControlsDirty=function(){return this._anyControls(function(t){return t.dirty})},t.prototype._anyControlsTouched=function(){return this._anyControls(function(t){return t.touched})},t.prototype._updatePristine=function(t){void 0===t&&(t={}),this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)},t.prototype._updateTouched=function(t){void 0===t&&(t={}),this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)},t.prototype._isBoxedValue=function(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t},t.prototype._registerOnCollectionChange=function(t){this._onCollectionChange=t},t.prototype._setUpdateStrategy=function(t){aw(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)},t}(),uw=function(t){function e(e,n,r){void 0===e&&(e=null);var i=t.call(this,ow(n),sw(r,n))||this;return i._onChange=[],i._applyFormState(e),i._setUpdateStrategy(n),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i._initObservables(),i}return o(e,t),e.prototype.setValue=function(t,e){var n=this;void 0===e&&(e={}),this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(function(t){return t(n.value,!1!==e.emitViewToModelChange)}),this.updateValueAndValidity(e)},e.prototype.patchValue=function(t,e){void 0===e&&(e={}),this.setValue(t,e)},e.prototype.reset=function(t,e){void 0===t&&(t=null),void 0===e&&(e={}),this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1},e.prototype._updateValue=function(){},e.prototype._anyControls=function(t){return!1},e.prototype._allControlsDisabled=function(){return this.disabled},e.prototype.registerOnChange=function(t){this._onChange.push(t)},e.prototype._clearChangeFns=function(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=function(){}},e.prototype.registerOnDisabledChange=function(t){this._onDisabledChange.push(t)},e.prototype._forEachChild=function(t){},e.prototype._syncPendingControls=function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))},e.prototype._applyFormState=function(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t},e}(lw),cw=function(t){function e(e,n,r){var i=t.call(this,ow(n),sw(r,n))||this;return i.controls=e,i._initObservables(),i._setUpdateStrategy(n),i._setUpControls(),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i}return o(e,t),e.prototype.registerControl=function(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)},e.prototype.addControl=function(t,e){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.removeControl=function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.setControl=function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.contains=function(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled},e.prototype.setValue=function(t,e){var n=this;void 0===e&&(e={}),this._checkAllValuesPresent(t),Object.keys(t).forEach(function(r){n._throwIfControlMissing(r),n.controls[r].setValue(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.patchValue=function(t,e){var n=this;void 0===e&&(e={}),Object.keys(t).forEach(function(r){n.controls[r]&&n.controls[r].patchValue(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.reset=function(t,e){void 0===t&&(t={}),void 0===e&&(e={}),this._forEachChild(function(n,r){n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e),this._updatePristine(e),this._updateTouched(e)},e.prototype.getRawValue=function(){return this._reduceChildren({},function(t,e,n){return t[n]=e instanceof uw?e.value:e.getRawValue(),t})},e.prototype._syncPendingControls=function(){var t=this._reduceChildren(!1,function(t,e){return!!e._syncPendingControls()||t});return t&&this.updateValueAndValidity({onlySelf:!0}),t},e.prototype._throwIfControlMissing=function(t){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[t])throw new Error("Cannot find form control with name: "+t+".")},e.prototype._forEachChild=function(t){var e=this;Object.keys(this.controls).forEach(function(n){return t(e.controls[n],n)})},e.prototype._setUpControls=function(){var t=this;this._forEachChild(function(e){e.setParent(t),e._registerOnCollectionChange(t._onCollectionChange)})},e.prototype._updateValue=function(){this.value=this._reduceValue()},e.prototype._anyControls=function(t){var e=this,n=!1;return this._forEachChild(function(r,i){n=n||e.contains(i)&&t(r)}),n},e.prototype._reduceValue=function(){var t=this;return this._reduceChildren({},function(e,n,r){return(n.enabled||t.disabled)&&(e[r]=n.value),e})},e.prototype._reduceChildren=function(t,e){var n=t;return this._forEachChild(function(t,r){n=e(n,t,r)}),n},e.prototype._allControlsDisabled=function(){var t,e;try{for(var n=c(Object.keys(this.controls)),r=n.next();!r.done;r=n.next())if(this.controls[r.value].enabled)return!1}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}return Object.keys(this.controls).length>0||this.disabled},e.prototype._checkAllValuesPresent=function(t){this._forEachChild(function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control with name: '"+n+"'.")})},e}(lw),hw=function(t){function e(e,n,r){var i=t.call(this,ow(n),sw(r,n))||this;return i.controls=e,i._initObservables(),i._setUpdateStrategy(n),i._setUpControls(),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i}return o(e,t),e.prototype.at=function(t){return this.controls[t]},e.prototype.push=function(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.insert=function(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity()},e.prototype.removeAt=function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),this.updateValueAndValidity()},e.prototype.setControl=function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()},Object.defineProperty(e.prototype,"length",{get:function(){return this.controls.length},enumerable:!0,configurable:!0}),e.prototype.setValue=function(t,e){var n=this;void 0===e&&(e={}),this._checkAllValuesPresent(t),t.forEach(function(t,r){n._throwIfControlMissing(r),n.at(r).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.patchValue=function(t,e){var n=this;void 0===e&&(e={}),t.forEach(function(t,r){n.at(r)&&n.at(r).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.reset=function(t,e){void 0===t&&(t=[]),void 0===e&&(e={}),this._forEachChild(function(n,r){n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e),this._updatePristine(e),this._updateTouched(e)},e.prototype.getRawValue=function(){return this.controls.map(function(t){return t instanceof uw?t.value:t.getRawValue()})},e.prototype._syncPendingControls=function(){var t=this.controls.reduce(function(t,e){return!!e._syncPendingControls()||t},!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t},e.prototype._throwIfControlMissing=function(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error("Cannot find form control at index "+t)},e.prototype._forEachChild=function(t){this.controls.forEach(function(e,n){t(e,n)})},e.prototype._updateValue=function(){var t=this;this.value=this.controls.filter(function(e){return e.enabled||t.disabled}).map(function(t){return t.value})},e.prototype._anyControls=function(t){return this.controls.some(function(e){return e.enabled&&t(e)})},e.prototype._setUpControls=function(){var t=this;this._forEachChild(function(e){return t._registerControl(e)})},e.prototype._checkAllValuesPresent=function(t){this._forEachChild(function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control at index: "+n+".")})},e.prototype._allControlsDisabled=function(){var t,e;try{for(var n=c(this.controls),r=n.next();!r.done;r=n.next())if(r.value.enabled)return!1}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}return this.controls.length>0||this.disabled},e.prototype._registerControl=function(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)},e}(lw),dw=Promise.resolve(null),pw=function(t){function e(e,n){var r=t.call(this)||this;return r.submitted=!1,r._directives=[],r.ngSubmit=new hn,r.form=new cw({},Y_(e),Z_(n)),r}return o(e,t),e.prototype.ngAfterViewInit=function(){this._setUpdateStrategy()},Object.defineProperty(e.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"controls",{get:function(){return this.form.controls},enumerable:!0,configurable:!0}),e.prototype.addControl=function(t){var e=this;dw.then(function(){var n=e._findContainer(t.path);t.control=n.registerControl(t.name,t.control),W_(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),e._directives.push(t)})},e.prototype.getControl=function(t){return this.form.get(t.path)},e.prototype.removeControl=function(t){var e=this;dw.then(function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name),tw(e._directives,t)})},e.prototype.addFormGroup=function(t){var e=this;dw.then(function(){var n=e._findContainer(t.path),r=new cw({});X_(r,t),n.registerControl(t.name,r),r.updateValueAndValidity({emitEvent:!1})})},e.prototype.removeFormGroup=function(t){var e=this;dw.then(function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name)})},e.prototype.getFormGroup=function(t){return this.form.get(t.path)},e.prototype.updateModel=function(t,e){var n=this;dw.then(function(){n.form.get(t.path).setValue(e)})},e.prototype.setValue=function(t){this.control.setValue(t)},e.prototype.onSubmit=function(t){return this.submitted=!0,$_(this.form,this._directives),this.ngSubmit.emit(t),!1},e.prototype.onReset=function(){this.resetForm()},e.prototype.resetForm=function(t){void 0===t&&(t=void 0),this.form.reset(t),this.submitted=!1},e.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)},e.prototype._findContainer=function(t){return t.pop(),t.length?this.form.get(t):this.form},a([l(0,Ut()),l(0,zt()),l(0,Bt(w_)),l(1,Ut()),l(1,zt()),l(1,Bt(S_))],e)}(b_),fw=function(){function t(){}return t.modelParentException=function(){throw new Error('\n ngModel cannot be used to register form controls with a parent formGroup directive. Try using\n formGroup\'s partner directive "formControlName" instead. Example:\n\n '+B_+'\n\n Or, if you\'d like to avoid registering this form control, indicate that it\'s standalone in ngModelOptions:\n\n Example:\n\n \n
\n \n \n
\n ')},t.formGroupNameException=function(){throw new Error("\n ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n "+U_+"\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n "+z_)},t.missingNameException=function(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n control must be defined as \'standalone\' in ngModelOptions.\n\n Example 1: \n Example 2: ')},t.modelGroupParentException=function(){throw new Error("\n ngModelGroup cannot be used with a parent formGroup directive.\n\n Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n "+U_+"\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n "+z_)},t}(),mw=function(t){function e(e,n,r){var i=t.call(this)||this;return i._parent=e,i._validators=n,i._asyncValidators=r,i}var n;return o(e,t),n=e,e.prototype._checkParentType=function(){this._parent instanceof n||this._parent instanceof pw||fw.modelGroupParentException()},n=a([l(0,Ht()),l(0,qt()),l(1,Ut()),l(1,zt()),l(1,Bt(w_)),l(2,Ut()),l(2,zt()),l(2,Bt(S_))],e)}(ew),yw=Promise.resolve(null),vw=function(t){function e(e,n,r,i){var o=t.call(this)||this;return o.control=new uw,o._registered=!1,o.update=new hn,o._parent=e,o._rawValidators=n||[],o._rawAsyncValidators=r||[],o.valueAccessor=function(t,e){if(!e)return null;Array.isArray(e)||K_(t,"Value accessor was not provided as an array for form control with");var n=void 0,r=void 0,i=void 0;return e.forEach(function(e){var o;e.constructor===R_?n=e:(o=e,J_.some(function(t){return o.constructor===t})?(r&&K_(t,"More than one built-in value accessor matches form control with"),r=e):(i&&K_(t,"More than one custom value accessor matches form control with"),i=e))}),i||r||n||(K_(t,"No valid value accessor for form control with"),null)}(o,i),o}return o(e,t),e.prototype.ngOnChanges=function(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),function(t,e){if(!t.hasOwnProperty("model"))return!1;var n=t.model;return!!n.isFirstChange()||!Lt(e,n.currentValue)}(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},Object.defineProperty(e.prototype,"path",{get:function(){return this._parent?H_(this.name,this._parent):[this.name]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return Y_(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return Z_(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),e.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},e.prototype._setUpControl=function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0},e.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)},e.prototype._isStandalone=function(){return!this._parent||!(!this.options||!this.options.standalone)},e.prototype._setUpStandalone=function(){W_(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})},e.prototype._checkForErrors=function(){this._isStandalone()||this._checkParentType(),this._checkName()},e.prototype._checkParentType=function(){!(this._parent instanceof mw)&&this._parent instanceof ew?fw.formGroupNameException():this._parent instanceof mw||this._parent instanceof pw||fw.modelParentException()},e.prototype._checkName=function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||fw.missingNameException()},e.prototype._updateValue=function(t){var e=this;yw.then(function(){e.control.setValue(t,{emitViewToModelChange:!1})})},e.prototype._updateDisabled=function(t){var e=this,n=t.isDisabled.currentValue,r=""===n||n&&"false"!==n;yw.then(function(){r&&!e.control.disabled?e.control.disable():!r&&e.control.disabled&&e.control.enable()})},a([l(0,Ut()),l(0,Ht()),l(1,Ut()),l(1,zt()),l(1,Bt(w_)),l(2,Ut()),l(2,zt()),l(2,Bt(S_)),l(3,Ut()),l(3,zt()),l(3,Bt(I_))],e)}(L_),gw=function(t){function e(e,n){var r=t.call(this)||this;return r._validators=e,r._asyncValidators=n,r.submitted=!1,r.directives=[],r.form=null,r.ngSubmit=new hn,r}return o(e,t),e.prototype.ngOnChanges=function(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())},Object.defineProperty(e.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),e.prototype.addControl=function(t){var e=this.form.get(t.path);return W_(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e},e.prototype.getControl=function(t){return this.form.get(t.path)},e.prototype.removeControl=function(t){tw(this.directives,t)},e.prototype.addFormGroup=function(t){var e=this.form.get(t.path);X_(e,t),e.updateValueAndValidity({emitEvent:!1})},e.prototype.removeFormGroup=function(t){},e.prototype.getFormGroup=function(t){return this.form.get(t.path)},e.prototype.addFormArray=function(t){var e=this.form.get(t.path);X_(e,t),e.updateValueAndValidity({emitEvent:!1})},e.prototype.removeFormArray=function(t){},e.prototype.getFormArray=function(t){return this.form.get(t.path)},e.prototype.updateModel=function(t,e){this.form.get(t.path).setValue(e)},e.prototype.onSubmit=function(t){return this.submitted=!0,$_(this.form,this.directives),this.ngSubmit.emit(t),!1},e.prototype.onReset=function(){this.resetForm()},e.prototype.resetForm=function(t){void 0===t&&(t=void 0),this.form.reset(t),this.submitted=!1},e.prototype._updateDomValue=function(){var t=this;this.directives.forEach(function(e){var n=t.form.get(e.path);e.control!==n&&(function(t,e){e.valueAccessor.registerOnChange(function(){return Q_(e)}),e.valueAccessor.registerOnTouched(function(){return Q_(e)}),e._rawValidators.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),e._rawAsyncValidators.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),t&&t._clearChangeFns()}(e.control,e),n&&W_(n,e),e.control=n)}),this.form._updateTreeValidity({emitEvent:!1})},e.prototype._updateRegistrations=function(){var t=this;this.form._registerOnCollectionChange(function(){return t._updateDomValue()}),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){}),this._oldForm=this.form},e.prototype._updateValidators=function(){var t=Y_(this._validators);this.form.validator=C_.compose([this.form.validator,t]);var e=Z_(this._asyncValidators);this.form.asyncValidator=C_.composeAsync([this.form.asyncValidator,e])},e.prototype._checkFormPresent=function(){this.form||q_.missingFormException()},a([l(0,Ut()),l(0,zt()),l(0,Bt(w_)),l(1,Ut()),l(1,zt()),l(1,Bt(S_))],e)}(b_),bw=function(){function t(){}return Object.defineProperty(t.prototype,"required",{get:function(){return this._required},set:function(t){this._required=null!=t&&!1!==t&&""+t!="false",this._onChange&&this._onChange()},enumerable:!0,configurable:!0}),t.prototype.validate=function(t){return this.required?C_.required(t):null},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t}(),_w=function(){},ww=function(){},Sw=function(){},Ew=!!ed()&&{passive:!0},Cw=function(){function t(t,e){this._platform=t,this._ngZone=e,this._monitoredElements=new Map}return t.prototype.monitor=function(t){var e=this;if(!this._platform.isBrowser)return Ih;var n=t instanceof Vn?t.nativeElement:t,r=this._monitoredElements.get(n);if(r)return r.subject.asObservable();var i=new z,o="cdk-text-field-autofilled",s=function(t){"cdk-text-field-autofill-start"!==t.animationName||n.classList.contains(o)?"cdk-text-field-autofill-end"===t.animationName&&n.classList.contains(o)&&(n.classList.remove(o),e._ngZone.run(function(){return i.next({target:t.target,isAutofilled:!1})})):(n.classList.add(o),e._ngZone.run(function(){return i.next({target:t.target,isAutofilled:!0})}))};return this._ngZone.runOutsideAngular(function(){n.addEventListener("animationstart",s,Ew),n.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(n,{subject:i,unlisten:function(){n.removeEventListener("animationstart",s,Ew)}}),i.asObservable()},t.prototype.stopMonitoring=function(t){var e=t instanceof Vn?t.nativeElement:t,n=this._monitoredElements.get(e);n&&(n.unlisten(),n.subject.complete(),e.classList.remove("cdk-text-field-autofill-monitored"),e.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(e))},t.prototype.ngOnDestroy=function(){var t=this;this._monitoredElements.forEach(function(e,n){return t.stopMonitoring(n)})},t.ngInjectableDef=Et({factory:function(){return new t(de(td),de(dn))},token:t,providedIn:"root"}),t}(),xw=function(){},kw=["button","checkbox","file","hidden","image","radio","range","reset","submit"],Ow=0,Iw=function(t){function e(e,n,r,i,o,s,a,l,u){var c=t.call(this,s,i,o,r)||this;return c._elementRef=e,c._platform=n,c.ngControl=r,c._autofillMonitor=l,c._uid="mat-input-"+Ow++,c._isServer=!1,c.focused=!1,c.stateChanges=new z,c.controlType="mat-input",c.autofilled=!1,c._disabled=!1,c._required=!1,c._type="text",c._readonly=!1,c._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(function(t){return rd().has(t)}),c._inputValueAccessor=a||c._elementRef.nativeElement,c._previousNativeValue=c.value,c.id=c.id,n.IOS&&u.runOutsideAngular(function(){e.nativeElement.addEventListener("keyup",function(t){var e=t.target;e.value||e.selectionStart||e.selectionEnd||(e.setSelectionRange(1,1),e.setSelectionRange(0,0))})}),c._isServer=!c._platform.isBrowser,c}return o(e,t),Object.defineProperty(e.prototype,"disabled",{get:function(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled},set:function(t){this._disabled=Xh(t),this.focused&&(this.focused=!1,this.stateChanges.next())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this._id},set:function(t){this._id=t||this._uid},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"required",{get:function(){return this._required},set:function(t){this._required=Xh(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return this._type},set:function(t){this._type=t||"text",this._validateType(),!this._isTextarea()&&rd().has(this._type)&&(this._elementRef.nativeElement.type=this._type)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._inputValueAccessor.value},set:function(t){t!==this.value&&(this._inputValueAccessor.value=t,this.stateChanges.next())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"readonly",{get:function(){return this._readonly},set:function(t){this._readonly=Xh(t)},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var t=this;this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(function(e){t.autofilled=e.isAutofilled,t.stateChanges.next()})},e.prototype.ngOnChanges=function(){this.stateChanges.next()},e.prototype.ngOnDestroy=function(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)},e.prototype.ngDoCheck=function(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue()},e.prototype.focus=function(){this._elementRef.nativeElement.focus()},e.prototype._focusChanged=function(t){t===this.focused||this.readonly||(this.focused=t,this.stateChanges.next())},e.prototype._onInput=function(){},e.prototype._dirtyCheckNativeValue=function(){var t=this.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())},e.prototype._validateType=function(){if(kw.indexOf(this._type)>-1)throw Error('Input type "'+this._type+"\" isn't supported by matInput.")},e.prototype._isNeverEmpty=function(){return this._neverEmptyInputTypes.indexOf(this._type)>-1},e.prototype._isBadInput=function(){var t=this._elementRef.nativeElement.validity;return t&&t.badInput},e.prototype._isTextarea=function(){return"textarea"===this._elementRef.nativeElement.nodeName.toLowerCase()},Object.defineProperty(e.prototype,"empty",{get:function(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"shouldLabelFloat",{get:function(){return this.focused||!this.empty},enumerable:!0,configurable:!0}),e.prototype.setDescribedByIds=function(t){this._ariaDescribedby=t.join(" ")},e.prototype.onContainerClick=function(){this.focus()},e}(function(t){return function(t){function e(){for(var e=[],n=0;n0){var r=t.slice(0,n),i=r.toLowerCase(),o=t.slice(n+1).trim();e.maybeSetNormalizedName(r,i),e.headers.has(i)?e.headers.get(i).push(o):e.headers.set(i,[o])}})}:function(){e.headers=new Map,Object.keys(t).forEach(function(n){var r=t[n],i=n.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(e.headers.set(i,r),e.maybeSetNormalizedName(n,i))})}:this.headers=new Map}return t.prototype.has=function(t){return this.init(),this.headers.has(t.toLowerCase())},t.prototype.get=function(t){this.init();var e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null},t.prototype.keys=function(){return this.init(),Array.from(this.normalizedNames.values())},t.prototype.getAll=function(t){return this.init(),this.headers.get(t.toLowerCase())||null},t.prototype.append=function(t,e){return this.clone({name:t,value:e,op:"a"})},t.prototype.set=function(t,e){return this.clone({name:t,value:e,op:"s"})},t.prototype.delete=function(t,e){return this.clone({name:t,value:e,op:"d"})},t.prototype.maybeSetNormalizedName=function(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)},t.prototype.init=function(){var e=this;this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(t){return e.applyUpdate(t)}),this.lazyUpdate=null))},t.prototype.copyFrom=function(t){var e=this;t.init(),Array.from(t.headers.keys()).forEach(function(n){e.headers.set(n,t.headers.get(n)),e.normalizedNames.set(n,t.normalizedNames.get(n))})},t.prototype.clone=function(e){var n=new t;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([e]),n},t.prototype.applyUpdate=function(t){var e=t.name.toLowerCase();switch(t.op){case"a":case"s":var n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);var r=("a"===t.op?this.headers.get(e):void 0)||[];r.push.apply(r,d(n)),this.headers.set(e,r);break;case"d":var i=t.value;if(i){var o=this.headers.get(e);if(!o)return;0===(o=o.filter(function(t){return-1===i.indexOf(t)})).length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,o)}else this.headers.delete(e),this.normalizedNames.delete(e)}},t.prototype.forEach=function(t){var e=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(n){return t(e.normalizedNames.get(n),e.headers.get(n))})},t}(),jw=function(){function t(){}return t.prototype.encodeKey=function(t){return Bw(t)},t.prototype.encodeValue=function(t){return Bw(t)},t.prototype.decodeKey=function(t){return decodeURIComponent(t)},t.prototype.decodeValue=function(t){return decodeURIComponent(t)},t}();function Bw(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}var Uw=function(){function t(t){void 0===t&&(t={});var e,n,r,i=this;if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new jw,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=(e=t.fromString,n=this.encoder,r=new Map,e.length>0&&e.split("&").forEach(function(t){var e=t.indexOf("="),i=h(-1==e?[n.decodeKey(t),""]:[n.decodeKey(t.slice(0,e)),n.decodeValue(t.slice(e+1))],2),o=i[0],s=i[1],a=r.get(o)||[];a.push(s),r.set(o,a)}),r)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(function(e){var n=t.fromObject[e];i.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}return t.prototype.has=function(t){return this.init(),this.map.has(t)},t.prototype.get=function(t){this.init();var e=this.map.get(t);return e?e[0]:null},t.prototype.getAll=function(t){return this.init(),this.map.get(t)||null},t.prototype.keys=function(){return this.init(),Array.from(this.map.keys())},t.prototype.append=function(t,e){return this.clone({param:t,value:e,op:"a"})},t.prototype.set=function(t,e){return this.clone({param:t,value:e,op:"s"})},t.prototype.delete=function(t,e){return this.clone({param:t,value:e,op:"d"})},t.prototype.toString=function(){var t=this;return this.init(),this.keys().map(function(e){var n=t.encoder.encodeKey(e);return t.map.get(e).map(function(e){return n+"="+t.encoder.encodeValue(e)}).join("&")}).join("&")},t.prototype.clone=function(e){var n=new t({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat([e]),n},t.prototype.init=function(){var t=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(e){return t.map.set(e,t.cloneFrom.map.get(e))}),this.updates.forEach(function(e){switch(e.op){case"a":case"s":var n=("a"===e.op?t.map.get(e.param):void 0)||[];n.push(e.value),t.map.set(e.param,n);break;case"d":if(void 0===e.value){t.map.delete(e.param);break}var r=t.map.get(e.param)||[],i=r.indexOf(e.value);-1!==i&&r.splice(i,1),r.length>0?t.map.set(e.param,r):t.map.delete(e.param)}}),this.cloneFrom=null)},t}();function zw(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function qw(t){return"undefined"!=typeof Blob&&t instanceof Blob}function Hw(t){return"undefined"!=typeof FormData&&t instanceof FormData}var Ww=function(){function t(t,e,n,r){var i;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==n?n:null,i=r):i=n,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.params&&(this.params=i.params)),this.headers||(this.headers=new Fw),this.params){var o=this.params.toString();if(0===o.length)this.urlWithParams=e;else{var s=e.indexOf("?");this.urlWithParams=e+(-1===s?"?":s=200&&this.status<300}}());function Qw(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}var Kw=function(){function t(t){this.handler=t}return t.prototype.request=function(t,e,n){var r,i=this;if(void 0===n&&(n={}),t instanceof Ww)r=t;else{var o;o=n.headers instanceof Fw?n.headers:new Fw(n.headers);var s=void 0;n.params&&(s=n.params instanceof Uw?n.params:new Uw({fromObject:n.params})),r=new Ww(t,e,void 0!==n.body?n.body:null,{headers:o,params:s,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}var a=Ah(r).pipe(sv(function(t){return i.handler.handle(t)}));if(t instanceof Ww||"events"===n.observe)return a;var l=a.pipe(Nh(function(t){return t instanceof Xw}));switch(n.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return l.pipe(nt(function(t){if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return l.pipe(nt(function(t){if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return l.pipe(nt(function(t){if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return l.pipe(nt(function(t){return t.body}))}case"response":return l;default:throw new Error("Unreachable: unhandled observe type "+n.observe+"}")}},t.prototype.delete=function(t,e){return void 0===e&&(e={}),this.request("DELETE",t,e)},t.prototype.get=function(t,e){return void 0===e&&(e={}),this.request("GET",t,e)},t.prototype.head=function(t,e){return void 0===e&&(e={}),this.request("HEAD",t,e)},t.prototype.jsonp=function(t,e){return this.request("JSONP",t,{params:(new Uw).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})},t.prototype.options=function(t,e){return void 0===e&&(e={}),this.request("OPTIONS",t,e)},t.prototype.patch=function(t,e,n){return void 0===n&&(n={}),this.request("PATCH",t,Qw(n,e))},t.prototype.post=function(t,e,n){return void 0===n&&(n={}),this.request("POST",t,Qw(n,e))},t.prototype.put=function(t,e,n){return void 0===n&&(n={}),this.request("PUT",t,Qw(n,e))},t}();function Yw(t,e){return new L(e?function(n){return e.schedule(Zw,0,{error:t,subscriber:n})}:function(e){return e.error(t)})}function Zw(t){t.subscriber.error(t.error)}function Jw(t){return function(e){return e.lift(new $w(t))}}var $w=function(){function t(t){this.callback=t}return t.prototype.call=function(t,e){return e.subscribe(new tS(t,this.callback))},t}(),tS=function(t){function e(e,n){var r=t.call(this,e)||this;return r.add(new S(n)),r}return o(e,t),e}(T);function eS(t){return Error('Unable to find icon with the name "'+t+'"')}function nS(t){return Error("The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was \""+t+'".')}function rS(t){return Error("The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was \""+t+'".')}var iS=function(t){t.nodeName?this.svgElement=t:this.url=t},oS=function(){function t(t,e,n){this._httpClient=t,this._sanitizer=e,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._defaultFontSetClass="material-icons",this._document=n}return t.prototype.addSvgIcon=function(t,e){return this.addSvgIconInNamespace("",t,e)},t.prototype.addSvgIconLiteral=function(t,e){return this.addSvgIconLiteralInNamespace("",t,e)},t.prototype.addSvgIconInNamespace=function(t,e,n){return this._addSvgIconConfig(t,e,new iS(n))},t.prototype.addSvgIconLiteralInNamespace=function(t,e,n){var r=this._sanitizer.sanitize(Gr.HTML,n);if(!r)throw rS(n);var i=this._createSvgElementForSingleIcon(r);return this._addSvgIconConfig(t,e,new iS(i))},t.prototype.addSvgIconSet=function(t){return this.addSvgIconSetInNamespace("",t)},t.prototype.addSvgIconSetLiteral=function(t){return this.addSvgIconSetLiteralInNamespace("",t)},t.prototype.addSvgIconSetInNamespace=function(t,e){return this._addSvgIconSetConfig(t,new iS(e))},t.prototype.addSvgIconSetLiteralInNamespace=function(t,e){var n=this._sanitizer.sanitize(Gr.HTML,e);if(!n)throw rS(e);var r=this._svgElementFromString(n);return this._addSvgIconSetConfig(t,new iS(r))},t.prototype.registerFontClassAlias=function(t,e){return void 0===e&&(e=t),this._fontCssClassesByAlias.set(t,e),this},t.prototype.classNameForFontAlias=function(t){return this._fontCssClassesByAlias.get(t)||t},t.prototype.setDefaultFontSetClass=function(t){return this._defaultFontSetClass=t,this},t.prototype.getDefaultFontSetClass=function(){return this._defaultFontSetClass},t.prototype.getSvgIconFromUrl=function(t){var e=this,n=this._sanitizer.sanitize(Gr.RESOURCE_URL,t);if(!n)throw nS(t);var r=this._cachedIconsByUrl.get(n);return r?Ah(sS(r)):this._loadSvgIconFromConfig(new iS(t)).pipe(hp(function(t){return e._cachedIconsByUrl.set(n,t)}),nt(function(t){return sS(t)}))},t.prototype.getNamedSvgIcon=function(t,e){void 0===e&&(e="");var n=aS(e,t),r=this._svgIconConfigs.get(n);if(r)return this._getSvgFromConfig(r);var i=this._iconSetConfigs.get(e);return i?this._getSvgFromIconSetConfigs(t,i):Yw(eS(n))},t.prototype._getSvgFromConfig=function(t){return t.svgElement?Ah(sS(t.svgElement)):this._loadSvgIconFromConfig(t).pipe(hp(function(e){return t.svgElement=e}),nt(function(t){return sS(t)}))},t.prototype._getSvgFromIconSetConfigs=function(t,e){var n=this,r=this._extractIconWithNameFromAnySet(t,e);return r?Ah(r):y_(e.filter(function(t){return!t.svgElement}).map(function(t){return n._loadSvgIconSetFromConfig(t).pipe(oh(function(e){var r=n._sanitizer.sanitize(Gr.RESOURCE_URL,t.url);return console.error("Loading icon set URL: "+r+" failed: "+e.message),Ah(null)}))})).pipe(nt(function(){var r=n._extractIconWithNameFromAnySet(t,e);if(!r)throw eS(t);return r}))},t.prototype._extractIconWithNameFromAnySet=function(t,e){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.svgElement){var i=this._extractSvgIconFromSet(r.svgElement,t);if(i)return i}}return null},t.prototype._loadSvgIconFromConfig=function(t){var e=this;return this._fetchUrl(t.url).pipe(nt(function(t){return e._createSvgElementForSingleIcon(t)}))},t.prototype._loadSvgIconSetFromConfig=function(t){var e=this;return t.svgElement?Ah(t.svgElement):this._fetchUrl(t.url).pipe(nt(function(n){return t.svgElement||(t.svgElement=e._svgElementFromString(n)),t.svgElement}))},t.prototype._createSvgElementForSingleIcon=function(t){var e=this._svgElementFromString(t);return this._setSvgAttributes(e),e},t.prototype._extractSvgIconFromSet=function(t,e){var n=t.querySelector("#"+e);if(!n)return null;var r=n.cloneNode(!0);if(r.removeAttribute("id"),"svg"===r.nodeName.toLowerCase())return this._setSvgAttributes(r);if("symbol"===r.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(r));var i=this._svgElementFromString("");return i.appendChild(r),this._setSvgAttributes(i)},t.prototype._svgElementFromString=function(t){var e=this._document.createElement("DIV");e.innerHTML=t;var n=e.querySelector("svg");if(!n)throw Error(" tag not found");return n},t.prototype._toSvgElement=function(t){for(var e=this._svgElementFromString(""),n=0;n.mat-card-xl-image{margin:-8px 0 8px 0}.mat-card-title-group{display:flex;justify-content:space-between;margin:0 -8px}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}@media (max-width:599px){.mat-card{padding:24px 16px}.mat-card-actions{margin-left:-8px;margin-right:-8px}.mat-card-image{width:calc(100% + 32px);margin:16px -16px}.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}.mat-card-header{margin:-8px 0 0 0}.mat-card-footer{margin-left:-16px;margin-right:-16px}}.mat-card-content>:first-child,.mat-card>:first-child{margin-top:0}.mat-card-content>:last-child:not(.mat-card-footer),.mat-card>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-24px}.mat-card>.mat-card-actions:last-child{margin-bottom:-16px;padding-bottom:0}.mat-card-actions .mat-button:first-child,.mat-card-actions .mat-raised-button:first-child{margin-left:0;margin-right:0}.mat-card-subtitle:not(:first-child),.mat-card-title:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}"],data:{}});function bS(t){return ts(2,[Qo(null,0),Qo(null,1)],null,null)}var _S=function(){function t(){this.eventShowable=new hn}return t.prototype.closeAlert=function(){this.eventShowable.emit(!1)},t}(),wS=ci({encapsulation:0,styles:[[".fail[_ngcontent-%COMP%]{background-color:rgba(167,56,65,.2);color:#a73841}.warning[_ngcontent-%COMP%]{background-color:rgba(175,110,0,.2);color:#af6e00}.correct[_ngcontent-%COMP%]{background-color:rgba(55,86,70,.25);color:#375546}mat-icon[_ngcontent-%COMP%]{cursor:pointer;float:right}mat-card[_ngcontent-%COMP%]{max-width:400px;margin-top:20px;margin-bottom:20px;box-shadow:none}"]],data:{}});function SS(t){return ts(0,[(t()(),Fi(0,0,null,null,2,"mat-icon",[["class","mat-icon"],["role","img"]],[[2,"mat-icon-inline",null]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.closeAlert()&&r),r},hS,cS)),Oo(1,638976,null,0,lS,[Vn,oS,[8,null]],null,null),(t()(),Zo(-1,0,["clear"]))],function(t,e){t(e,1,0)},function(t,e){t(e,0,0,fo(e,1).inline)})}function ES(t){return ts(0,[(t()(),Fi(0,0,null,null,9,"mat-card",[["class","mat-card"]],null,null,null,bS,gS)),Oo(1,278528,null,0,Jl,[pr,fr,Vn,Ln],{ngClass:[0,"ngClass"]},null),Oo(2,49152,null,0,yS,[],null,null),(t()(),Vi(16777216,null,0,1,null,SS)),Oo(4,16384,null,0,nu,[Wn,Hn],{ngIf:[0,"ngIf"]},null),(t()(),Fi(5,0,null,0,2,"mat-card-title",[["class","mat-card-title"]],null,null,null,null,null)),Oo(6,16384,null,0,pS,[],null,null),(t()(),Zo(7,null,["",""])),(t()(),Fi(8,0,null,0,1,"mat-card-subtitle",[["class","mat-card-subtitle"]],[[8,"innerHTML",1]],null,null,null,null)),Oo(9,16384,null,0,fS,[],null,null)],function(t,e){var n=e.component;t(e,1,0,n.customClass),t(e,4,0,n.closable)},function(t,e){var n=e.component;t(e,7,0,n.errorTitle),t(e,8,0,n.errorContent)})}var CS=new Ct("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:function(){return null}}),xS=[{alias:"xs",mediaQuery:"(min-width: 0px) and (max-width: 599px)"},{alias:"gt-xs",overlapping:!0,mediaQuery:"(min-width: 600px)"},{alias:"lt-sm",overlapping:!0,mediaQuery:"(max-width: 599px)"},{alias:"sm",mediaQuery:"(min-width: 600px) and (max-width: 959px)"},{alias:"gt-sm",overlapping:!0,mediaQuery:"(min-width: 960px)"},{alias:"lt-md",overlapping:!0,mediaQuery:"(max-width: 959px)"},{alias:"md",mediaQuery:"(min-width: 960px) and (max-width: 1279px)"},{alias:"gt-md",overlapping:!0,mediaQuery:"(min-width: 1280px)"},{alias:"lt-lg",overlapping:!0,mediaQuery:"(max-width: 1279px)"},{alias:"lg",mediaQuery:"(min-width: 1280px) and (max-width: 1919px)"},{alias:"gt-lg",overlapping:!0,mediaQuery:"(min-width: 1920px)"},{alias:"lt-xl",overlapping:!0,mediaQuery:"(max-width: 1919px)"},{alias:"xl",mediaQuery:"(min-width: 1920px) and (max-width: 5000px)"}],kS="(orientation: landscape) and (min-width: 960px) and (max-width: 1279px)",OS="(orientation: portrait) and (min-width: 600px) and (max-width: 839px)",IS="(orientation: portrait) and (min-width: 840px)",TS="(orientation: landscape) and (min-width: 1280px)",PS={HANDSET:"(orientation: portrait) and (max-width: 599px), (orientation: landscape) and (max-width: 959px)",TABLET:OS+" , "+kS,WEB:IS+", "+TS+" ",HANDSET_PORTRAIT:"(orientation: portrait) and (max-width: 599px)",TABLET_PORTRAIT:OS+" ",WEB_PORTRAIT:""+IS,HANDSET_LANDSCAPE:"(orientation: landscape) and (max-width: 959px)]",TABLET_LANDSCAPE:""+kS,WEB_LANDSCAPE:""+TS},RS=[{alias:"handset",mediaQuery:PS.HANDSET},{alias:"handset.landscape",mediaQuery:PS.HANDSET_LANDSCAPE},{alias:"handset.portrait",mediaQuery:PS.HANDSET_PORTRAIT},{alias:"tablet",mediaQuery:PS.TABLET},{alias:"tablet.landscape",mediaQuery:PS.TABLET},{alias:"tablet.portrait",mediaQuery:PS.TABLET_PORTRAIT},{alias:"web",mediaQuery:PS.WEB,overlapping:!0},{alias:"web.landscape",mediaQuery:PS.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",mediaQuery:PS.WEB_PORTRAIT,overlapping:!0}];function AS(t){for(var e=[],n=1;n0?t.charAt(0):"",n=t.length>1?t.slice(1):"";return e.toUpperCase()+n}var MS={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0},LS=new Ct("Flex Layout token, config options for the library",{providedIn:"root",factory:function(){return MS}}),VS=new Ct("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:function(){var t=de(CS),e=de(LS),n=[].concat.apply([],(t||[]).map(function(t){return Array.isArray(t)?t:[t]}));return function(t,e){void 0===e&&(e=[]);var n,r={};return t.forEach(function(t){r[t.alias]=t}),e.forEach(function(t){r[t.alias]?AS(r[t.alias],t):r[t.alias]=t}),(n=Object.keys(r).map(function(t){return r[t]})).forEach(function(t){t.suffix||(t.suffix=t.alias.replace(NS,"|").split("|").map(DS).join(""),t.overlapping=!!t.overlapping)}),n}((e.disableDefaultBps?[]:xS).concat(e.addOrientationBps?RS:[]),n)}}),FS=function(){function t(t){this._registry=t}return Object.defineProperty(t.prototype,"items",{get:function(){return this._registry.slice()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"sortedItems",{get:function(){var t=this._registry.filter(function(t){return!0===t.overlapping}),e=this._registry.filter(function(t){return!0!==t.overlapping});return t.concat(e)},enumerable:!0,configurable:!0}),t.prototype.findByAlias=function(t){return this._registry.find(function(e){return e.alias==t})||null},t.prototype.findByQuery=function(t){return this._registry.find(function(e){return e.mediaQuery==t})||null},Object.defineProperty(t.prototype,"overlappings",{get:function(){return this._registry.filter(function(t){return 1==t.overlapping})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"aliases",{get:function(){return this._registry.map(function(t){return t.alias})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"suffixes",{get:function(){return this._registry.map(function(t){return t.suffix?t.suffix:""})},enumerable:!0,configurable:!0}),t.ngInjectableDef=Et({factory:function(){return new t(de(VS))},token:t,providedIn:"root"}),t}(),jS=function(){function t(t,e,n,r){void 0===t&&(t=!1),void 0===e&&(e="all"),void 0===n&&(n=""),void 0===r&&(r=""),this.matches=t,this.mediaQuery=e,this.mqAlias=n,this.suffix=r}return t.prototype.clone=function(){return new t(this.matches,this.mediaQuery,this.mqAlias,this.suffix)},t}(),BS=function(){function t(t,e,n){this._zone=t,this._platformId=e,this._document=n,this._registry=new Map,this._source=new Gy(new jS(!0)),this._observable$=this._source.asObservable()}return t.prototype.isActive=function(t){var e=this._registry.get(t);return!!e&&e.matches},t.prototype.observe=function(t){return t&&this.registerQuery(t),this._observable$.pipe(Nh(function(e){return!t||e.mediaQuery===t}))},t.prototype.registerQuery=function(t){var e=this,n=function(t){return void 0===t?[]:"string"==typeof t?[t]:(e={},t.filter(function(t){return!e.hasOwnProperty(t)&&(e[t]=!0)}));var e}(t);n.length>0&&(this._prepareQueryCSS(n,this._document),n.forEach(function(t){var n=e._registry.get(t),r=function(n){e._zone.run(function(){var r=new jS(n.matches,t);e._source.next(r)})};n||((n=e._buildMQL(t)).addListener(r),e._registry.set(t,n)),n.matches&&r(n)}))},t.prototype._buildMQL=function(t){return du(this._platformId)&&window.matchMedia("all").addListener?window.matchMedia(t):{matches:"all"===t||""===t,media:t,addListener:function(){},removeListener:function(){}}},t.prototype._prepareQueryCSS=function(t,e){var n=t.filter(function(t){return!US[t]});if(n.length>0){var r=n.join(", ");try{var i=e.createElement("style");i.setAttribute("type","text/css"),i.styleSheet||i.appendChild(e.createTextNode("\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media "+r+" {.fx-query-test{ }}\n")),e.head.appendChild(i),n.forEach(function(t){return US[t]=i})}catch(t){console.error(t)}}},t.ngInjectableDef=Et({factory:function(){return new t(de(dn),de(ze),de(uu))},token:t,providedIn:"root"}),t}(),US={};function zS(t,e){return AS(t,e?{mqAlias:e.alias,suffix:e.suffix}:{})}var qS=function(){},HS=function(){function t(t,e){this.breakpoints=t,this.mediaWatcher=e,this.filterOverlaps=!0,this._registerBreakPoints(),this.observable$=this._buildObservable()}return t.prototype.isActive=function(t){var e=this._toMediaQuery(t);return this.mediaWatcher.isActive(e)},t.prototype.subscribe=function(t,e,n){return t&&"object"==typeof t?this.observable$.subscribe(t.next,t.error,t.complete):this.observable$.subscribe(t,e,n)},t.prototype.asObservable=function(){return this.observable$},t.prototype._registerBreakPoints=function(){var t=this.breakpoints.sortedItems.map(function(t){return t.mediaQuery});this.mediaWatcher.registerQuery(t)},t.prototype._buildObservable=function(){var t=this,e=this;return this.mediaWatcher.observe().pipe(Nh(function(t){return!0===t.matches}),Nh(function(n){var r=t.breakpoints.findByQuery(n.mediaQuery);return!r||!(e.filterOverlaps&&r.overlapping)}),nt(function(e){return zS(e,t._findByQuery(e.mediaQuery))}))},t.prototype._findByAlias=function(t){return this.breakpoints.findByAlias(t)},t.prototype._findByQuery=function(t){return this.breakpoints.findByQuery(t)},t.prototype._toMediaQuery=function(t){var e=this._findByAlias(t)||this._findByQuery(t);return e?e.mediaQuery:t},t.ngInjectableDef=Et({factory:function(){return new t(de(FS),de(BS))},token:t,providedIn:"root"}),t}(),WS=function(){},GS=function(){function t(){this.stylesheet=new Map}return t.prototype.addStyleToElement=function(t,e,n){var r=this.stylesheet.get(t);r?r.set(e,n):this.stylesheet.set(t,new Map([[e,n]]))},t.prototype.clearStyles=function(){this.stylesheet.clear()},t.prototype.getStyleForElement=function(t,e){var n=this.stylesheet.get(t),r="";if(n){var i=n.get(e);"number"!=typeof i&&"string"!=typeof i||(r=i+"")}return r},t.ngInjectableDef=Et({factory:function(){return new t},token:t,providedIn:"root"}),t}(),XS=new Ct("FlexLayoutServerLoaded",{providedIn:"root",factory:function(){return!1}}),QS=["row","column","row-reverse","column-reverse"],KS=function(){function t(t,e,n){this._options=t,this._mediaMonitor=e,this._onMediaChanges=n,this._subscribers=[],this._registryMap=this._buildRegistryMap(),this._subscribers=this._configureChangeObservers()}return Object.defineProperty(t.prototype,"registryFromLargest",{get:function(){return this._registryMap.slice().reverse()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"mediaMonitor",{get:function(){return this._mediaMonitor},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activatedInputKey",{get:function(){return this._activatedInputKey||this._options.baseKey},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activatedInput",{get:function(){var t=this.activatedInputKey;return this.hasKeyValue(t)?this._lookupKeyValue(t):this._options.defaultValue},enumerable:!0,configurable:!0}),t.prototype.hasKeyValue=function(t){return void 0!==this._options.inputKeys[t]},t.prototype.destroy=function(){this._subscribers.forEach(function(t){t.unsubscribe()}),this._subscribers=[]},t.prototype._configureChangeObservers=function(){var t=this,e=[];return this._registryMap.forEach(function(n){t._keyInUse(n.key)&&e.push(t.mediaMonitor.observe(n.alias).pipe(nt(function(e){return(e=e.clone()).property=t._options.baseKey,e})).subscribe(function(e){t._onMonitorEvents(e)}))}),e},t.prototype._buildRegistryMap=function(){var t=this;return this.mediaMonitor.breakpoints.map(function(e){return AS({},e,{baseKey:t._options.baseKey,key:t._options.baseKey+e.suffix})}).filter(function(e){return t._keyInUse(e.key)})},t.prototype._onMonitorEvents=function(t){t.property==this._options.baseKey&&(t.value=this._calculateActivatedValue(t),this._onMediaChanges(t))},t.prototype._keyInUse=function(t){return void 0!==this._lookupKeyValue(t)},t.prototype._calculateActivatedValue=function(t){var e=this._options.baseKey+t.suffix,n=this._activatedInputKey;return this._activatedInputKey=this._validateInputKey(n=t.matches?e:n==e?"":n),this.activatedInput},t.prototype._validateInputKey=function(t){var e=this,n=function(t){return!e._keyInUse(t)};return n(t)&&this.mediaMonitor.activeOverlaps.some(function(r){var i=e._options.baseKey+r.suffix;return!n(i)&&(t=i,!0)}),t},t.prototype._lookupKeyValue=function(t){return this._options.inputKeys[t]},t}(),YS=function(){function t(t,e,n){this._mediaMonitor=t,this._elementRef=e,this._styler=n,this._inputMap={},this._hasInitialized=!1}return Object.defineProperty(t.prototype,"hasMediaQueryListener",{get:function(){return!!this._mqActivation},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activatedValue",{get:function(){return this._mqActivation?this._mqActivation.activatedInput:void 0},set:function(t){var e,n,r="baseKey";this._mqActivation&&(n=this._inputMap[r=this._mqActivation.activatedInputKey],this._inputMap[r]=t);var i=new tr(n,t,!1);this.ngOnChanges(((e={})[r]=i,e))},enumerable:!0,configurable:!0}),t.prototype.hasResponsiveAPI=function(t){return Object.keys(this._inputMap).length-(this._inputMap[t]?1:0)>0},t.prototype.ngOnInit=function(){this._hasInitialized=!0},t.prototype.ngOnChanges=function(t){throw new Error("BaseDirective::ngOnChanges should be overridden in subclass: "+t)},t.prototype.ngOnDestroy=function(){this._mqActivation&&this._mqActivation.destroy(),delete this._mediaMonitor},Object.defineProperty(t.prototype,"parentElement",{get:function(){return this._elementRef.nativeElement.parentNode},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"nativeElement",{get:function(){return this._elementRef.nativeElement},enumerable:!0,configurable:!0}),t.prototype._queryInput=function(t){return this._inputMap[t]},t.prototype._getDefaultVal=function(t,e){var n=this._queryInput(t);return void 0!==n&&null!==n&&""!==n?n:e},t.prototype._getDisplayStyle=function(t){return void 0===t&&(t=this.nativeElement),this._styler.lookupStyle(t,"display")},t.prototype._getAttributeValue=function(t,e){return void 0===e&&(e=this.nativeElement),this._styler.lookupAttributeValue(e,t)},t.prototype._getFlexFlowDirection=function(t,e){var n;void 0===e&&(e=!1);var r="row";if(t&&(r=(n=this._styler.getFlowDirection(t))[0],!n[1]&&e)){var i=function(t){var e,n,r=function(t){var e=(t=t?t.toLowerCase():"").split(" "),n=e[0],r=e[1],i=e[2];return QS.find(function(t){return t===n})||(n=QS[0]),"inline"===r&&(r="inline"!==i?i:"",i="inline"),[n,function(t){if(t)switch(t.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":t="wrap-reverse";break;case"no":case"none":case"nowrap":t="nowrap";break;default:t="wrap"}return t}(r),!!i]}(t);return n=r[2],void 0===(e=r[1])&&(e=null),void 0===n&&(n=!1),{display:n?"inline-flex":"flex","box-sizing":"border-box","flex-direction":r[0],"flex-wrap":e||null}}(r);this._styler.applyStyleToElements(i,[t])}return r.trim()||"row"},t.prototype._applyStyleToElement=function(t,e,n){void 0===n&&(n=this.nativeElement),this._styler.applyStyleToElement(n,t,e)},t.prototype._applyStyleToElements=function(t,e){this._styler.applyStyleToElements(t,e)},t.prototype._cacheInput=function(t,e){if("object"==typeof e)for(var n in e)this._inputMap[n]=e[n];else t&&(this._inputMap[t]=e)},t.prototype._listenForMediaQueryChanges=function(t,e,n){if(!this._mqActivation){var r=new function(t,e,n){this.baseKey=t,this.defaultValue=e,this.inputKeys=n}(t,e,this._inputMap);this._mqActivation=new KS(r,this._mediaMonitor,function(t){return n(t)})}return this._mqActivation},Object.defineProperty(t.prototype,"childrenNodes",{get:function(){for(var t=this.nativeElement.children,e=[],n=t.length;n--;)e[n]=t[n];return e},enumerable:!0,configurable:!0}),t.prototype.hasKeyValue=function(t){return this._mqActivation.hasKeyValue(t)},Object.defineProperty(t.prototype,"hasInitialized",{get:function(){return this._hasInitialized},enumerable:!0,configurable:!0}),t}(),ZS=function(){function t(t,e){this._breakpoints=t,this._matchMedia=e,this._registerBreakpoints()}return Object.defineProperty(t.prototype,"breakpoints",{get:function(){return this._breakpoints.items.slice()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activeOverlaps",{get:function(){var t=this;return this._breakpoints.overlappings.reverse().filter(function(e){return t._matchMedia.isActive(e.mediaQuery)})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"active",{get:function(){var t=this,e=null;this.breakpoints.reverse().forEach(function(n){""!==n.alias&&!e&&t._matchMedia.isActive(n.mediaQuery)&&(e=n)});var n=this.breakpoints[0];return e||(this._matchMedia.isActive(n.mediaQuery)?n:null)},enumerable:!0,configurable:!0}),t.prototype.isActive=function(t){var e=this._breakpoints.findByAlias(t)||this._breakpoints.findByQuery(t);return this._matchMedia.isActive(e?e.mediaQuery:t)},t.prototype.observe=function(t){var e=this._breakpoints.findByAlias(t||"")||this._breakpoints.findByQuery(t||"");return this._matchMedia.observe(e?e.mediaQuery:t).pipe(nt(function(t){return zS(t,e)}),Nh(function(t){return!e||""!==t.mqAlias}))},t.prototype._registerBreakpoints=function(){var t=this._breakpoints.sortedItems.map(function(t){return t.mediaQuery});this._matchMedia.registerQuery(t)},t.ngInjectableDef=Et({factory:function(){return new t(de(FS),de(BS))},token:t,providedIn:"root"}),t}();function JS(t){for(var e in t){var n=t[e]||"";switch(e){case"display":t.display="flex"===n?["-webkit-flex","flex"]:"inline-flex"===n?["-webkit-inline-flex","inline-flex"]:n;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":t["-webkit-"+e]=n;break;case"flex-direction":t["-webkit-flex-direction"]=n=n||"row",t["flex-direction"]=n;break;case"order":t.order=t["-webkit-"+e]=isNaN(n)?"0":n}}return t}var $S=function(){function t(t,e,n,r){this._serverStylesheet=t,this._serverModuleLoaded=e,this._platformId=n,this.layoutConfig=r}return t.prototype.applyStyleToElement=function(t,e,n){var r={};"string"==typeof e&&(r[e]=n,e=r),r=this.layoutConfig.disableVendorPrefixes?e:JS(e),this._applyMultiValueStyleToElement(r,t)},t.prototype.applyStyleToElements=function(t,e){var n=this;void 0===e&&(e=[]);var r=this.layoutConfig.disableVendorPrefixes?t:JS(t);e.forEach(function(t){n._applyMultiValueStyleToElement(r,t)})},t.prototype.getFlowDirection=function(t){var e=this.lookupStyle(t,"flex-direction");e===tE&&(e="");var n=this.lookupInlineStyle(t,"flex-direction")||pu(this._platformId)&&this._serverModuleLoaded?e:"";return[e||"row",n]},t.prototype.lookupAttributeValue=function(t,e){return t.getAttribute(e)||""},t.prototype.lookupInlineStyle=function(t,e){return du(this._platformId)?t.style[e]:this._getServerStyle(t,e)},t.prototype.lookupStyle=function(t,e,n){void 0===n&&(n=!1);var r="";return t&&((r=this.lookupInlineStyle(t,e))||(du(this._platformId)?n||(r=getComputedStyle(t).getPropertyValue(e)):this._serverModuleLoaded&&(r=this._serverStylesheet.getStyleForElement(t,e)))),r?r.trim():tE},t.prototype._applyMultiValueStyleToElement=function(t,e){var n=this;Object.keys(t).sort().forEach(function(r){var i=Array.isArray(t[r])?t[r]:[t[r]];i.sort();for(var o=0,s=i;o0){var s=o.indexOf(":");if(-1===s)throw new Error("Invalid CSS style: "+o);e[o.substr(0,s).trim()]=o.substr(s+1).trim()}}return e},t.prototype._writeStyleAttribute=function(t,e){var n="";for(var r in e)e[r]&&(n+=r+":"+e[r]+";");t.setAttribute("style",n)},t.ngInjectableDef=Et({factory:function(){return new t(de(GS,8),de(XS,8),de(ze),de(LS))},token:t,providedIn:"root"}),t}(),tE="block";function eE(t){return t.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}var nE=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return o(e,t),e.prototype.schedule=function(e,n){return void 0===n&&(n=0),n>0?t.prototype.schedule.call(this,e,n):(this.delay=n,this.state=e,this.scheduler.flush(this),this)},e.prototype.execute=function(e,n){return n>0||this.closed?t.prototype.execute.call(this,e,n):this._execute(e,n)},e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0?t.prototype.requestAsyncId.call(this,e,n,r):e.flush(this)},e}(sd),rE=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e}(ld))(nE),iE=function(){function t(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}return t.prototype.observe=function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}},t.prototype.do=function(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}},t.prototype.accept=function(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)},t.prototype.toObservable=function(){switch(this.kind){case"N":return Ah(this.value);case"E":return Yw(this.error);case"C":return Th()}throw new Error("unexpected notification kind value")},t.createNext=function(e){return void 0!==e?new t("N",e):t.undefinedValueNotification},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return t.completeNotification},t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}();function oE(t,e){return void 0===e&&(e=0),function(n){return n.lift(new sE(t,e))}}var sE=function(){function t(t,e){void 0===e&&(e=0),this.scheduler=t,this.delay=e}return t.prototype.call=function(t,e){return e.subscribe(new aE(t,this.scheduler,this.delay))},t}(),aE=function(t){function e(e,n,r){void 0===r&&(r=0);var i=t.call(this,e)||this;return i.scheduler=n,i.delay=r,i}return o(e,t),e.dispatch=function(t){t.notification.observe(t.destination),this.unsubscribe()},e.prototype.scheduleMessage=function(t){this.destination.add(this.scheduler.schedule(e.dispatch,this.delay,new lE(t,this.destination)))},e.prototype._next=function(t){this.scheduleMessage(iE.createNext(t))},e.prototype._error=function(t){this.scheduleMessage(iE.createError(t)),this.unsubscribe()},e.prototype._complete=function(){this.scheduleMessage(iE.createComplete()),this.unsubscribe()},e}(T),lE=function(t,e){this.notification=t,this.destination=e},uE=function(t){function e(e,n,r){void 0===e&&(e=Number.POSITIVE_INFINITY),void 0===n&&(n=Number.POSITIVE_INFINITY);var i=t.call(this)||this;return i.scheduler=r,i._events=[],i._infiniteTimeWindow=!1,i._bufferSize=e<1?1:e,i._windowTime=n<1?1:n,n===Number.POSITIVE_INFINITY?(i._infiniteTimeWindow=!0,i.next=i.nextInfiniteTimeWindow):i.next=i.nextTimeWindow,i}return o(e,t),e.prototype.nextInfiniteTimeWindow=function(e){var n=this._events;n.push(e),n.length>this._bufferSize&&n.shift(),t.prototype.next.call(this,e)},e.prototype.nextTimeWindow=function(e){this._events.push(new cE(this._getNow(),e)),this._trimBufferThenGetEvents(),t.prototype.next.call(this,e)},e.prototype._subscribe=function(t){var e,n=this._infiniteTimeWindow,r=n?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,o=r.length;if(this.closed)throw new j;if(this.isStopped||this.hasError?e=S.EMPTY:(this.observers.push(t),e=new B(this,t)),i&&t.add(t=new aE(t,i)),n)for(var s=0;se&&(o=Math.max(o,i-e)),o>0&&r.splice(0,o),r},e}(z),cE=function(t,e){this.time=t,this.value=e},hE="inline",dE=["row","column","row-reverse","column-reverse"];function pE(t){var e=(t=t?t.toLowerCase():"").split(" "),n=e[0],r=e[1],i=e[2];return dE.find(function(t){return t===n})||(n=dE[0]),r===hE&&(r=i!==hE?i:"",i=hE),[n,function(t){if(t)switch(t.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":t="wrap-reverse";break;case"no":case"none":case"nowrap":t="nowrap";break;default:t="wrap"}return t}(r),!!i]}function fE(t){return pE(t)[0].indexOf("row")>-1}var mE=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i._announcer=new uE(1),i.layout$=i._announcer.asObservable(),i}return o(e,t),Object.defineProperty(e.prototype,"layout",{set:function(t){this._cacheInput("layout",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"layoutXs",{set:function(t){this._cacheInput("layoutXs",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"layoutSm",{set:function(t){this._cacheInput("layoutSm",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"layoutMd",{set:function(t){this._cacheInput("layoutMd",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"layoutLg",{set:function(t){this._cacheInput("layoutLg",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"layoutXl",{set:function(t){this._cacheInput("layoutXl",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"layoutGtXs",{set:function(t){this._cacheInput("layoutGtXs",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"layoutGtSm",{set:function(t){this._cacheInput("layoutGtSm",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"layoutGtMd",{set:function(t){this._cacheInput("layoutGtMd",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"layoutGtLg",{set:function(t){this._cacheInput("layoutGtLg",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"layoutLtSm",{set:function(t){this._cacheInput("layoutLtSm",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"layoutLtMd",{set:function(t){this._cacheInput("layoutLtMd",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"layoutLtLg",{set:function(t){this._cacheInput("layoutLtLg",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"layoutLtXl",{set:function(t){this._cacheInput("layoutLtXl",t)},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(t){(null!=t.layout||this._mqActivation)&&this._updateWithDirection()},e.prototype.ngOnInit=function(){var e=this;t.prototype.ngOnInit.call(this),this._listenForMediaQueryChanges("layout","row",function(t){e._updateWithDirection(t.value)})},e.prototype._updateWithDirection=function(t){t=t||this._queryInput("layout")||"row",this._mqActivation&&(t=this._mqActivation.activatedInput);var e=function(t){var e=pE(t);return function(t,n,r){return void 0===n&&(n=null),void 0===r&&(r=!1),{display:r?"inline-flex":"flex","box-sizing":"border-box","flex-direction":e[0],"flex-wrap":n||null}}(0,e[1],e[2])}(t||"");this._applyStyleToElement(e),this._announcer.next({direction:e["flex-direction"],wrap:!!e["flex-wrap"]&&"nowrap"!==e["flex-wrap"]})},e}(YS),yE=function(t){function e(e,n,r,i,o,s){var a=t.call(this,e,n,s)||this;return a._zone=i,a._directionality=o,a._layout="row",r&&(a._layoutWatcher=r.layout$.subscribe(a._onLayoutChange.bind(a))),a._directionWatcher=a._directionality.change.subscribe(a._updateWithValue.bind(a)),a}return o(e,t),Object.defineProperty(e.prototype,"gap",{set:function(t){this._cacheInput("gap",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gapXs",{set:function(t){this._cacheInput("gapXs",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gapSm",{set:function(t){this._cacheInput("gapSm",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gapMd",{set:function(t){this._cacheInput("gapMd",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gapLg",{set:function(t){this._cacheInput("gapLg",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gapXl",{set:function(t){this._cacheInput("gapXl",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gapGtXs",{set:function(t){this._cacheInput("gapGtXs",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gapGtSm",{set:function(t){this._cacheInput("gapGtSm",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gapGtMd",{set:function(t){this._cacheInput("gapGtMd",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gapGtLg",{set:function(t){this._cacheInput("gapGtLg",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gapLtSm",{set:function(t){this._cacheInput("gapLtSm",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gapLtMd",{set:function(t){this._cacheInput("gapLtMd",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gapLtLg",{set:function(t){this._cacheInput("gapLtLg",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gapLtXl",{set:function(t){this._cacheInput("gapLtXl",t)},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(t){(null!=t.gap||this._mqActivation)&&this._updateWithValue()},e.prototype.ngAfterContentInit=function(){var t=this;this._watchContentChanges(),this._listenForMediaQueryChanges("gap","0",function(e){t._updateWithValue(e.value)}),this._updateWithValue()},e.prototype.ngOnDestroy=function(){t.prototype.ngOnDestroy.call(this),this._layoutWatcher&&this._layoutWatcher.unsubscribe(),this._observer&&this._observer.disconnect(),this._directionWatcher&&this._directionWatcher.unsubscribe()},e.prototype._watchContentChanges=function(){var t=this;this._zone.runOutsideAngular(function(){"undefined"!=typeof MutationObserver&&(t._observer=new MutationObserver(function(e){e.some(function(t){return t.addedNodes&&t.addedNodes.length>0||t.removedNodes&&t.removedNodes.length>0})&&t._updateWithValue()}),t._observer.observe(t.nativeElement,{childList:!0}))})},e.prototype._onLayoutChange=function(t){var e=this;this._layout=(t.direction||"").toLowerCase(),dE.find(function(t){return t===e._layout})||(this._layout="row"),this._updateWithValue()},e.prototype._updateWithValue=function(t){var e=this,n=t||this._queryInput("gap")||"0";this._mqActivation&&(n=this._mqActivation.activatedInput);var r=this.childrenNodes.filter(function(t){return 1===t.nodeType&&"none"!=e._getDisplayStyle(t)}).sort(function(t,n){var r=+e._styler.lookupStyle(t,"order"),i=+e._styler.lookupStyle(n,"order");return isNaN(r)||isNaN(i)||r===i?0:r>i?1:-1});if(r.length>0)if(n.endsWith(vE))n=n.substring(0,n.indexOf(vE)),this._applyStyleToElements(this._buildGridPadding(n),r),this._applyStyleToElement(this._buildGridMargin(n));else{var i=r.pop();this._applyStyleToElements(this._buildCSS(n),r),this._applyStyleToElements(this._buildCSS(),[i])}},e.prototype._buildGridPadding=function(t){var e="0px",n="0px";return"rtl"===this._directionality.value?n=t:e=t,{padding:"0px "+e+" "+t+" "+n}},e.prototype._buildGridMargin=function(t){var e="0px",n="0px";return"rtl"===this._directionality.value?n="-"+t:e="-"+t,{margin:"0px "+e+" -"+t+" "+n}},e.prototype._buildCSS=function(t){var e;void 0===t&&(t=null);var n={"margin-left":null,"margin-right":null,"margin-top":null,"margin-bottom":null};switch(this._layout){case"column":e="margin-bottom";break;case"column-reverse":e="margin-top";break;case"row":e="rtl"===this._directionality.value?"margin-left":"margin-right";break;case"row-reverse":e="rtl"===this._directionality.value?"margin-right":"margin-left";break;default:e="rtl"===this._directionality.value?"margin-left":"margin-right"}return n[e]=t,n},e}(YS),vE=" grid";function gE(t){for(var e=[],n=1;n0)r[2]=eE(t.substring(i).trim()),2==(o=t.substr(0,i).trim().split(" ")).length&&(r[0]=o[0],r[1]=o[1]);else if(0==i)r[2]=eE(t.trim());else{var o;r=3===(o=t.split(" ")).length?o:[e,n,t]}return r}(String(e).replace(";",""),this._queryInput("grow"),this._queryInput("shrink"));this._applyStyleToElement(this._validateValue.apply(this,n))},e.prototype._validateValue=function(t,e,n){var r=this._getFlexFlowDirection(this.parentElement,!1!==this.layoutConfig.addFlexToParent).indexOf("column")>-1?"column":"row",i=fE(r)?"max-width":"max-height",o=fE(r)?"min-width":"min-height",s=String(n).indexOf("calc")>-1,a=s||"auto"==n,l=String(n).indexOf("%")>-1&&!s,u=String(n).indexOf("px")>-1||String(n).indexOf("em")>-1||String(n).indexOf("vw")>-1||String(n).indexOf("vh")>-1,c=String(n).indexOf("px")>-1||a,h=s||u;t="0"==t?0:t,e="0"==e?0:e;var d=!t&&!e,p={},f={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(n||""){case"":n="row"===r?"0%":!1!==this.layoutConfig.useColumnBasisZero?"0.000000001px":"auto";break;case"initial":case"nogrow":t=0,n="auto";break;case"grow":n="100%";break;case"noshrink":e=0,n="auto";break;case"auto":break;case"none":t=0,e=0,n="auto";break;default:h||l||isNaN(n)||(n+="%"),"0%"===n&&(h=!0),"0px"===n&&(n="0%"),p=gE(f,s?{"flex-grow":t,"flex-shrink":e,"flex-basis":h?n:"100%"}:{flex:t+" "+e+" "+(h?n:"100%")})}return p.flex||p["flex-grow"]||(p=gE(f,s?{"flex-grow":t,"flex-shrink":e,"flex-basis":n}:{flex:t+" "+e+" "+n})),"0%"!==n&&"0px"!==n&&"0.000000001px"!==n&&"auto"!==n&&(p[o]=d||c&&t?n:null,p[i]=d||!a&&e?n:null),p[o]||p[i]?this._layout&&this._layout.wrap&&(p[s?"flex-basis":"flex"]=p[i]?s?p[i]:t+" "+e+" "+p[i]:s?p[o]:t+" "+e+" "+p[o]):p=gE(f,s?{"flex-grow":t,"flex-shrink":e,"flex-basis":n}:{flex:t+" "+e+" "+n}),gE(p,{"box-sizing":"border-box"})},e}(YS),_E=function(t){function e(e,n,r,i){var o=t.call(this,e,n,i)||this;return o._layout="row",r&&(o._layoutWatcher=r.layout$.subscribe(o._onLayoutChange.bind(o))),o}return o(e,t),Object.defineProperty(e.prototype,"align",{set:function(t){this._cacheInput("align",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"alignXs",{set:function(t){this._cacheInput("alignXs",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"alignSm",{set:function(t){this._cacheInput("alignSm",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"alignMd",{set:function(t){this._cacheInput("alignMd",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"alignLg",{set:function(t){this._cacheInput("alignLg",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"alignXl",{set:function(t){this._cacheInput("alignXl",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"alignGtXs",{set:function(t){this._cacheInput("alignGtXs",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"alignGtSm",{set:function(t){this._cacheInput("alignGtSm",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"alignGtMd",{set:function(t){this._cacheInput("alignGtMd",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"alignGtLg",{set:function(t){this._cacheInput("alignGtLg",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"alignLtSm",{set:function(t){this._cacheInput("alignLtSm",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"alignLtMd",{set:function(t){this._cacheInput("alignLtMd",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"alignLtLg",{set:function(t){this._cacheInput("alignLtLg",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"alignLtXl",{set:function(t){this._cacheInput("alignLtXl",t)},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(t){(null!=t.align||this._mqActivation)&&this._updateWithValue()},e.prototype.ngOnInit=function(){var e=this;t.prototype.ngOnInit.call(this),this._listenForMediaQueryChanges("align","start stretch",function(t){e._updateWithValue(t.value)})},e.prototype.ngOnDestroy=function(){t.prototype.ngOnDestroy.call(this),this._layoutWatcher&&this._layoutWatcher.unsubscribe()},e.prototype._updateWithValue=function(t){t=t||this._queryInput("align")||"start stretch",this._mqActivation&&(t=this._mqActivation.activatedInput),this._applyStyleToElement(this._buildCSS(t)),this._allowStretching(t,this._layout?this._layout:"row")},e.prototype._onLayoutChange=function(t){var e=this;this._layout=(t.direction||"").toLowerCase(),dE.find(function(t){return t===e._layout})||(this._layout="row");var n=this._queryInput("align")||"start stretch";this._mqActivation&&(n=this._mqActivation.activatedInput),this._allowStretching(n,this._layout||"row")},e.prototype._buildCSS=function(t){var e={},n=t.split(" "),r=n[1];switch(n[0]){case"center":e["justify-content"]="center";break;case"space-around":e["justify-content"]="space-around";break;case"space-between":e["justify-content"]="space-between";break;case"space-evenly":e["justify-content"]="space-evenly";break;case"end":case"flex-end":e["justify-content"]="flex-end";break;case"start":case"flex-start":default:e["justify-content"]="flex-start"}switch(r){case"start":case"flex-start":e["align-items"]=e["align-content"]="flex-start";break;case"baseline":e["align-items"]="baseline";break;case"center":e["align-items"]=e["align-content"]="center";break;case"end":case"flex-end":e["align-items"]=e["align-content"]="flex-end";break;case"stretch":default:e["align-items"]=e["align-content"]="stretch"}return gE(e,{display:"flex","flex-direction":this._layout||"row","box-sizing":"border-box"})},e.prototype._allowStretching=function(t,e){"stretch"==t.split(" ")[1]&&this._applyStyleToElement({"box-sizing":"border-box","max-width":fE(e)?null:"100%","max-height":fE(e)?"100%":null})},e}(YS),wE=function(){},SE=function(){function t(t){this.http=t,this.url="api-users"}return t.prototype.newUser=function(t,e,n,r){var i=this,o=JSON.stringify([t,e,n,r]),s=new Pc({"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"}),a=new Wc({headers:s});return this.http.post(this.url+"/new",o,a).pipe(nt(function(t){return t.json()}),oh(function(t){return i.handleError(t)}))},t.prototype.handleError=function(t){return Yw(t.status)},t}(),EE=function(){function t(t,e,n){this.authenticationService=t,this.userService=e,this.router=n,this.loginView=!0,this.roleUserSignup="student"}return t.prototype.ngOnInit=function(){},t.prototype.ngAfterViewChecked=function(){this.authenticationService.isLoggedIn()&&this.router.navigate(["/lessons"])},t.prototype.setLoginView=function(t){this.fieldsIncorrect=!1,this.loginView=t},t.prototype.onSubmit=function(){console.log("Submit: email = "+this.email+" , password = "+this.password+", confirmPassword = "+this.confirmPassword),this.submitProcessing=!0,this.loginView?(console.log("Logging in..."),this.logIn(this.email,this.password)):(console.log("Signing up..."),this.signUp())},t.prototype.logIn=function(t,e){var n=this;this.authenticationService.logIn(t,e).subscribe(function(t){n.submitProcessing=!1,console.log("Login succesful! LOGGED AS "+n.authenticationService.getCurrentUser().name),n.fieldsIncorrect=!1,n.router.navigate(["/lessons"])},function(t){console.log("Login failed (error): "+t),n.errorTitle="Invalid field",n.errorContent="Please check your email or password",n.customClass="fail",n.handleError()})},t.prototype.signUp=function(){var t=this;if(this.password!==this.confirmPassword)this.errorTitle="Your passwords don't match!",this.errorContent="",this.customClass="fail",this.handleError();else{var e=this.email,n=this.password;this.userService.newUser(e,n,this.nickName,this.roleUserSignup).subscribe(function(r){t.logIn(e,n),console.log("Sign up succesful!")},function(e){console.log("Sign up failed (error): "+e),409===e?(t.errorTitle="Invalid email",t.errorContent="That email is already in use",t.customClass="fail"):403===e&&(t.errorTitle="Invalid email format",t.errorContent="Our server has rejected that email",t.customClass="fail"),t.handleError()})}},t.prototype.handleError=function(){this.submitProcessing=!1,this.fieldsIncorrect=!0},t}(),CE=ci({encapsulation:0,styles:[["h1[_ngcontent-%COMP%]{text-align:center;display:block}mat-form-field[_ngcontent-%COMP%]{width:100%}mat-card-actions[_ngcontent-%COMP%]{padding-left:10px;padding-right:10px;color:#9e9e9e}.btn-container[_ngcontent-%COMP%]{text-align:center;padding-top:20px}.card-button[_ngcontent-%COMP%]{margin-left:10px!important}.radio-button-div[_ngcontent-%COMP%]{text-align:center;margin-bottom:10px}#sign-up-as[_ngcontent-%COMP%]{color:#9e9e9e;display:block;margin-top:15px;margin-bottom:10px}table[_ngcontent-%COMP%]{margin:30px auto 0;text-align:left}"]],data:{}});function xE(t){return ts(0,[(t()(),Fi(0,0,null,null,1,"div",[["class","cssload-container"]],null,null,null,null,null)),(t()(),Fi(1,0,null,null,0,"div",[["class","cssload-tube-tunnel"]],null,null,null,null,null))],null,null)}function kE(t){return ts(0,[(t()(),Fi(0,0,null,null,19,"div",[],null,null,null,null,null)),(t()(),Fi(1,0,null,null,18,"mat-form-field",[["class","mat-form-field"]],[[2,"mat-form-field-appearance-standard",null],[2,"mat-form-field-appearance-fill",null],[2,"mat-form-field-appearance-outline",null],[2,"mat-form-field-appearance-legacy",null],[2,"mat-form-field-invalid",null],[2,"mat-form-field-can-float",null],[2,"mat-form-field-should-float",null],[2,"mat-form-field-hide-placeholder",null],[2,"mat-form-field-disabled",null],[2,"mat-form-field-autofilled",null],[2,"mat-focused",null],[2,"mat-accent",null],[2,"mat-warn",null],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null],[2,"_mat-animation-noopable",null]],null,null,m_,r_)),Oo(2,7389184,null,7,Zb,[Vn,Gn,[2,Up],[2,Wh],[2,Yb],td,dn,[2,Ay]],null,null),qo(335544320,8,{_control:0}),qo(335544320,9,{_placeholderChild:0}),qo(335544320,10,{_labelChild:0}),qo(603979776,11,{_errorChildren:1}),qo(603979776,12,{_hintChildren:1}),qo(603979776,13,{_prefixChildren:1}),qo(603979776,14,{_suffixChildren:1}),(t()(),Fi(10,0,null,1,9,"input",[["autocomplete","off"],["class","mat-input-element mat-form-field-autofill-control"],["id","nickName"],["matInput",""],["name","nickName"],["placeholder","Name"],["required",""],["type","text"]],[[1,"required",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null],[2,"mat-input-server",null],[1,"id",0],[1,"placeholder",0],[8,"disabled",0],[8,"required",0],[8,"readOnly",0],[1,"aria-describedby",0],[1,"aria-invalid",0],[1,"aria-required",0]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"focus"]],function(t,e,n){var r=!0,i=t.component;return"input"===e&&(r=!1!==fo(t,11)._handleInput(n.target.value)&&r),"blur"===e&&(r=!1!==fo(t,11).onTouched()&&r),"compositionstart"===e&&(r=!1!==fo(t,11)._compositionStart()&&r),"compositionend"===e&&(r=!1!==fo(t,11)._compositionEnd(n.target.value)&&r),"blur"===e&&(r=!1!==fo(t,18)._focusChanged(!1)&&r),"focus"===e&&(r=!1!==fo(t,18)._focusChanged(!0)&&r),"input"===e&&(r=!1!==fo(t,18)._onInput()&&r),"ngModelChange"===e&&(r=!1!==(i.nickName=n)&&r),r},null,null)),Oo(11,16384,null,0,R_,[Ln,Vn,[2,P_]],null,null),Oo(12,16384,null,0,bw,[],{required:[0,"required"]},null),Io(1024,null,w_,function(t){return[t]},[bw]),Io(1024,null,I_,function(t){return[t]},[R_]),Oo(15,671744,null,0,vw,[[2,b_],[6,w_],[8,null],[6,I_]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),Io(2048,null,L_,null,[vw]),Oo(17,16384,null,0,rw,[[4,L_]],null,null),Oo(18,999424,null,0,Iw,[Vn,td,[6,L_],[2,pw],[2,gw],Ap,[8,null],Cw,dn],{id:[0,"id"],placeholder:[1,"placeholder"],required:[2,"required"],type:[3,"type"]},null),Io(2048,[[8,4]],Gb,null,[Iw])],function(t,e){var n=e.component;t(e,12,0,""),t(e,15,0,"nickName",n.nickName),t(e,18,0,"nickName","Name","","text")},function(t,e){t(e,1,1,["standard"==fo(e,2).appearance,"fill"==fo(e,2).appearance,"outline"==fo(e,2).appearance,"legacy"==fo(e,2).appearance,fo(e,2)._control.errorState,fo(e,2)._canLabelFloat,fo(e,2)._shouldLabelFloat(),fo(e,2)._hideControlPlaceholder(),fo(e,2)._control.disabled,fo(e,2)._control.autofilled,fo(e,2)._control.focused,"accent"==fo(e,2).color,"warn"==fo(e,2).color,fo(e,2)._shouldForward("untouched"),fo(e,2)._shouldForward("touched"),fo(e,2)._shouldForward("pristine"),fo(e,2)._shouldForward("dirty"),fo(e,2)._shouldForward("valid"),fo(e,2)._shouldForward("invalid"),fo(e,2)._shouldForward("pending"),!fo(e,2)._animationsEnabled]),t(e,10,1,[fo(e,12).required?"":null,fo(e,17).ngClassUntouched,fo(e,17).ngClassTouched,fo(e,17).ngClassPristine,fo(e,17).ngClassDirty,fo(e,17).ngClassValid,fo(e,17).ngClassInvalid,fo(e,17).ngClassPending,fo(e,18)._isServer,fo(e,18).id,fo(e,18).placeholder,fo(e,18).disabled,fo(e,18).required,fo(e,18).readonly,fo(e,18)._ariaDescribedby||null,fo(e,18).errorState,fo(e,18).required.toString()])})}function OE(t){return ts(0,[(t()(),Fi(0,0,null,null,19,"div",[],null,null,null,null,null)),(t()(),Fi(1,0,null,null,18,"mat-form-field",[["class","mat-form-field"]],[[2,"mat-form-field-appearance-standard",null],[2,"mat-form-field-appearance-fill",null],[2,"mat-form-field-appearance-outline",null],[2,"mat-form-field-appearance-legacy",null],[2,"mat-form-field-invalid",null],[2,"mat-form-field-can-float",null],[2,"mat-form-field-should-float",null],[2,"mat-form-field-hide-placeholder",null],[2,"mat-form-field-disabled",null],[2,"mat-form-field-autofilled",null],[2,"mat-focused",null],[2,"mat-accent",null],[2,"mat-warn",null],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null],[2,"_mat-animation-noopable",null]],null,null,m_,r_)),Oo(2,7389184,null,7,Zb,[Vn,Gn,[2,Up],[2,Wh],[2,Yb],td,dn,[2,Ay]],null,null),qo(335544320,22,{_control:0}),qo(335544320,23,{_placeholderChild:0}),qo(335544320,24,{_labelChild:0}),qo(603979776,25,{_errorChildren:1}),qo(603979776,26,{_hintChildren:1}),qo(603979776,27,{_prefixChildren:1}),qo(603979776,28,{_suffixChildren:1}),(t()(),Fi(10,0,null,1,9,"input",[["autocomplete","off"],["class","mat-input-element mat-form-field-autofill-control"],["id","confirmPassword"],["matInput",""],["name","confirmPassword"],["placeholder","Confirm password"],["required",""],["type","password"]],[[1,"required",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null],[2,"mat-input-server",null],[1,"id",0],[1,"placeholder",0],[8,"disabled",0],[8,"required",0],[8,"readOnly",0],[1,"aria-describedby",0],[1,"aria-invalid",0],[1,"aria-required",0]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"focus"]],function(t,e,n){var r=!0,i=t.component;return"input"===e&&(r=!1!==fo(t,11)._handleInput(n.target.value)&&r),"blur"===e&&(r=!1!==fo(t,11).onTouched()&&r),"compositionstart"===e&&(r=!1!==fo(t,11)._compositionStart()&&r),"compositionend"===e&&(r=!1!==fo(t,11)._compositionEnd(n.target.value)&&r),"blur"===e&&(r=!1!==fo(t,18)._focusChanged(!1)&&r),"focus"===e&&(r=!1!==fo(t,18)._focusChanged(!0)&&r),"input"===e&&(r=!1!==fo(t,18)._onInput()&&r),"ngModelChange"===e&&(r=!1!==(i.confirmPassword=n)&&r),r},null,null)),Oo(11,16384,null,0,R_,[Ln,Vn,[2,P_]],null,null),Oo(12,16384,null,0,bw,[],{required:[0,"required"]},null),Io(1024,null,w_,function(t){return[t]},[bw]),Io(1024,null,I_,function(t){return[t]},[R_]),Oo(15,671744,null,0,vw,[[2,b_],[6,w_],[8,null],[6,I_]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),Io(2048,null,L_,null,[vw]),Oo(17,16384,null,0,rw,[[4,L_]],null,null),Oo(18,999424,null,0,Iw,[Vn,td,[6,L_],[2,pw],[2,gw],Ap,[8,null],Cw,dn],{id:[0,"id"],placeholder:[1,"placeholder"],required:[2,"required"],type:[3,"type"]},null),Io(2048,[[22,4]],Gb,null,[Iw])],function(t,e){var n=e.component;t(e,12,0,""),t(e,15,0,"confirmPassword",n.confirmPassword),t(e,18,0,"confirmPassword","Confirm password","","password")},function(t,e){t(e,1,1,["standard"==fo(e,2).appearance,"fill"==fo(e,2).appearance,"outline"==fo(e,2).appearance,"legacy"==fo(e,2).appearance,fo(e,2)._control.errorState,fo(e,2)._canLabelFloat,fo(e,2)._shouldLabelFloat(),fo(e,2)._hideControlPlaceholder(),fo(e,2)._control.disabled,fo(e,2)._control.autofilled,fo(e,2)._control.focused,"accent"==fo(e,2).color,"warn"==fo(e,2).color,fo(e,2)._shouldForward("untouched"),fo(e,2)._shouldForward("touched"),fo(e,2)._shouldForward("pristine"),fo(e,2)._shouldForward("dirty"),fo(e,2)._shouldForward("valid"),fo(e,2)._shouldForward("invalid"),fo(e,2)._shouldForward("pending"),!fo(e,2)._animationsEnabled]),t(e,10,1,[fo(e,12).required?"":null,fo(e,17).ngClassUntouched,fo(e,17).ngClassTouched,fo(e,17).ngClassPristine,fo(e,17).ngClassDirty,fo(e,17).ngClassValid,fo(e,17).ngClassInvalid,fo(e,17).ngClassPending,fo(e,18)._isServer,fo(e,18).id,fo(e,18).placeholder,fo(e,18).disabled,fo(e,18).required,fo(e,18).readonly,fo(e,18)._ariaDescribedby||null,fo(e,18).errorState,fo(e,18).required.toString()])})}function IE(t){return ts(0,[(t()(),Fi(0,0,null,null,15,"div",[["class","radio-button-div"]],null,null,null,null,null)),(t()(),Fi(1,0,null,null,1,"span",[["id","sign-up-as"]],null,null,null,null,null)),(t()(),Zo(-1,null,["Sign up as..."])),(t()(),Fi(3,0,null,null,12,"mat-radio-group",[["class","mat-radio-group"],["id","roleUserSignup"],["name","roleUserSignup"],["role","radiogroup"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"]],function(t,e,n){var r=!0;return"ngModelChange"===e&&(r=!1!==(t.component.roleUserSignup=n)&&r),r},null,null)),Oo(4,1064960,null,1,Aw,[Gn],{name:[0,"name"]},null),qo(603979776,29,{_radios:1}),Io(1024,null,I_,function(t){return[t]},[Aw]),Oo(7,671744,null,0,vw,[[2,b_],[8,null],[8,null],[6,I_]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),Io(2048,null,L_,null,[vw]),Oo(9,16384,null,0,rw,[[4,L_]],null,null),(t()(),Fi(10,0,null,null,2,"mat-radio-button",[["class","mat-radio-button"],["value","student"]],[[2,"mat-radio-checked",null],[2,"mat-radio-disabled",null],[2,"_mat-animation-noopable",null],[1,"id",0]],[[null,"focus"]],function(t,e,n){var r=!0;return"focus"===e&&(r=!1!==fo(t,11)._inputElement.nativeElement.focus()&&r),r},Vw,Lw)),Oo(11,4440064,[[29,4]],0,Nw,[[2,Aw],Vn,Gn,xp,Mw,[2,Ay]],{value:[0,"value"]},null),(t()(),Zo(-1,0,["Student"])),(t()(),Fi(13,0,null,null,2,"mat-radio-button",[["class","mat-radio-button"],["value","teacher"]],[[2,"mat-radio-checked",null],[2,"mat-radio-disabled",null],[2,"_mat-animation-noopable",null],[1,"id",0]],[[null,"focus"]],function(t,e,n){var r=!0;return"focus"===e&&(r=!1!==fo(t,14)._inputElement.nativeElement.focus()&&r),r},Vw,Lw)),Oo(14,4440064,[[29,4]],0,Nw,[[2,Aw],Vn,Gn,xp,Mw,[2,Ay]],{value:[0,"value"]},null),(t()(),Zo(-1,0,["Teacher"]))],function(t,e){var n=e.component;t(e,4,0,"roleUserSignup"),t(e,7,0,"roleUserSignup",n.roleUserSignup),t(e,11,0,"student"),t(e,14,0,"teacher")},function(t,e){t(e,3,0,fo(e,9).ngClassUntouched,fo(e,9).ngClassTouched,fo(e,9).ngClassPristine,fo(e,9).ngClassDirty,fo(e,9).ngClassValid,fo(e,9).ngClassInvalid,fo(e,9).ngClassPending),t(e,10,0,fo(e,11).checked,fo(e,11).disabled,"NoopAnimations"===fo(e,11)._animationMode,fo(e,11).id),t(e,13,0,fo(e,14).checked,fo(e,14).disabled,"NoopAnimations"===fo(e,14)._animationMode,fo(e,14).id)})}function TE(t){return ts(0,[(t()(),Fi(0,0,null,null,1,"app-error-message",[],null,[[null,"eventShowable"]],function(t,e,n){var r=!0;return"eventShowable"===e&&(r=0!=(t.component.fieldsIncorrect=!1)&&r),r},ES,wS)),Oo(1,49152,null,0,_S,[],{errorTitle:[0,"errorTitle"],errorContent:[1,"errorContent"],customClass:[2,"customClass"],closable:[3,"closable"]},{eventShowable:"eventShowable"})],function(t,e){var n=e.component;t(e,1,0,n.errorTitle,n.errorContent,n.customClass,!0)},null)}function PE(t){return ts(0,[(t()(),Fi(0,0,null,null,2,"button",[["color","accent"],["id","log-in-btn"],["mat-raised-button",""],["type","submit"]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],null,null,My,Dy)),Oo(1,180224,null,0,mf,[Vn,td,xp,[2,Ay]],{color:[0,"color"]},null),(t()(),Zo(-1,0,["Log in"]))],function(t,e){t(e,1,0,"accent")},function(t,e){t(e,0,0,fo(e,1).disabled||null,"NoopAnimations"===fo(e,1)._animationMode)})}function RE(t){return ts(0,[(t()(),Fi(0,0,null,null,2,"button",[["color","primary"],["id","sign-up-btn"],["mat-raised-button",""],["type","submit"]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],null,null,My,Dy)),Oo(1,180224,null,0,mf,[Vn,td,xp,[2,Ay]],{color:[0,"color"]},null),(t()(),Zo(-1,0,["Sign up"]))],function(t,e){t(e,1,0,"primary")},function(t,e){t(e,0,0,fo(e,1).disabled||null,"NoopAnimations"===fo(e,1)._animationMode)})}function AE(t){return ts(0,[(t()(),Fi(0,0,null,null,22,"div",[],null,null,null,null,null)),(t()(),Fi(1,0,null,null,21,"table",[],null,null,null,null,null)),(t()(),Fi(2,0,null,null,20,"tbody",[],null,null,null,null,null)),(t()(),Fi(3,0,null,null,4,"tr",[],null,null,null,null,null)),(t()(),Fi(4,0,null,null,1,"th",[],null,null,null,null,null)),(t()(),Zo(-1,null,["Email"])),(t()(),Fi(6,0,null,null,1,"th",[],null,null,null,null,null)),(t()(),Zo(-1,null,["Password"])),(t()(),Fi(8,0,null,null,4,"tr",[],null,null,null,null,null)),(t()(),Fi(9,0,null,null,1,"td",[],null,null,null,null,null)),(t()(),Zo(-1,null,["teacher@gmail.com"])),(t()(),Fi(11,0,null,null,1,"td",[],null,null,null,null,null)),(t()(),Zo(-1,null,["pass"])),(t()(),Fi(13,0,null,null,4,"tr",[],null,null,null,null,null)),(t()(),Fi(14,0,null,null,1,"td",[],null,null,null,null,null)),(t()(),Zo(-1,null,["student1@gmail.com"])),(t()(),Fi(16,0,null,null,1,"td",[],null,null,null,null,null)),(t()(),Zo(-1,null,["pass"])),(t()(),Fi(18,0,null,null,4,"tr",[],null,null,null,null,null)),(t()(),Fi(19,0,null,null,1,"td",[],null,null,null,null,null)),(t()(),Zo(-1,null,["student2@gmail.com"])),(t()(),Fi(21,0,null,null,1,"td",[],null,null,null,null,null)),(t()(),Zo(-1,null,["pass"]))],null,null)}function NE(t){return ts(0,[(t()(),Fi(0,0,null,null,4,"div",[],null,null,null,null,null)),(t()(),Zo(-1,null,["Not registered yet?"])),(t()(),Fi(2,0,null,null,2,"button",[["class","card-button"],["mat-button",""]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(t.component.setLoginView(!1),r=!1!==fo(t.parent,16).reset()&&r),r},My,Dy)),Oo(3,180224,null,0,mf,[Vn,td,xp,[2,Ay]],null,null),(t()(),Zo(-1,0,["Sign up"]))],null,function(t,e){t(e,2,0,fo(e,3).disabled||null,"NoopAnimations"===fo(e,3)._animationMode)})}function DE(t){return ts(0,[(t()(),Fi(0,0,null,null,4,"div",[],null,null,null,null,null)),(t()(),Zo(-1,null,["Already registered?"])),(t()(),Fi(2,0,null,null,2,"button",[["class","card-button"],["mat-button",""]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(t.component.setLoginView(!0),r=!1!==fo(t.parent,16).reset()&&r),r},My,Dy)),Oo(3,180224,null,0,mf,[Vn,td,xp,[2,Ay]],null,null),(t()(),Zo(-1,0,["Log in"]))],null,function(t,e){t(e,2,0,fo(e,3).disabled||null,"NoopAnimations"===fo(e,3)._animationMode)})}function ME(t){return ts(0,[(t()(),Fi(0,0,null,null,81,"div",[["fxLayout","row"],["fxLayoutAlign","center center"]],null,null,null,null,null)),Oo(1,737280,null,0,mE,[ZS,Vn,$S],{layout:[0,"layout"]},null),Oo(2,737280,null,0,_E,[ZS,Vn,[6,mE],$S],{align:[0,"align"]},null),(t()(),Fi(3,0,null,null,78,"div",[["class","div-inner-main"]],[[4,"xs",null]],null,null,null,null)),Yo(4,{width:0}),(t()(),Fi(5,0,null,null,1,"h1",[],null,null,null,null,null)),(t()(),Zo(-1,null,["OpenVidu Classroom Demo"])),(t()(),Fi(7,0,null,null,74,"div",[["fxLayout","column"],["fxLayoutAlign","space-around center"]],null,null,null,null,null)),Oo(8,737280,null,0,mE,[ZS,Vn,$S],{layout:[0,"layout"]},null),Oo(9,737280,null,0,_E,[ZS,Vn,[6,mE],$S],{align:[0,"align"]},null),(t()(),Fi(10,0,null,null,71,"mat-card",[["class","mat-card"]],null,null,null,bS,gS)),Oo(11,49152,null,0,yS,[],null,null),(t()(),Fi(12,0,null,0,63,"mat-card-content",[["class","mat-card-content"]],null,null,null,null,null)),Oo(13,16384,null,0,dS,[],null,null),(t()(),Vi(16777216,null,null,1,null,xE)),Oo(15,16384,null,0,nu,[Wn,Hn],{ngIf:[0,"ngIf"]},null),(t()(),Fi(16,0,[["myForm",1]],null,57,"form",[["novalidate",""]],[[2,"filtered",null],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngSubmit"],[null,"submit"],[null,"reset"]],function(t,e,n){var r=!0,i=t.component;return"submit"===e&&(r=!1!==fo(t,18).onSubmit(n)&&r),"reset"===e&&(r=!1!==fo(t,18).onReset()&&r),"ngSubmit"===e&&(r=!1!==i.onSubmit()&&r),r},null,null)),Oo(17,16384,null,0,_w,[],null,null),Oo(18,4210688,null,0,pw,[[8,null],[8,null]],null,{ngSubmit:"ngSubmit"}),Io(2048,null,b_,null,[pw]),Oo(20,16384,null,0,iw,[[4,b_]],null,null),(t()(),Fi(21,0,null,null,19,"div",[],null,null,null,null,null)),(t()(),Fi(22,0,null,null,18,"mat-form-field",[["class","mat-form-field"]],[[2,"mat-form-field-appearance-standard",null],[2,"mat-form-field-appearance-fill",null],[2,"mat-form-field-appearance-outline",null],[2,"mat-form-field-appearance-legacy",null],[2,"mat-form-field-invalid",null],[2,"mat-form-field-can-float",null],[2,"mat-form-field-should-float",null],[2,"mat-form-field-hide-placeholder",null],[2,"mat-form-field-disabled",null],[2,"mat-form-field-autofilled",null],[2,"mat-focused",null],[2,"mat-accent",null],[2,"mat-warn",null],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null],[2,"_mat-animation-noopable",null]],null,null,m_,r_)),Oo(23,7389184,null,7,Zb,[Vn,Gn,[2,Up],[2,Wh],[2,Yb],td,dn,[2,Ay]],null,null),qo(335544320,1,{_control:0}),qo(335544320,2,{_placeholderChild:0}),qo(335544320,3,{_labelChild:0}),qo(603979776,4,{_errorChildren:1}),qo(603979776,5,{_hintChildren:1}),qo(603979776,6,{_prefixChildren:1}),qo(603979776,7,{_suffixChildren:1}),(t()(),Fi(31,0,null,1,9,"input",[["class","mat-input-element mat-form-field-autofill-control"],["id","email"],["matInput",""],["name","email"],["placeholder","Email"],["required",""],["type","email"]],[[1,"required",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null],[2,"mat-input-server",null],[1,"id",0],[1,"placeholder",0],[8,"disabled",0],[8,"required",0],[8,"readOnly",0],[1,"aria-describedby",0],[1,"aria-invalid",0],[1,"aria-required",0]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"focus"]],function(t,e,n){var r=!0,i=t.component;return"input"===e&&(r=!1!==fo(t,32)._handleInput(n.target.value)&&r),"blur"===e&&(r=!1!==fo(t,32).onTouched()&&r),"compositionstart"===e&&(r=!1!==fo(t,32)._compositionStart()&&r),"compositionend"===e&&(r=!1!==fo(t,32)._compositionEnd(n.target.value)&&r),"blur"===e&&(r=!1!==fo(t,39)._focusChanged(!1)&&r),"focus"===e&&(r=!1!==fo(t,39)._focusChanged(!0)&&r),"input"===e&&(r=!1!==fo(t,39)._onInput()&&r),"ngModelChange"===e&&(r=!1!==(i.email=n)&&r),r},null,null)),Oo(32,16384,null,0,R_,[Ln,Vn,[2,P_]],null,null),Oo(33,16384,null,0,bw,[],{required:[0,"required"]},null),Io(1024,null,w_,function(t){return[t]},[bw]),Io(1024,null,I_,function(t){return[t]},[R_]),Oo(36,671744,null,0,vw,[[2,b_],[6,w_],[8,null],[6,I_]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),Io(2048,null,L_,null,[vw]),Oo(38,16384,null,0,rw,[[4,L_]],null,null),Oo(39,999424,null,0,Iw,[Vn,td,[6,L_],[2,pw],[2,gw],Ap,[8,null],Cw,dn],{id:[0,"id"],placeholder:[1,"placeholder"],required:[2,"required"],type:[3,"type"]},null),Io(2048,[[1,4]],Gb,null,[Iw]),(t()(),Vi(16777216,null,null,1,null,kE)),Oo(42,16384,null,0,nu,[Wn,Hn],{ngIf:[0,"ngIf"]},null),(t()(),Fi(43,0,null,null,19,"div",[],null,null,null,null,null)),(t()(),Fi(44,0,null,null,18,"mat-form-field",[["class","mat-form-field"]],[[2,"mat-form-field-appearance-standard",null],[2,"mat-form-field-appearance-fill",null],[2,"mat-form-field-appearance-outline",null],[2,"mat-form-field-appearance-legacy",null],[2,"mat-form-field-invalid",null],[2,"mat-form-field-can-float",null],[2,"mat-form-field-should-float",null],[2,"mat-form-field-hide-placeholder",null],[2,"mat-form-field-disabled",null],[2,"mat-form-field-autofilled",null],[2,"mat-focused",null],[2,"mat-accent",null],[2,"mat-warn",null],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null],[2,"_mat-animation-noopable",null]],null,null,m_,r_)),Oo(45,7389184,null,7,Zb,[Vn,Gn,[2,Up],[2,Wh],[2,Yb],td,dn,[2,Ay]],null,null),qo(335544320,15,{_control:0}),qo(335544320,16,{_placeholderChild:0}),qo(335544320,17,{_labelChild:0}),qo(603979776,18,{_errorChildren:1}),qo(603979776,19,{_hintChildren:1}),qo(603979776,20,{_prefixChildren:1}),qo(603979776,21,{_suffixChildren:1}),(t()(),Fi(53,0,null,1,9,"input",[["class","mat-input-element mat-form-field-autofill-control"],["id","password"],["matInput",""],["name","password"],["placeholder","Password"],["required",""],["type","password"]],[[1,"required",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null],[2,"mat-input-server",null],[1,"id",0],[1,"placeholder",0],[8,"disabled",0],[8,"required",0],[8,"readOnly",0],[1,"aria-describedby",0],[1,"aria-invalid",0],[1,"aria-required",0]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"focus"]],function(t,e,n){var r=!0,i=t.component;return"input"===e&&(r=!1!==fo(t,54)._handleInput(n.target.value)&&r),"blur"===e&&(r=!1!==fo(t,54).onTouched()&&r),"compositionstart"===e&&(r=!1!==fo(t,54)._compositionStart()&&r),"compositionend"===e&&(r=!1!==fo(t,54)._compositionEnd(n.target.value)&&r),"blur"===e&&(r=!1!==fo(t,61)._focusChanged(!1)&&r),"focus"===e&&(r=!1!==fo(t,61)._focusChanged(!0)&&r),"input"===e&&(r=!1!==fo(t,61)._onInput()&&r),"ngModelChange"===e&&(r=!1!==(i.password=n)&&r),r},null,null)),Oo(54,16384,null,0,R_,[Ln,Vn,[2,P_]],null,null),Oo(55,16384,null,0,bw,[],{required:[0,"required"]},null),Io(1024,null,w_,function(t){return[t]},[bw]),Io(1024,null,I_,function(t){return[t]},[R_]),Oo(58,671744,null,0,vw,[[2,b_],[6,w_],[8,null],[6,I_]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),Io(2048,null,L_,null,[vw]),Oo(60,16384,null,0,rw,[[4,L_]],null,null),Oo(61,999424,null,0,Iw,[Vn,td,[6,L_],[2,pw],[2,gw],Ap,[8,null],Cw,dn],{id:[0,"id"],placeholder:[1,"placeholder"],required:[2,"required"],type:[3,"type"]},null),Io(2048,[[15,4]],Gb,null,[Iw]),(t()(),Vi(16777216,null,null,1,null,OE)),Oo(64,16384,null,0,nu,[Wn,Hn],{ngIf:[0,"ngIf"]},null),(t()(),Vi(16777216,null,null,1,null,IE)),Oo(66,16384,null,0,nu,[Wn,Hn],{ngIf:[0,"ngIf"]},null),(t()(),Vi(16777216,null,null,1,null,TE)),Oo(68,16384,null,0,nu,[Wn,Hn],{ngIf:[0,"ngIf"]},null),(t()(),Fi(69,0,null,null,4,"div",[["class","btn-container"]],null,null,null,null,null)),(t()(),Vi(16777216,null,null,1,null,PE)),Oo(71,16384,null,0,nu,[Wn,Hn],{ngIf:[0,"ngIf"]},null),(t()(),Vi(16777216,null,null,1,null,RE)),Oo(73,16384,null,0,nu,[Wn,Hn],{ngIf:[0,"ngIf"]},null),(t()(),Vi(16777216,null,null,1,null,AE)),Oo(75,16384,null,0,nu,[Wn,Hn],{ngIf:[0,"ngIf"]},null),(t()(),Fi(76,0,null,0,5,"mat-card-actions",[["class","mat-card-actions"]],[[2,"mat-card-actions-align-end",null]],null,null,null,null)),Oo(77,16384,null,0,mS,[],null,null),(t()(),Vi(16777216,null,null,1,null,NE)),Oo(79,16384,null,0,nu,[Wn,Hn],{ngIf:[0,"ngIf"]},null),(t()(),Vi(16777216,null,null,1,null,DE)),Oo(81,16384,null,0,nu,[Wn,Hn],{ngIf:[0,"ngIf"]},null)],function(t,e){var n=e.component;t(e,1,0,"row"),t(e,2,0,"center center"),t(e,8,0,"column"),t(e,9,0,"space-around center"),t(e,15,0,n.submitProcessing),t(e,33,0,""),t(e,36,0,"email",n.email),t(e,39,0,"email","Email","","email"),t(e,42,0,!n.loginView),t(e,55,0,""),t(e,58,0,"password",n.password),t(e,61,0,"password","Password","","password"),t(e,64,0,!n.loginView),t(e,66,0,!n.loginView),t(e,68,0,n.fieldsIncorrect),t(e,71,0,n.loginView),t(e,73,0,!n.loginView),t(e,75,0,n.loginView),t(e,79,0,n.loginView),t(e,81,0,!n.loginView)},function(t,e){var n=e.component;t(e,3,0,t(e,4,0,"100%")),t(e,16,0,n.submitProcessing,fo(e,20).ngClassUntouched,fo(e,20).ngClassTouched,fo(e,20).ngClassPristine,fo(e,20).ngClassDirty,fo(e,20).ngClassValid,fo(e,20).ngClassInvalid,fo(e,20).ngClassPending),t(e,22,1,["standard"==fo(e,23).appearance,"fill"==fo(e,23).appearance,"outline"==fo(e,23).appearance,"legacy"==fo(e,23).appearance,fo(e,23)._control.errorState,fo(e,23)._canLabelFloat,fo(e,23)._shouldLabelFloat(),fo(e,23)._hideControlPlaceholder(),fo(e,23)._control.disabled,fo(e,23)._control.autofilled,fo(e,23)._control.focused,"accent"==fo(e,23).color,"warn"==fo(e,23).color,fo(e,23)._shouldForward("untouched"),fo(e,23)._shouldForward("touched"),fo(e,23)._shouldForward("pristine"),fo(e,23)._shouldForward("dirty"),fo(e,23)._shouldForward("valid"),fo(e,23)._shouldForward("invalid"),fo(e,23)._shouldForward("pending"),!fo(e,23)._animationsEnabled]),t(e,31,1,[fo(e,33).required?"":null,fo(e,38).ngClassUntouched,fo(e,38).ngClassTouched,fo(e,38).ngClassPristine,fo(e,38).ngClassDirty,fo(e,38).ngClassValid,fo(e,38).ngClassInvalid,fo(e,38).ngClassPending,fo(e,39)._isServer,fo(e,39).id,fo(e,39).placeholder,fo(e,39).disabled,fo(e,39).required,fo(e,39).readonly,fo(e,39)._ariaDescribedby||null,fo(e,39).errorState,fo(e,39).required.toString()]),t(e,44,1,["standard"==fo(e,45).appearance,"fill"==fo(e,45).appearance,"outline"==fo(e,45).appearance,"legacy"==fo(e,45).appearance,fo(e,45)._control.errorState,fo(e,45)._canLabelFloat,fo(e,45)._shouldLabelFloat(),fo(e,45)._hideControlPlaceholder(),fo(e,45)._control.disabled,fo(e,45)._control.autofilled,fo(e,45)._control.focused,"accent"==fo(e,45).color,"warn"==fo(e,45).color,fo(e,45)._shouldForward("untouched"),fo(e,45)._shouldForward("touched"),fo(e,45)._shouldForward("pristine"),fo(e,45)._shouldForward("dirty"),fo(e,45)._shouldForward("valid"),fo(e,45)._shouldForward("invalid"),fo(e,45)._shouldForward("pending"),!fo(e,45)._animationsEnabled]),t(e,53,1,[fo(e,55).required?"":null,fo(e,60).ngClassUntouched,fo(e,60).ngClassTouched,fo(e,60).ngClassPristine,fo(e,60).ngClassDirty,fo(e,60).ngClassValid,fo(e,60).ngClassInvalid,fo(e,60).ngClassPending,fo(e,61)._isServer,fo(e,61).id,fo(e,61).placeholder,fo(e,61).disabled,fo(e,61).required,fo(e,61).readonly,fo(e,61)._ariaDescribedby||null,fo(e,61).errorState,fo(e,61).required.toString()]),t(e,76,0,"end"===fo(e,77).align)})}var LE=no("app-presentation",EE,function(t){return ts(0,[(t()(),Fi(0,0,null,null,1,"app-presentation",[],null,null,null,ME,CE)),Oo(1,8503296,null,0,EE,[lh,SE,fb],null,null)],function(t,e){t(e,1,0)},null)},{},{},[]),VE=function(t){this.title=t,this.attenders=[]},FE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.value=null,e.hasNext=!1,e.hasCompleted=!1,e}return o(e,t),e.prototype._subscribe=function(e){return this.hasError?(e.error(this.thrownError),S.EMPTY):this.hasCompleted&&this.hasNext?(e.next(this.value),e.complete(),S.EMPTY):t.prototype._subscribe.call(this,e)},e.prototype.next=function(t){this.hasCompleted||(this.value=t,this.hasNext=!0)},e.prototype.error=function(e){this.hasCompleted||t.prototype.error.call(this,e)},e.prototype.complete=function(){this.hasCompleted=!0,this.hasNext&&t.prototype.next.call(this,this.value),t.prototype.complete.call(this)},e}(z);function jE(t){var e=this,n=t.args,r=t.subscriber,i=t.params,o=i.callbackFunc,s=i.context,a=i.scheduler,l=i.subject;if(!l){l=i.subject=new FE;try{o.apply(s,n.concat([function(){for(var t=[],n=0;n=t.count?r.complete():(r.next(e),r.closed||(t.index=n+1,t.start=e+1,this.schedule(t)))}function JE(){for(var t=[],e=0;e=e){r.complete();break}if(r.next(o++),r.closed)break}})},L.using=function(t,e){return new L(function(n){var r,i;try{r=t()}catch(t){return void n.error(t)}try{i=e(r)}catch(t){return void n.error(t)}var o=(i?st(i):Ih).subscribe(n);return function(){o.unsubscribe(),r&&r.unsubscribe()}})},L.throw=Yw,L.throwError=Yw,L.timer=fd;var $E=function(){function t(t){this.resultSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new tC(t,this.resultSelector))},t}(),tC=function(t){function e(e,n,r){void 0===r&&(r=Object.create(null));var i=t.call(this,e)||this;return i.iterators=[],i.active=0,i.resultSelector="function"==typeof n?n:null,i.values=r,i}return o(e,t),e.prototype._next=function(t){var e=this.iterators;p(t)?e.push(new nC(t)):e.push("function"==typeof t[Q]?new eC(t[Q]()):new rC(this.destination,this,t))},e.prototype._complete=function(){var t=this.iterators,e=t.length;if(this.unsubscribe(),0!==e){this.active=e;for(var n=0;nthis.index},t.prototype.hasCompleted=function(){return this.array.length===this.index},t}(),rC=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.parent=n,i.observable=r,i.stillUnsubscribed=!0,i.buffer=[],i.isComplete=!1,i}return o(e,t),e.prototype[Q]=function(){return this},e.prototype.next=function(){var t=this.buffer;return 0===t.length&&this.isComplete?{value:null,done:!0}:{value:t.shift(),done:!1}},e.prototype.hasValue=function(){return this.buffer.length>0},e.prototype.hasCompleted=function(){return 0===this.buffer.length&&this.isComplete},e.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},e.prototype.notifyNext=function(t,e,n,r,i){this.buffer.push(e),this.parent.checkIterators()},e.prototype.subscribe=function(t,e){return tt(this,this.observable,this,e)},e}(et);L.zip=JE;var iC="undefined"!=typeof window&&window,oC="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,sC="undefined"!=typeof global&&global,aC=iC||sC||oC;function lC(t,e){return void 0===e&&(e=null),new mC({method:"GET",url:t,headers:e})}function uC(t,e,n){return new mC({method:"POST",url:t,body:e,headers:n})}function cC(t,e){return new mC({method:"DELETE",url:t,headers:e})}function hC(t,e,n){return new mC({method:"PUT",url:t,body:e,headers:n})}function dC(t,e,n){return new mC({method:"PATCH",url:t,body:e,headers:n})}var pC=nt(function(t,e){return t.response});function fC(t,e){return pC(new mC({method:"GET",url:t,responseType:"json",headers:e}))}var mC=function(t){function e(e){var n=t.call(this)||this,r={async:!0,createXHR:function(){return this.crossDomain?function(){if(aC.XMLHttpRequest)return new aC.XMLHttpRequest;if(aC.XDomainRequest)return new aC.XDomainRequest;throw new Error("CORS is not supported by your browser")}():function(){if(aC.XMLHttpRequest)return new aC.XMLHttpRequest;var t=void 0;try{for(var e=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],n=0;n<3;n++)try{if(new aC.ActiveXObject(t=e[n]))break}catch(t){}return new aC.ActiveXObject(t)}catch(t){throw new Error("XMLHttpRequest is not supported by your browser")}}()},crossDomain:!0,withCredentials:!1,headers:{},method:"GET",responseType:"json",timeout:0};if("string"==typeof e)r.url=e;else for(var i in e)e.hasOwnProperty(i)&&(r[i]=e[i]);return n.request=r,n}var n;return o(e,t),e.prototype._subscribe=function(t){return new yC(t,this.request)},e.create=((n=function(t){return new e(t)}).get=lC,n.post=uC,n.delete=cC,n.put=hC,n.patch=dC,n.getJSON=fC,n),e}(L),yC=function(t){function e(e,n){var r=t.call(this,e)||this;r.request=n,r.done=!1;var i=n.headers=n.headers||{};return n.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),"Content-Type"in i||aC.FormData&&n.body instanceof aC.FormData||void 0===n.body||(i["Content-Type"]="application/x-www-form-urlencoded; charset=UTF-8"),n.body=r.serializeBody(n.body,n.headers["Content-Type"]),r.send(),r}return o(e,t),e.prototype.next=function(t){this.done=!0;var e=this.destination,n=new vC(t,this.xhr,this.request);n.response===v?e.error(v.e):e.next(n)},e.prototype.send=function(){var t=this.request,e=this.request,n=e.user,r=e.method,i=e.url,o=e.async,s=e.password,a=e.headers,l=e.body,u=b(t.createXHR).call(t);if(u===v)this.error(v.e);else{if(this.xhr=u,this.setupEvents(u,t),(n?b(u.open).call(u,r,i,o,n,s):b(u.open).call(u,r,i,o))===v)return this.error(v.e),null;if(o&&(u.timeout=t.timeout,u.responseType=t.responseType),"withCredentials"in u&&(u.withCredentials=!!t.withCredentials),this.setHeaders(u,a),(l?b(u.send).call(u,l):b(u.send).call(u))===v)return this.error(v.e),null}return u},e.prototype.serializeBody=function(t,e){if(!t||"string"==typeof t)return t;if(aC.FormData&&t instanceof aC.FormData)return t;if(e){var n=e.indexOf(";");-1!==n&&(e=e.substring(0,n))}switch(e){case"application/x-www-form-urlencoded":return Object.keys(t).map(function(e){return encodeURIComponent(e)+"="+encodeURIComponent(t[e])}).join("&");case"application/json":return JSON.stringify(t);default:return t}},e.prototype.setHeaders=function(t,e){for(var n in e)e.hasOwnProperty(n)&&t.setRequestHeader(n,e[n])},e.prototype.setupEvents=function(t,e){var n,r,i=e.progressSubscriber;function o(t){var e=o.subscriber,n=o.progressSubscriber,r=o.request;n&&n.error(t);var i=new SC(this,r);e.error(i.response===v?v.e:i)}function s(t){}function a(t){var e=a.subscriber,n=a.progressSubscriber,r=a.request;if(4===this.readyState){var i=1223===this.status?204:this.status;if(0===i&&(i=("text"===this.responseType?this.response||this.responseText:this.response)?200:0),i<400)n&&n.complete(),e.next(t),e.complete();else{n&&n.error(t);var o=new bC("ajax error "+i,this,r);e.error(o.response===v?v.e:o)}}}t.ontimeout=o,o.request=e,o.subscriber=this,o.progressSubscriber=i,t.upload&&"withCredentials"in t&&(i&&(n=function(t){n.progressSubscriber.next(t)},aC.XDomainRequest?t.onprogress=n:t.upload.onprogress=n,n.progressSubscriber=i),t.onerror=r=function(t){var e=r.progressSubscriber,n=r.subscriber,i=r.request;e&&e.error(t);var o=new bC("ajax error",this,i);n.error(o.response===v?v.e:o)},r.request=e,r.subscriber=this,r.progressSubscriber=i),t.onreadystatechange=s,s.subscriber=this,s.progressSubscriber=i,s.request=e,t.onload=a,a.subscriber=this,a.progressSubscriber=i,a.request=e},e.prototype.unsubscribe=function(){var e=this.xhr;!this.done&&e&&4!==e.readyState&&"function"==typeof e.abort&&e.abort(),t.prototype.unsubscribe.call(this)},e}(T),vC=function(){return function(t,e,n){this.originalEvent=t,this.xhr=e,this.request=n,this.status=e.status,this.responseType=e.responseType||n.responseType,this.response=wC(this.responseType,e)}}();function gC(t,e,n){return Error.call(this),this.message=t,this.name="AjaxError",this.xhr=e,this.request=n,this.status=e.status,this.responseType=e.responseType||n.responseType,this.response=wC(this.responseType,e),this}gC.prototype=Object.create(Error.prototype);var bC=gC;function _C(t){return"response"in t?t.responseType?t.response:JSON.parse(t.response||t.responseText||"null"):JSON.parse(t.responseText||"null")}function wC(t,e){switch(t){case"json":return b(_C)(e);case"xml":return e.responseXML;case"text":default:return"response"in e?e.response:e.responseText}}var SC=function(t,e){return bC.call(this,"ajax timeout",t,e),this.name="AjaxTimeoutError",this};L.ajax=mC.create;var EC={url:"",deserializer:function(t){return JSON.parse(t.data)},serializer:function(t){return JSON.stringify(t)}},CC=function(t){function e(e,n){var r=t.call(this)||this;if(e instanceof L)r.destination=n,r.source=e;else{var i=r._config=s({},EC);if(r._output=new z,"string"==typeof e)i.url=e;else for(var o in e)e.hasOwnProperty(o)&&(i[o]=e[o]);if(!i.WebSocketCtor&&WebSocket)i.WebSocketCtor=WebSocket;else if(!i.WebSocketCtor)throw new Error("no WebSocket constructor can be found");r.destination=new uE}return r}return o(e,t),e.prototype.lift=function(t){var n=new e(this._config,this.destination);return n.operator=t,n.source=this,n},e.prototype._resetState=function(){this._socket=null,this.source||(this.destination=new uE),this._output=new z},e.prototype.multiplex=function(t,e,n){var r=this;return new L(function(i){var o=b(t)();o===v?i.error(v.e):r.next(o);var s=r.subscribe(function(t){var e=b(n)(t);e===v?i.error(v.e):e&&i.next(t)},function(t){return i.error(t)},function(){return i.complete()});return function(){var t=b(e)();t===v?i.error(v.e):r.next(t),s.unsubscribe()}})},e.prototype._connectSocket=function(){var t=this,e=this._config,n=e.WebSocketCtor,r=e.protocol,i=e.url,o=e.binaryType,s=this._output,a=null;try{a=r?new n(i,r):new n(i),this._socket=a,o&&(this._socket.binaryType=o)}catch(t){return void s.error(t)}var l=new S(function(){t._socket=null,a&&1===a.readyState&&a.close()});a.onopen=function(e){var n=t._config.openObserver;n&&n.next(e);var r=t.destination;t.destination=T.create(function(e){if(1===a.readyState){var n=b(t._config.serializer)(e);if(n===v)return void t.destination.error(v.e);a.send(n)}},function(e){var n=t._config.closingObserver;n&&n.next(void 0),e&&e.code?a.close(e.code,e.reason):s.error(new TypeError("WebSocketSubject.error must be called with an object with an error code, and an optional reason: { code: number, reason: string }")),t._resetState()},function(){var e=t._config.closingObserver;e&&e.next(void 0),a.close(),t._resetState()}),r&&r instanceof uE&&l.add(r.subscribe(t.destination))},a.onerror=function(e){t._resetState(),s.error(e)},a.onclose=function(e){t._resetState();var n=t._config.closeObserver;n&&n.next(e),e.wasClean?s.complete():s.error(e)},a.onmessage=function(e){var n=b(t._config.deserializer)(e);n===v?s.error(v.e):s.next(n)}},e.prototype._subscribe=function(t){var e=this,n=this.source;return n?n.subscribe(t):(this._socket||this._connectSocket(),this._output.subscribe(t),t.add(function(){var t=e._socket;0===e._output.observers.length&&(t&&1===t.readyState&&t.close(),e._resetState())}),t)},e.prototype.unsubscribe=function(){var e=this.source,n=this._socket;n&&1===n.readyState&&(n.close(),this._resetState()),t.prototype.unsubscribe.call(this),e||(this.destination=new uE)},e}(q);function xC(t){return function(e){return e.lift(new kC(t))}}L.webSocket=function(t){return new CC(t)};var kC=function(){function t(t){this.closingNotifier=t}return t.prototype.call=function(t,e){return e.subscribe(new OC(t,this.closingNotifier))},t}(),OC=function(t){function e(e,n){var r=t.call(this,e)||this;return r.buffer=[],r.add(tt(r,n)),r}return o(e,t),e.prototype._next=function(t){this.buffer.push(t)},e.prototype.notifyNext=function(t,e,n,r,i){var o=this.buffer;this.buffer=[],this.destination.next(o)},e}(et);function IC(t,e){return void 0===e&&(e=null),function(n){return n.lift(new TC(t,e))}}L.prototype.buffer=function(t){return xC(t)(this)};var TC=function(){function t(t,e){this.bufferSize=t,this.startBufferEvery=e,this.subscriberClass=e&&t!==e?RC:PC}return t.prototype.call=function(t,e){return e.subscribe(new this.subscriberClass(t,this.bufferSize,this.startBufferEvery))},t}(),PC=function(t){function e(e,n){var r=t.call(this,e)||this;return r.bufferSize=n,r.buffer=[],r}return o(e,t),e.prototype._next=function(t){var e=this.buffer;e.push(t),e.length==this.bufferSize&&(this.destination.next(e),this.buffer=[])},e.prototype._complete=function(){var e=this.buffer;e.length>0&&this.destination.next(e),t.prototype._complete.call(this)},e}(T),RC=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.bufferSize=n,i.startBufferEvery=r,i.buffers=[],i.count=0,i}return o(e,t),e.prototype._next=function(t){var e=this.bufferSize,n=this.startBufferEvery,r=this.buffers,i=this.count;this.count++,i%n==0&&r.push([]);for(var o=r.length;o--;){var s=r[o];s.push(t),s.length===e&&(r.splice(o,1),this.destination.next(s))}},e.prototype._complete=function(){for(var e=this.buffers,n=this.destination;e.length>0;){var r=e.shift();r.length>0&&n.next(r)}t.prototype._complete.call(this)},e}(T);function AC(t){var e=arguments.length,n=ud;H(arguments[arguments.length-1])&&(n=arguments[arguments.length-1],e--);var r=null;e>=2&&(r=arguments[1]);var i=Number.POSITIVE_INFINITY;return e>=3&&(i=arguments[2]),function(e){return e.lift(new NC(t,r,i,n))}}L.prototype.bufferCount=function(t,e){return void 0===e&&(e=null),IC(t,e)(this)};var NC=function(){function t(t,e,n,r){this.bufferTimeSpan=t,this.bufferCreationInterval=e,this.maxBufferSize=n,this.scheduler=r}return t.prototype.call=function(t,e){return e.subscribe(new DC(t,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))},t}(),DC=function(t){function e(e,n,r,i,o){var s=t.call(this,e)||this;s.bufferTimeSpan=n,s.bufferCreationInterval=r,s.maxBufferSize=i,s.scheduler=o,s.contexts=[];var a=s.openContext();if(s.timespanOnly=null==r||r<0,s.timespanOnly)s.add(a.closeAction=o.schedule(MC,n,{subscriber:s,context:a,bufferTimeSpan:n}));else{var l={bufferTimeSpan:n,bufferCreationInterval:r,subscriber:s,scheduler:o};s.add(a.closeAction=o.schedule(VC,n,{subscriber:s,context:a})),s.add(o.schedule(LC,r,l))}return s}return o(e,t),e.prototype._next=function(t){for(var e,n=this.contexts,r=n.length,i=0;i0;){var r=e.shift();n.next(r.buffer)}t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.contexts=null},e.prototype.onBufferFull=function(t){this.closeContext(t);var e=t.closeAction;if(e.unsubscribe(),this.remove(e),!this.closed&&this.timespanOnly){t=this.openContext();var n=this.bufferTimeSpan;this.add(t.closeAction=this.scheduler.schedule(MC,n,{subscriber:this,context:t,bufferTimeSpan:n}))}},e.prototype.openContext=function(){var t=new function(){this.buffer=[]};return this.contexts.push(t),t},e.prototype.closeContext=function(t){this.destination.next(t.buffer);var e=this.contexts;(e?e.indexOf(t):-1)>=0&&e.splice(e.indexOf(t),1)},e}(T);function MC(t){var e=t.subscriber,n=t.context;n&&e.closeContext(n),e.closed||(t.context=e.openContext(),t.context.closeAction=this.schedule(t,t.bufferTimeSpan))}function LC(t){var e=t.bufferCreationInterval,n=t.bufferTimeSpan,r=t.subscriber,i=t.scheduler,o=r.openContext();r.closed||(r.add(o.closeAction=i.schedule(VC,n,{subscriber:r,context:o})),this.schedule(t,e))}function VC(t){t.subscriber.closeContext(t.context)}function FC(t,e){return function(n){return n.lift(new jC(t,e))}}L.prototype.bufferTime=function(t){var e=arguments.length,n=ud;H(arguments[arguments.length-1])&&(n=arguments[arguments.length-1],e--);var r=null;e>=2&&(r=arguments[1]);var i=Number.POSITIVE_INFINITY;return e>=3&&(i=arguments[2]),AC(t,r,i,n)(this)};var jC=function(){function t(t,e){this.openings=t,this.closingSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new BC(t,this.openings,this.closingSelector))},t}(),BC=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.openings=n,i.closingSelector=r,i.contexts=[],i.add(tt(i,n)),i}return o(e,t),e.prototype._next=function(t){for(var e=this.contexts,n=e.length,r=0;r0;){var r=n.shift();r.subscription.unsubscribe(),r.buffer=null,r.subscription=null}this.contexts=null,t.prototype._error.call(this,e)},e.prototype._complete=function(){for(var e=this.contexts;e.length>0;){var n=e.shift();this.destination.next(n.buffer),n.subscription.unsubscribe(),n.buffer=null,n.subscription=null}this.contexts=null,t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e,n,r,i){t?this.closeBuffer(t):this.openBuffer(e)},e.prototype.notifyComplete=function(t){this.closeBuffer(t.context)},e.prototype.openBuffer=function(t){try{var e=this.closingSelector.call(this,t);e&&this.trySubscribe(e)}catch(t){this._error(t)}},e.prototype.closeBuffer=function(t){var e=this.contexts;if(e&&t){var n=t.subscription;this.destination.next(t.buffer),e.splice(e.indexOf(t),1),this.remove(n),n.unsubscribe()}},e.prototype.trySubscribe=function(t){var e=this.contexts,n=new S,r={buffer:[],subscription:n};e.push(r);var i=tt(this,t,r);!i||i.closed?this.closeBuffer(r):(i.context=r,this.add(i),n.add(i))},e}(et);function UC(t){return function(e){return e.lift(new zC(t))}}L.prototype.bufferToggle=function(t,e){return FC(t,e)(this)};var zC=function(){function t(t){this.closingSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new qC(t,this.closingSelector))},t}(),qC=function(t){function e(e,n){var r=t.call(this,e)||this;return r.closingSelector=n,r.subscribing=!1,r.openBuffer(),r}return o(e,t),e.prototype._next=function(t){this.buffer.push(t)},e.prototype._complete=function(){var e=this.buffer;e&&this.destination.next(e),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.buffer=null,this.subscribing=!1},e.prototype.notifyNext=function(t,e,n,r,i){this.openBuffer()},e.prototype.notifyComplete=function(){this.subscribing?this.complete():this.openBuffer()},e.prototype.openBuffer=function(){var t=this.closingSubscription;t&&(this.remove(t),t.unsubscribe()),this.buffer&&this.destination.next(this.buffer),this.buffer=[];var e=b(this.closingSelector)();e===v?this.error(v.e):(t=new S,this.closingSubscription=t,this.add(t),this.subscribing=!0,t.add(tt(this,e)),this.subscribing=!1)},e}(et);function HC(t){return oh(t)(this)}function WC(t){return function(e){return e.lift(new Qp(t))}}function GC(t,e){return sv(function(){return t},e)}function XC(t){return function(e){return e.lift(new QC(t,e))}}L.prototype.bufferWhen=function(t){return UC(t)(this)},L.prototype.catch=HC,L.prototype._catch=HC,L.prototype.combineAll=function(t){return WC(t)(this)},L.prototype.combineLatest=function(){for(var t=[],e=0;e0&&n[0].time-r.now()<=0;)n.shift().notification.observe(i);if(n.length>0){var o=Math.max(0,n[0].time-r.now());this.schedule(t,o)}else this.unsubscribe(),e.active=!1},e.prototype._schedule=function(t){this.active=!0,this.destination.add(t.schedule(e.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))},e.prototype.scheduleNotification=function(t){if(!0!==this.errored){var e=this.scheduler,n=new sx(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}},e.prototype._next=function(t){this.scheduleNotification(iE.createNext(t))},e.prototype._error=function(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.scheduleNotification(iE.createComplete()),this.unsubscribe()},e}(T),sx=function(t,e){this.time=t,this.notification=e};function ax(t,e){return e?function(n){return new cx(n,e).lift(new lx(t))}:function(e){return e.lift(new lx(t))}}L.prototype.delay=function(t,e){return void 0===e&&(e=ud),rx(t,e)(this)};var lx=function(){function t(t){this.delayDurationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new ux(t,this.delayDurationSelector))},t}(),ux=function(t){function e(e,n){var r=t.call(this,e)||this;return r.delayDurationSelector=n,r.completed=!1,r.delayNotifierSubscriptions=[],r.index=0,r}return o(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(t),this.removeSubscription(i),this.tryComplete()},e.prototype.notifyError=function(t,e){this._error(t)},e.prototype.notifyComplete=function(t){var e=this.removeSubscription(t);e&&this.destination.next(e),this.tryComplete()},e.prototype._next=function(t){var e=this.index++;try{var n=this.delayDurationSelector(t,e);n&&this.tryDelay(n,t)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){this.completed=!0,this.tryComplete(),this.unsubscribe()},e.prototype.removeSubscription=function(t){t.unsubscribe();var e=this.delayNotifierSubscriptions.indexOf(t);return-1!==e&&this.delayNotifierSubscriptions.splice(e,1),t.outerValue},e.prototype.tryDelay=function(t,e){var n=tt(this,t,e);n&&!n.closed&&(this.destination.add(n),this.delayNotifierSubscriptions.push(n))},e.prototype.tryComplete=function(){this.completed&&0===this.delayNotifierSubscriptions.length&&this.destination.complete()},e}(et),cx=function(t){function e(e,n){var r=t.call(this)||this;return r.source=e,r.subscriptionDelay=n,r}return o(e,t),e.prototype._subscribe=function(t){this.subscriptionDelay.subscribe(new hx(t,this.source))},e}(L),hx=function(t){function e(e,n){var r=t.call(this)||this;return r.parent=e,r.source=n,r.sourceSubscribed=!1,r}return o(e,t),e.prototype._next=function(t){this.subscribeToSource()},e.prototype._error=function(t){this.unsubscribe(),this.parent.error(t)},e.prototype._complete=function(){this.unsubscribe(),this.subscribeToSource()},e.prototype.subscribeToSource=function(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))},e}(T);function dx(t,e){return function(n){return n.lift(new px(t,e))}}L.prototype.delayWhen=function(t,e){return ax(t,e)(this)};var px=function(){function t(t,e){this.keySelector=t,this.flushes=e}return t.prototype.call=function(t,e){return e.subscribe(new fx(t,this.keySelector,this.flushes))},t}(),fx=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.keySelector=n,i.values=new Set,r&&i.add(tt(i,r)),i}return o(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.values.clear()},e.prototype.notifyError=function(t,e){this._error(t)},e.prototype._next=function(t){this.keySelector?this._useKeySelector(t):this._finalizeNext(t,t)},e.prototype._useKeySelector=function(t){var e,n=this.destination;try{e=this.keySelector(t)}catch(t){return void n.error(t)}this._finalizeNext(e,t)},e.prototype._finalizeNext=function(t,e){var n=this.values;n.has(t)||(n.add(t),this.destination.next(e))},e}(et);function mx(t,e){return function(n){return n.lift(new yx(t,e))}}L.prototype.distinct=function(t,e){return dx(t,e)(this)};var yx=function(){function t(t,e){this.compare=t,this.keySelector=e}return t.prototype.call=function(t,e){return e.subscribe(new vx(t,this.compare,this.keySelector))},t}(),vx=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.keySelector=r,i.hasKey=!1,"function"==typeof n&&(i.compare=n),i}return o(e,t),e.prototype.compare=function(t,e){return t===e},e.prototype._next=function(t){var e=t;if(this.keySelector&&(e=b(this.keySelector)(t))===v)return this.destination.error(v.e);var n=!1;if(this.hasKey){if((n=b(this.compare)(this.key,e))===v)return this.destination.error(v.e)}else this.hasKey=!0;!1===Boolean(n)&&(this.key=e,this.destination.next(t))},e}(T);function gx(t,e){return mx(function(n,r){return e?e(n[t],r[t]):n[t]===r[t]})}function bx(t,e,n){return hp(t,e,n)(this)}function _x(){return function(t){return t.lift(new wx)}}L.prototype.distinctUntilChanged=function(t,e){return mx(t,e)(this)},L.prototype.distinctUntilKeyChanged=function(t,e){return gx(t,e)(this)},L.prototype.do=bx,L.prototype._do=bx;var wx=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new Sx(t))},t}(),Sx=function(t){function e(e){var n=t.call(this,e)||this;return n.hasCompleted=!1,n.hasSubscription=!1,n}return o(e,t),e.prototype._next=function(t){this.hasSubscription||(this.hasSubscription=!0,this.add(tt(this,t)))},e.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()},e.prototype.notifyComplete=function(t){this.remove(t),this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},e}(et);function Ex(t,e){return e?function(n){return n.pipe(Ex(function(n,r){return st(t(n,r)).pipe(nt(function(t,i){return e(n,t,r,i)}))}))}:function(e){return e.lift(new Cx(t))}}L.prototype.exhaust=function(){return _x()(this)};var Cx=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new xx(t,this.project))},t}(),xx=function(t){function e(e,n){var r=t.call(this,e)||this;return r.project=n,r.hasSubscription=!1,r.hasCompleted=!1,r.index=0,r}return o(e,t),e.prototype._next=function(t){this.hasSubscription||this.tryNext(t)},e.prototype.tryNext=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this.hasSubscription=!0,this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){var r=new W(this,void 0,void 0);this.destination.add(r),tt(this,t,e,n,r)},e.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(e)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.remove(t),this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},e}(et);function kx(t,e,n){return void 0===e&&(e=Number.POSITIVE_INFINITY),void 0===n&&(n=void 0),e=(e||0)<1?Number.POSITIVE_INFINITY:e,function(r){return r.lift(new Ox(t,e,n))}}L.prototype.exhaustMap=function(t){return Ex(t)(this)};var Ox=function(){function t(t,e,n){this.project=t,this.concurrent=e,this.scheduler=n}return t.prototype.call=function(t,e){return e.subscribe(new Ix(t,this.project,this.concurrent,this.scheduler))},t}(),Ix=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.project=n,o.concurrent=r,o.scheduler=i,o.index=0,o.active=0,o.hasCompleted=!1,r0&&this._next(e.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()},e}(et);function Tx(t,e){if(t<0)throw new Vh;var n=arguments.length>=2;return function(r){return r.pipe(Nh(function(e,n){return n===t}),Fh(1),n?Jy(e):Yy(function(){return new Vh}))}}function Px(t){return Jw(t)(this)}function Rx(t,e){if("function"!=typeof t)throw new TypeError("predicate is not a function");return function(n){return n.lift(new Ax(t,n,!1,e))}}L.prototype.expand=function(t,e,n){return void 0===e&&(e=Number.POSITIVE_INFINITY),void 0===n&&(n=void 0),kx(t,e=(e||0)<1?Number.POSITIVE_INFINITY:e,n)(this)},L.prototype.elementAt=function(t,e){return Tx.apply(void 0,arguments)(this)},L.prototype.filter=function(t,e){return Nh(t,e)(this)},L.prototype.finally=Px,L.prototype._finally=Px;var Ax=function(){function t(t,e,n,r){this.predicate=t,this.source=e,this.yieldIndex=n,this.thisArg=r}return t.prototype.call=function(t,e){return e.subscribe(new Nx(t,this.predicate,this.source,this.yieldIndex,this.thisArg))},t}(),Nx=function(t){function e(e,n,r,i,o){var s=t.call(this,e)||this;return s.predicate=n,s.source=r,s.yieldIndex=i,s.thisArg=o,s.index=0,s}return o(e,t),e.prototype.notifyComplete=function(t){var e=this.destination;e.next(t),e.complete(),this.unsubscribe()},e.prototype._next=function(t){var e=this.predicate,n=this.thisArg,r=this.index++;try{e.call(n||this,t,r,this.source)&&this.notifyComplete(this.yieldIndex?r:t)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){this.notifyComplete(this.yieldIndex?-1:void 0)},e}(T);function Dx(t,e){return function(n){return n.lift(new Ax(t,n,!0,e))}}function Mx(t,e,n,r){return function(i){return i.lift(new Lx(t,e,n,r))}}L.prototype.find=function(t,e){return Rx(t,e)(this)},L.prototype.findIndex=function(t,e){return Dx(t,e)(this)},L.prototype.first=function(){for(var t=[],e=0;e0?e:n}:function(t,e){return t>e?t:e})}function ek(t,e){return void 0===e&&(e=Number.POSITIVE_INFINITY),at(t,e)(this)}function nk(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof e?at(function(){return t},e,n):("number"==typeof e&&(n=e),at(function(){return t},n))}function rk(t,e){return void 0===e&&(e=Number.POSITIVE_INFINITY),nk(t,e)(this)}function ik(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),function(r){return r.lift(new ok(t,e,n))}}L.prototype.materialize=function(){return Zx()(this)},L.prototype.max=function(t){return tk(t)(this)},L.prototype.merge=function(){for(var t=[],e=0;e0?this._next(e.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())},e}(et);function ak(t){return cv("function"==typeof t?function(e,n){return t(e,n)<0?e:n}:function(t,e){return t=2?cv(t,e)(this):cv(t)(this)};var Sk=function(){function t(t,e){this.count=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new Ek(t,this.count,this.source))},t}(),Ek=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.count=n,i.source=r,i}return o(e,t),e.prototype.complete=function(){if(!this.isStopped){var e=this.source,n=this.count;if(0===n)return t.prototype.complete.call(this);n>-1&&(this.count=n-1),e.subscribe(this._unsubscribeAndRecycle())}},e}(T);function Ck(t){return function(e){return e.lift(new xk(t))}}L.prototype.repeat=function(t){return void 0===t&&(t=-1),wk(t)(this)};var xk=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){return e.subscribe(new kk(t,this.notifier,e))},t}(),kk=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.notifier=n,i.source=r,i.sourceIsBeingSubscribedTo=!0,i}return o(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)},e.prototype.notifyComplete=function(e){if(!1===this.sourceIsBeingSubscribedTo)return t.prototype.complete.call(this)},e.prototype.complete=function(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return t.prototype.complete.call(this);this._unsubscribeAndRecycle(),this.notifications.next()}},e.prototype._unsubscribe=function(){var t=this.notifications,e=this.retriesSubscription;t&&(t.unsubscribe(),this.notifications=null),e&&(e.unsubscribe(),this.retriesSubscription=null),this.retries=null},e.prototype._unsubscribeAndRecycle=function(){var e=this._unsubscribe;return this._unsubscribe=null,t.prototype._unsubscribeAndRecycle.call(this),this._unsubscribe=e,this},e.prototype.subscribeToRetries=function(){this.notifications=new z;var e=b(this.notifier)(this.notifications);if(e===v)return t.prototype.complete.call(this);this.retries=e,this.retriesSubscription=tt(this,e)},e}(et);function Ok(t){return void 0===t&&(t=-1),function(e){return e.lift(new Ik(t,e))}}L.prototype.repeatWhen=function(t){return Ck(t)(this)};var Ik=function(){function t(t,e){this.count=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new Tk(t,this.count,this.source))},t}(),Tk=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.count=n,i.source=r,i}return o(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=this.source,r=this.count;if(0===r)return t.prototype.error.call(this,e);r>-1&&(this.count=r-1),n.subscribe(this._unsubscribeAndRecycle())}},e}(T);function Pk(t){return function(e){return e.lift(new Rk(t,e))}}L.prototype.retry=function(t){return void 0===t&&(t=-1),Ok(t)(this)};var Rk=function(){function t(t,e){this.notifier=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new Ak(t,this.notifier,this.source))},t}(),Ak=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.notifier=n,i.source=r,i}return o(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=this.errors,r=this.retries,i=this.retriesSubscription;if(r)this.errors=null,this.retriesSubscription=null;else{if(n=new z,(r=b(this.notifier)(n))===v)return t.prototype.error.call(this,v.e);i=tt(this,r)}this._unsubscribeAndRecycle(),this.errors=n,this.retries=r,this.retriesSubscription=i,n.next(e)}},e.prototype._unsubscribe=function(){var t=this.errors,e=this.retriesSubscription;t&&(t.unsubscribe(),this.errors=null),e&&(e.unsubscribe(),this.retriesSubscription=null),this.retries=null},e.prototype.notifyNext=function(t,e,n,r,i){var o=this._unsubscribe;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=o,this.source.subscribe(this)},e}(et);function Nk(t){return function(e){return e.lift(new Dk(t))}}L.prototype.retryWhen=function(t){return Pk(t)(this)};var Dk=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var n=new Mk(t),r=e.subscribe(n);return r.add(tt(n,this.notifier)),r},t}(),Mk=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.hasValue=!1,e}return o(e,t),e.prototype._next=function(t){this.value=t,this.hasValue=!0},e.prototype.notifyNext=function(t,e,n,r,i){this.emitValue()},e.prototype.notifyComplete=function(){this.emitValue()},e.prototype.emitValue=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))},e}(et);function Lk(t,e){return void 0===e&&(e=ud),function(n){return n.lift(new Vk(t,e))}}L.prototype.sample=function(t){return Nk(t)(this)};var Vk=function(){function t(t,e){this.period=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new Fk(t,this.period,this.scheduler))},t}(),Fk=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.period=n,i.scheduler=r,i.hasValue=!1,i.add(r.schedule(jk,n,{subscriber:i,period:n})),i}return o(e,t),e.prototype._next=function(t){this.lastValue=t,this.hasValue=!0},e.prototype.notifyNext=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))},e}(T);function jk(t){var e=t.period;t.subscriber.notifyNext(),this.schedule(t,e)}function Bk(t,e){return function(n){return n.lift(new Uk(t,e))}}L.prototype.sampleTime=function(t,e){return void 0===e&&(e=ud),Lk(t,e)(this)},L.prototype.scan=function(t,e){return arguments.length>=2?av(t,e)(this):av(t)(this)};var Uk=function(){function t(t,e){this.compareTo=t,this.comparor=e}return t.prototype.call=function(t,e){return e.subscribe(new zk(t,this.compareTo,this.comparor))},t}(),zk=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.compareTo=n,i.comparor=r,i._a=[],i._b=[],i._oneComplete=!1,i.destination.add(n.subscribe(new qk(e,i))),i}return o(e,t),e.prototype._next=function(t){this._oneComplete&&0===this._b.length?this.emit(!1):(this._a.push(t),this.checkValues())},e.prototype._complete=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0,this.unsubscribe()},e.prototype.checkValues=function(){for(var t=this._a,e=this._b,n=this.comparor;t.length>0&&e.length>0;){var r=t.shift(),i=e.shift(),o=!1;n?(o=b(n)(r,i))===v&&this.destination.error(v.e):o=r===i,o||this.emit(!1)}},e.prototype.emit=function(t){var e=this.destination;e.next(t),e.complete()},e.prototype.nextB=function(t){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(t),this.checkValues())},e.prototype.completeB=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0},e}(T),qk=function(t){function e(e,n){var r=t.call(this,e)||this;return r.parent=n,r}return o(e,t),e.prototype._next=function(t){this.parent.nextB(t)},e.prototype._error=function(t){this.parent.error(t),this.unsubscribe()},e.prototype._complete=function(){this.parent.completeB(),this.unsubscribe()},e}(T);function Hk(t,e,n){return void 0===t&&(t=Number.POSITIVE_INFINITY),void 0===e&&(e=Number.POSITIVE_INFINITY),function(r){return r.lift(function(t,e,n){var r,i,o=0,s=!1,a=!1;return function(l){o++,r&&!s||(s=!1,r=new uE(t,e,n),i=l.subscribe({next:function(t){r.next(t)},error:function(t){s=!0,r.error(t)},complete:function(){a=!0,r.complete()}}));var u=r.subscribe(this);return function(){o--,u.unsubscribe(),i&&0===o&&a&&i.unsubscribe()}}}(t,e,n))}}function Wk(t){return function(e){return e.lift(new Gk(t,e))}}L.prototype.sequenceEqual=function(t,e){return Bk(t,e)(this)},L.prototype.share=function(){return St()(this)},L.prototype.shareReplay=function(t,e,n){return Hk(t,e,n)(this)};var Gk=function(){function t(t,e){this.predicate=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new Xk(t,this.predicate,this.source))},t}(),Xk=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.predicate=n,i.source=r,i.seenValue=!1,i.index=0,i}return o(e,t),e.prototype.applySingleValue=function(t){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=t)},e.prototype._next=function(t){var e=this.index++;this.predicate?this.tryNext(t,e):this.applySingleValue(t)},e.prototype.tryNext=function(t,e){try{this.predicate(t,e,this.source)&&this.applySingleValue(t)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){var t=this.destination;this.index>0?(t.next(this.seenValue?this.singleValue:void 0),t.complete()):t.error(new Wy)},e}(T);function Qk(t){return function(e){return e.lift(new Kk(t))}}L.prototype.single=function(t){return Wk(t)(this)};var Kk=function(){function t(t){this.total=t}return t.prototype.call=function(t,e){return e.subscribe(new Yk(t,this.total))},t}(),Yk=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.count=0,r}return o(e,t),e.prototype._next=function(t){++this.count>this.total&&this.destination.next(t)},e}(T);function Zk(t){return function(e){return e.lift(new Jk(t))}}L.prototype.skip=function(t){return Qk(t)(this)};var Jk=function(){function t(t){if(this._skipCount=t,this._skipCount<0)throw new Vh}return t.prototype.call=function(t,e){return e.subscribe(0===this._skipCount?new T(t):new $k(t,this._skipCount))},t}(),$k=function(t){function e(e,n){var r=t.call(this,e)||this;return r._skipCount=n,r._count=0,r._ring=new Array(n),r}return o(e,t),e.prototype._next=function(t){var e=this._skipCount,n=this._count++;if(n0?t.prototype.requestAsyncId.call(this,e,n,r):(e.actions.push(this),e.scheduled||(e.scheduled=(i=e.flush.bind(e,null),o=sO++,aO[o]=i,Promise.resolve().then(function(){return function(t){var e=aO[t];e&&e()}(o)}),o)));var i,o},e.prototype.recycleAsyncId=function(e,n,r){if(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,r);0===e.actions.length&&(delete aO[n],e.scheduled=void 0)},e}(sd),uO=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,r=-1,i=n.length;t=t||n.shift();do{if(e=t.execute(t.state,t.delay))break}while(++r0?this.startWindowEvery:this.windowSize,n=this.destination,r=this.windowSize,i=this.windows,o=i.length,s=0;s=0&&a%e==0&&!this.closed&&i.shift().complete(),++this.count%e==0&&!this.closed){var l=new z;i.push(l),n.next(l)}},e.prototype._error=function(t){var e=this.windows;if(e)for(;e.length>0&&!this.closed;)e.shift().error(t);this.destination.error(t)},e.prototype._complete=function(){var t=this.windows;if(t)for(;t.length>0&&!this.closed;)t.shift().complete();this.destination.complete()},e.prototype._unsubscribe=function(){this.count=0,this.windows=null},e}(T);function QO(t){var e=ud,n=null,r=Number.POSITIVE_INFINITY;return H(arguments[3])&&(e=arguments[3]),H(arguments[2])?e=arguments[2]:pd(arguments[2])&&(r=arguments[2]),H(arguments[1])?e=arguments[1]:pd(arguments[1])&&(n=arguments[1]),function(i){return i.lift(new KO(t,n,r,e))}}L.prototype.windowCount=function(t,e){return void 0===e&&(e=0),WO(t,e)(this)};var KO=function(){function t(t,e,n,r){this.windowTimeSpan=t,this.windowCreationInterval=e,this.maxWindowSize=n,this.scheduler=r}return t.prototype.call=function(t,e){return e.subscribe(new ZO(t,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))},t}(),YO=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._numberOfNextedValues=0,e}return o(e,t),e.prototype.next=function(e){this._numberOfNextedValues++,t.prototype.next.call(this,e)},Object.defineProperty(e.prototype,"numberOfNextedValues",{get:function(){return this._numberOfNextedValues},enumerable:!0,configurable:!0}),e}(z),ZO=function(t){function e(e,n,r,i,o){var s=t.call(this,e)||this;s.destination=e,s.windowTimeSpan=n,s.windowCreationInterval=r,s.maxWindowSize=i,s.scheduler=o,s.windows=[];var a=s.openWindow();if(null!==r&&r>=0){var l={windowTimeSpan:n,windowCreationInterval:r,subscriber:s,scheduler:o};s.add(o.schedule(tI,n,{subscriber:s,window:a,context:null})),s.add(o.schedule($O,r,l))}else s.add(o.schedule(JO,n,{subscriber:s,window:a,windowTimeSpan:n}));return s}return o(e,t),e.prototype._next=function(t){for(var e=this.windows,n=e.length,r=0;r=this.maxWindowSize&&this.closeWindow(i))}},e.prototype._error=function(t){for(var e=this.windows;e.length>0;)e.shift().error(t);this.destination.error(t)},e.prototype._complete=function(){for(var t=this.windows;t.length>0;){var e=t.shift();e.closed||e.complete()}this.destination.complete()},e.prototype.openWindow=function(){var t=new YO;return this.windows.push(t),this.destination.next(t),t},e.prototype.closeWindow=function(t){t.complete();var e=this.windows;e.splice(e.indexOf(t),1)},e}(T);function JO(t){var e=t.subscriber,n=t.windowTimeSpan,r=t.window;r&&e.closeWindow(r),t.window=e.openWindow(),this.schedule(t,n)}function $O(t){var e=t.windowTimeSpan,n=t.subscriber,r=t.scheduler,i=t.windowCreationInterval,o=n.openWindow(),s={action:this,subscription:null};s.subscription=r.schedule(tI,e,{subscriber:n,window:o,context:s}),this.add(s.subscription),this.schedule(t,i)}function tI(t){var e=t.subscriber,n=t.window,r=t.context;r&&r.action&&r.subscription&&r.action.remove(r.subscription),e.closeWindow(n)}function eI(t,e){return function(n){return n.lift(new nI(t,e))}}L.prototype.windowTime=function(t){var e=ud,n=null,r=Number.POSITIVE_INFINITY;return H(arguments[3])&&(e=arguments[3]),H(arguments[2])?e=arguments[2]:pd(arguments[2])&&(r=arguments[2]),H(arguments[1])?e=arguments[1]:pd(arguments[1])&&(n=arguments[1]),QO(t,n,r,e)(this)};var nI=function(){function t(t,e){this.openings=t,this.closingSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new rI(t,this.openings,this.closingSelector))},t}(),rI=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.openings=n,i.closingSelector=r,i.contexts=[],i.add(i.openSubscription=tt(i,n,n)),i}return o(e,t),e.prototype._next=function(t){var e=this.contexts;if(e)for(var n=e.length,r=0;r0){var s=o.indexOf(n);-1!==s&&o.splice(s,1)}},e.prototype.notifyComplete=function(){},e.prototype._next=function(t){if(0===this.toRespond.length){var e=[t].concat(this.values);this.project?this._tryProject(e):this.destination.next(e)}},e.prototype._tryProject=function(t){var e;try{e=this.project.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(et);function cI(t){return function(e){return e.lift(new $E(t))}}function hI(){for(var t=[],e=0;e0?ot(t,n):Th(n):Rh(t[0]))}}function fI(){for(var t=[],e=0;e0){for(var r=0,i=t.attendersAdded;rThe following users were already added to the lesson";for(var o=0,s=t.attendersAlreadyAdded;o