From 237a1ef4311661148f51199c1c2937cac05662c7 Mon Sep 17 00:00:00 2001 From: "kreaweb.be" Date: Mon, 29 Apr 2024 08:46:28 +0200 Subject: [PATCH] Installation --- composer.lock | 39 ++--- package-lock.json | 140 +++++++++--------- .../{app-CqcAByRH.js => app-CQBbL-fs.js} | 30 ++-- ...les-CEJN0LxJ.js => datatables-DUQRTXCi.js} | 6 +- public/build/manifest.json | 4 +- .../views/back/developer/impressum.blade.php | 2 +- 6 files changed, 113 insertions(+), 108 deletions(-) rename public/build/assets/{app-CqcAByRH.js => app-CQBbL-fs.js} (63%) rename public/build/assets/{datatables-CEJN0LxJ.js => datatables-DUQRTXCi.js} (63%) diff --git a/composer.lock b/composer.lock index bf919cf..537f066 100644 --- a/composer.lock +++ b/composer.lock @@ -8,25 +8,25 @@ "packages": [ { "name": "brick/math", - "version": "0.11.0", + "version": "0.12.1", "source": { "type": "git", "url": "https://github.com/brick/math.git", - "reference": "0ad82ce168c82ba30d1c01ec86116ab52f589478" + "reference": "f510c0a40911935b77b86859eb5223d58d660df1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/brick/math/zipball/0ad82ce168c82ba30d1c01ec86116ab52f589478", - "reference": "0ad82ce168c82ba30d1c01ec86116ab52f589478", + "url": "https://api.github.com/repos/brick/math/zipball/f510c0a40911935b77b86859eb5223d58d660df1", + "reference": "f510c0a40911935b77b86859eb5223d58d660df1", "shasum": "" }, "require": { - "php": "^8.0" + "php": "^8.1" }, "require-dev": { "php-coveralls/php-coveralls": "^2.2", - "phpunit/phpunit": "^9.0", - "vimeo/psalm": "5.0.0" + "phpunit/phpunit": "^10.1", + "vimeo/psalm": "5.16.0" }, "type": "library", "autoload": { @@ -46,12 +46,17 @@ "arithmetic", "bigdecimal", "bignum", + "bignumber", "brick", - "math" + "decimal", + "integer", + "math", + "mathematics", + "rational" ], "support": { "issues": "https://github.com/brick/math/issues", - "source": "https://github.com/brick/math/tree/0.11.0" + "source": "https://github.com/brick/math/tree/0.12.1" }, "funding": [ { @@ -59,7 +64,7 @@ "type": "github" } ], - "time": "2023-01-15T23:15:59+00:00" + "time": "2023-11-29T23:19:16+00:00" }, { "name": "carbonphp/carbon-doctrine-types", @@ -3494,20 +3499,20 @@ }, { "name": "ramsey/uuid", - "version": "4.7.5", + "version": "4.7.6", "source": { "type": "git", "url": "https://github.com/ramsey/uuid.git", - "reference": "5f0df49ae5ad6efb7afa69e6bfab4e5b1e080d8e" + "reference": "91039bc1faa45ba123c4328958e620d382ec7088" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/ramsey/uuid/zipball/5f0df49ae5ad6efb7afa69e6bfab4e5b1e080d8e", - "reference": "5f0df49ae5ad6efb7afa69e6bfab4e5b1e080d8e", + "url": "https://api.github.com/repos/ramsey/uuid/zipball/91039bc1faa45ba123c4328958e620d382ec7088", + "reference": "91039bc1faa45ba123c4328958e620d382ec7088", "shasum": "" }, "require": { - "brick/math": "^0.8.8 || ^0.9 || ^0.10 || ^0.11", + "brick/math": "^0.8.8 || ^0.9 || ^0.10 || ^0.11 || ^0.12", "ext-json": "*", "php": "^8.0", "ramsey/collection": "^1.2 || ^2.0" @@ -3570,7 +3575,7 @@ ], "support": { "issues": "https://github.com/ramsey/uuid/issues", - "source": "https://github.com/ramsey/uuid/tree/4.7.5" + "source": "https://github.com/ramsey/uuid/tree/4.7.6" }, "funding": [ { @@ -3582,7 +3587,7 @@ "type": "tidelift" } ], - "time": "2023-11-08T05:53:05+00:00" + "time": "2024-04-27T21:32:50+00:00" }, { "name": "spatie/db-dumper", diff --git a/package-lock.json b/package-lock.json index 15f68e8..f4d678e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -414,9 +414,9 @@ } }, "node_modules/@rollup/rollup-android-arm-eabi": { - "version": "4.16.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.16.4.tgz", - "integrity": "sha512-GkhjAaQ8oUTOKE4g4gsZ0u8K/IHU1+2WQSgS1TwTcYvL+sjbaQjNHFXbOJ6kgqGHIO1DfUhI/Sphi9GkRT9K+Q==", + "version": "4.17.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.17.1.tgz", + "integrity": "sha512-P6Wg856Ou/DLpR+O0ZLneNmrv7QpqBg+hK4wE05ijbC/t349BRfMfx+UFj5Ha3fCFopIa6iSZlpdaB4agkWp2Q==", "cpu": [ "arm" ], @@ -427,9 +427,9 @@ ] }, "node_modules/@rollup/rollup-android-arm64": { - "version": "4.16.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.16.4.tgz", - "integrity": "sha512-Bvm6D+NPbGMQOcxvS1zUl8H7DWlywSXsphAeOnVeiZLQ+0J6Is8T7SrjGTH29KtYkiY9vld8ZnpV3G2EPbom+w==", + "version": "4.17.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.17.1.tgz", + "integrity": "sha512-piwZDjuW2WiHr05djVdUkrG5JbjnGbtx8BXQchYCMfib/nhjzWoiScelZ+s5IJI7lecrwSxHCzW026MWBL+oJQ==", "cpu": [ "arm64" ], @@ -440,9 +440,9 @@ ] }, "node_modules/@rollup/rollup-darwin-arm64": { - "version": "4.16.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.16.4.tgz", - "integrity": "sha512-i5d64MlnYBO9EkCOGe5vPR/EeDwjnKOGGdd7zKFhU5y8haKhQZTN2DgVtpODDMxUr4t2K90wTUJg7ilgND6bXw==", + "version": "4.17.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.17.1.tgz", + "integrity": "sha512-LsZXXIsN5Q460cKDT4Y+bzoPDhBmO5DTr7wP80d+2EnYlxSgkwdPfE3hbE+Fk8dtya+8092N9srjBTJ0di8RIA==", "cpu": [ "arm64" ], @@ -453,9 +453,9 @@ ] }, "node_modules/@rollup/rollup-darwin-x64": { - "version": "4.16.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.16.4.tgz", - "integrity": "sha512-WZupV1+CdUYehaZqjaFTClJI72fjJEgTXdf4NbW69I9XyvdmztUExBtcI2yIIU6hJtYvtwS6pkTkHJz+k08mAQ==", + "version": "4.17.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.17.1.tgz", + "integrity": "sha512-S7TYNQpWXB9APkxu/SLmYHezWwCoZRA9QLgrDeml+SR2A1LLPD2DBUdUlvmCF7FUpRMKvbeeWky+iizQj65Etw==", "cpu": [ "x64" ], @@ -466,9 +466,9 @@ ] }, "node_modules/@rollup/rollup-linux-arm-gnueabihf": { - "version": "4.16.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.16.4.tgz", - "integrity": "sha512-ADm/xt86JUnmAfA9mBqFcRp//RVRt1ohGOYF6yL+IFCYqOBNwy5lbEK05xTsEoJq+/tJzg8ICUtS82WinJRuIw==", + "version": "4.17.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.17.1.tgz", + "integrity": "sha512-Lq2JR5a5jsA5um2ZoLiXXEaOagnVyCpCW7xvlcqHC7y46tLwTEgUSTM3a2TfmmTMmdqv+jknUioWXlmxYxE9Yw==", "cpu": [ "arm" ], @@ -479,9 +479,9 @@ ] }, "node_modules/@rollup/rollup-linux-arm-musleabihf": { - "version": "4.16.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.16.4.tgz", - "integrity": "sha512-tJfJaXPiFAG+Jn3cutp7mCs1ePltuAgRqdDZrzb1aeE3TktWWJ+g7xK9SNlaSUFw6IU4QgOxAY4rA+wZUT5Wfg==", + "version": "4.17.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.17.1.tgz", + "integrity": "sha512-9BfzwyPNV0IizQoR+5HTNBGkh1KXE8BqU0DBkqMngmyFW7BfuIZyMjQ0s6igJEiPSBvT3ZcnIFohZ19OqjhDPg==", "cpu": [ "arm" ], @@ -492,9 +492,9 @@ ] }, "node_modules/@rollup/rollup-linux-arm64-gnu": { - "version": "4.16.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.16.4.tgz", - "integrity": "sha512-7dy1BzQkgYlUTapDTvK997cgi0Orh5Iu7JlZVBy1MBURk7/HSbHkzRnXZa19ozy+wwD8/SlpJnOOckuNZtJR9w==", + "version": "4.17.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.17.1.tgz", + "integrity": "sha512-e2uWaoxo/rtzA52OifrTSXTvJhAXb0XeRkz4CdHBK2KtxrFmuU/uNd544Ogkpu938BzEfvmWs8NZ8Axhw33FDw==", "cpu": [ "arm64" ], @@ -505,9 +505,9 @@ ] }, "node_modules/@rollup/rollup-linux-arm64-musl": { - "version": "4.16.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.16.4.tgz", - "integrity": "sha512-zsFwdUw5XLD1gQe0aoU2HVceI6NEW7q7m05wA46eUAyrkeNYExObfRFQcvA6zw8lfRc5BHtan3tBpo+kqEOxmg==", + "version": "4.17.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.17.1.tgz", + "integrity": "sha512-ekggix/Bc/d/60H1Mi4YeYb/7dbal1kEDZ6sIFVAE8pUSx7PiWeEh+NWbL7bGu0X68BBIkgF3ibRJe1oFTksQQ==", "cpu": [ "arm64" ], @@ -518,9 +518,9 @@ ] }, "node_modules/@rollup/rollup-linux-powerpc64le-gnu": { - "version": "4.16.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-powerpc64le-gnu/-/rollup-linux-powerpc64le-gnu-4.16.4.tgz", - "integrity": "sha512-p8C3NnxXooRdNrdv6dBmRTddEapfESEUflpICDNKXpHvTjRRq1J82CbU5G3XfebIZyI3B0s074JHMWD36qOW6w==", + "version": "4.17.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-powerpc64le-gnu/-/rollup-linux-powerpc64le-gnu-4.17.1.tgz", + "integrity": "sha512-UGV0dUo/xCv4pkr/C8KY7XLFwBNnvladt8q+VmdKrw/3RUd3rD0TptwjisvE2TTnnlENtuY4/PZuoOYRiGp8Gw==", "cpu": [ "ppc64" ], @@ -531,9 +531,9 @@ ] }, "node_modules/@rollup/rollup-linux-riscv64-gnu": { - "version": "4.16.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.16.4.tgz", - "integrity": "sha512-Lh/8ckoar4s4Id2foY7jNgitTOUQczwMWNYi+Mjt0eQ9LKhr6sK477REqQkmy8YHY3Ca3A2JJVdXnfb3Rrwkng==", + "version": "4.17.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.17.1.tgz", + "integrity": "sha512-gEYmYYHaehdvX46mwXrU49vD6Euf1Bxhq9pPb82cbUU9UT2NV+RSckQ5tKWOnNXZixKsy8/cPGtiUWqzPuAcXQ==", "cpu": [ "riscv64" ], @@ -544,9 +544,9 @@ ] }, "node_modules/@rollup/rollup-linux-s390x-gnu": { - "version": "4.16.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.16.4.tgz", - "integrity": "sha512-1xwwn9ZCQYuqGmulGsTZoKrrn0z2fAur2ujE60QgyDpHmBbXbxLaQiEvzJWDrscRq43c8DnuHx3QorhMTZgisQ==", + "version": "4.17.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.17.1.tgz", + "integrity": "sha512-xeae5pMAxHFp6yX5vajInG2toST5lsCTrckSRUFwNgzYqnUjNBcQyqk1bXUxX5yhjWFl2Mnz3F8vQjl+2FRIcw==", "cpu": [ "s390x" ], @@ -557,9 +557,9 @@ ] }, "node_modules/@rollup/rollup-linux-x64-gnu": { - "version": "4.16.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.16.4.tgz", - "integrity": "sha512-LuOGGKAJ7dfRtxVnO1i3qWc6N9sh0Em/8aZ3CezixSTM+E9Oq3OvTsvC4sm6wWjzpsIlOCnZjdluINKESflJLA==", + "version": "4.17.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.17.1.tgz", + "integrity": "sha512-AsdnINQoDWfKpBzCPqQWxSPdAWzSgnYbrJYtn6W0H2E9It5bZss99PiLA8CgmDRfvKygt20UpZ3xkhFlIfX9zQ==", "cpu": [ "x64" ], @@ -570,9 +570,9 @@ ] }, "node_modules/@rollup/rollup-linux-x64-musl": { - "version": "4.16.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.16.4.tgz", - "integrity": "sha512-ch86i7KkJKkLybDP2AtySFTRi5fM3KXp0PnHocHuJMdZwu7BuyIKi35BE9guMlmTpwwBTB3ljHj9IQXnTCD0vA==", + "version": "4.17.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.17.1.tgz", + "integrity": "sha512-KoB4fyKXTR+wYENkIG3fFF+5G6N4GFvzYx8Jax8BR4vmddtuqSb5oQmYu2Uu067vT/Fod7gxeQYKupm8gAcMSQ==", "cpu": [ "x64" ], @@ -583,9 +583,9 @@ ] }, "node_modules/@rollup/rollup-win32-arm64-msvc": { - "version": "4.16.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.16.4.tgz", - "integrity": "sha512-Ma4PwyLfOWZWayfEsNQzTDBVW8PZ6TUUN1uFTBQbF2Chv/+sjenE86lpiEwj2FiviSmSZ4Ap4MaAfl1ciF4aSA==", + "version": "4.17.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.17.1.tgz", + "integrity": "sha512-J0d3NVNf7wBL9t4blCNat+d0PYqAx8wOoY+/9Q5cujnafbX7BmtYk3XvzkqLmFECaWvXGLuHmKj/wrILUinmQg==", "cpu": [ "arm64" ], @@ -596,9 +596,9 @@ ] }, "node_modules/@rollup/rollup-win32-ia32-msvc": { - "version": "4.16.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.16.4.tgz", - "integrity": "sha512-9m/ZDrQsdo/c06uOlP3W9G2ENRVzgzbSXmXHT4hwVaDQhYcRpi9bgBT0FTG9OhESxwK0WjQxYOSfv40cU+T69w==", + "version": "4.17.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.17.1.tgz", + "integrity": "sha512-xjgkWUwlq7IbgJSIxvl516FJ2iuC/7ttjsAxSPpC9kkI5iQQFHKyEN5BjbhvJ/IXIZ3yIBcW5QDlWAyrA+TFag==", "cpu": [ "ia32" ], @@ -609,9 +609,9 @@ ] }, "node_modules/@rollup/rollup-win32-x64-msvc": { - "version": "4.16.4", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.16.4.tgz", - "integrity": "sha512-YunpoOAyGLDseanENHmbFvQSfVL5BxW3k7hhy0eN4rb3gS/ct75dVD0EXOWIqFT/nE8XYW6LP6vz6ctKRi0k9A==", + "version": "4.17.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.17.1.tgz", + "integrity": "sha512-0QbCkfk6cnnVKWqqlC0cUrrUMDMfu5ffvYMTUHf+qMN2uAb3MKP31LPcwiMXBNsvoFGs/kYdFOsuLmvppCopXA==", "cpu": [ "x64" ], @@ -881,9 +881,9 @@ } }, "node_modules/dayjs": { - "version": "1.11.10", - "resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.10.tgz", - "integrity": "sha512-vjAczensTgRcqDERK0SR2XMwsF/tSvnvlv6VcF2GIhg6Sx4yOIt/irsr1RDJsKiIyBzJDpCoXiWWq28MqH2cnQ==", + "version": "1.11.11", + "resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.11.tgz", + "integrity": "sha512-okzr3f11N6WuqYtZSvm+F776mB41wRZMhKP+hc34YdW+KmtYYK9iqvHSwo2k9FEH3fhGXvOPV6yz2IcSrfRUDg==", "dev": true }, "node_modules/delayed-stream": { @@ -1263,9 +1263,9 @@ } }, "node_modules/rollup": { - "version": "4.16.4", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.16.4.tgz", - "integrity": "sha512-kuaTJSUbz+Wsb2ATGvEknkI12XV40vIiHmLuFlejoo7HtDok/O5eDDD0UpCVY5bBX5U5RYo8wWP83H7ZsqVEnA==", + "version": "4.17.1", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.17.1.tgz", + "integrity": "sha512-0gG94inrUtg25sB2V/pApwiv1lUb0bQ25FPNuzO89Baa+B+c0ccaaBKM5zkZV/12pUUdH+lWCSm9wmHqyocuVQ==", "dev": true, "dependencies": { "@types/estree": "1.0.5" @@ -1278,22 +1278,22 @@ "npm": ">=8.0.0" }, "optionalDependencies": { - "@rollup/rollup-android-arm-eabi": "4.16.4", - "@rollup/rollup-android-arm64": "4.16.4", - "@rollup/rollup-darwin-arm64": "4.16.4", - "@rollup/rollup-darwin-x64": "4.16.4", - "@rollup/rollup-linux-arm-gnueabihf": "4.16.4", - "@rollup/rollup-linux-arm-musleabihf": "4.16.4", - "@rollup/rollup-linux-arm64-gnu": "4.16.4", - "@rollup/rollup-linux-arm64-musl": "4.16.4", - "@rollup/rollup-linux-powerpc64le-gnu": "4.16.4", - "@rollup/rollup-linux-riscv64-gnu": "4.16.4", - "@rollup/rollup-linux-s390x-gnu": "4.16.4", - "@rollup/rollup-linux-x64-gnu": "4.16.4", - "@rollup/rollup-linux-x64-musl": "4.16.4", - "@rollup/rollup-win32-arm64-msvc": "4.16.4", - "@rollup/rollup-win32-ia32-msvc": "4.16.4", - "@rollup/rollup-win32-x64-msvc": "4.16.4", + "@rollup/rollup-android-arm-eabi": "4.17.1", + "@rollup/rollup-android-arm64": "4.17.1", + "@rollup/rollup-darwin-arm64": "4.17.1", + "@rollup/rollup-darwin-x64": "4.17.1", + "@rollup/rollup-linux-arm-gnueabihf": "4.17.1", + "@rollup/rollup-linux-arm-musleabihf": "4.17.1", + "@rollup/rollup-linux-arm64-gnu": "4.17.1", + "@rollup/rollup-linux-arm64-musl": "4.17.1", + "@rollup/rollup-linux-powerpc64le-gnu": "4.17.1", + "@rollup/rollup-linux-riscv64-gnu": "4.17.1", + "@rollup/rollup-linux-s390x-gnu": "4.17.1", + "@rollup/rollup-linux-x64-gnu": "4.17.1", + "@rollup/rollup-linux-x64-musl": "4.17.1", + "@rollup/rollup-win32-arm64-msvc": "4.17.1", + "@rollup/rollup-win32-ia32-msvc": "4.17.1", + "@rollup/rollup-win32-x64-msvc": "4.17.1", "fsevents": "~2.3.2" } }, diff --git a/public/build/assets/app-CqcAByRH.js b/public/build/assets/app-CQBbL-fs.js similarity index 63% rename from public/build/assets/app-CqcAByRH.js rename to public/build/assets/app-CQBbL-fs.js index d14edb1..4dfded5 100644 --- a/public/build/assets/app-CqcAByRH.js +++ b/public/build/assets/app-CQBbL-fs.js @@ -1,44 +1,44 @@ -var ch=Object.defineProperty;var uh=(n,t,e)=>t in n?ch(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e;var z=(n,t,e)=>(uh(n,typeof t!="symbol"?t+"":t,e),e);import{j as hh,r as zi,c as Hl,g as es}from"./jquery-BbSKnqzy.js";window.jQuery=window.$=hh;var bt="top",Ct="bottom",Tt="right",yt="left",ns="auto",hn=[bt,Ct,Tt,yt],Ne="start",Qe="end",zl="clippingParents",ko="viewport",Ke="popper",Vl="reference",no=hn.reduce(function(n,t){return n.concat([t+"-"+Ne,t+"-"+Qe])},[]),Lo=[].concat(hn,[ns]).reduce(function(n,t){return n.concat([t,t+"-"+Ne,t+"-"+Qe])},[]),jl="beforeRead",Wl="read",ql="afterRead",Yl="beforeMain",Ul="main",Kl="afterMain",Gl="beforeWrite",Xl="write",Jl="afterWrite",Zl=[jl,Wl,ql,Yl,Ul,Kl,Gl,Xl,Jl];function Wt(n){return n?(n.nodeName||"").toLowerCase():null}function Ot(n){if(n==null)return window;if(n.toString()!=="[object Window]"){var t=n.ownerDocument;return t&&t.defaultView||window}return n}function Fe(n){var t=Ot(n).Element;return n instanceof t||n instanceof Element}function Mt(n){var t=Ot(n).HTMLElement;return n instanceof t||n instanceof HTMLElement}function Po(n){if(typeof ShadowRoot>"u")return!1;var t=Ot(n).ShadowRoot;return n instanceof t||n instanceof ShadowRoot}function dh(n){var t=n.state;Object.keys(t.elements).forEach(function(e){var i=t.styles[e]||{},s=t.attributes[e]||{},o=t.elements[e];!Mt(o)||!Wt(o)||(Object.assign(o.style,i),Object.keys(s).forEach(function(r){var a=s[r];a===!1?o.removeAttribute(r):o.setAttribute(r,a===!0?"":a)}))})}function fh(n){var t=n.state,e={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,e.popper),t.styles=e,t.elements.arrow&&Object.assign(t.elements.arrow.style,e.arrow),function(){Object.keys(t.elements).forEach(function(i){var s=t.elements[i],o=t.attributes[i]||{},r=Object.keys(t.styles.hasOwnProperty(i)?t.styles[i]:e[i]),a=r.reduce(function(l,c){return l[c]="",l},{});!Mt(s)||!Wt(s)||(Object.assign(s.style,a),Object.keys(o).forEach(function(l){s.removeAttribute(l)}))})}}const Ro={name:"applyStyles",enabled:!0,phase:"write",fn:dh,effect:fh,requires:["computeStyles"]};function zt(n){return n.split("-")[0]}var Pe=Math.max,Vi=Math.min,tn=Math.round;function io(){var n=navigator.userAgentData;return n!=null&&n.brands&&Array.isArray(n.brands)?n.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Ql(){return!/^((?!chrome|android).)*safari/i.test(io())}function en(n,t,e){t===void 0&&(t=!1),e===void 0&&(e=!1);var i=n.getBoundingClientRect(),s=1,o=1;t&&Mt(n)&&(s=n.offsetWidth>0&&tn(i.width)/n.offsetWidth||1,o=n.offsetHeight>0&&tn(i.height)/n.offsetHeight||1);var r=Fe(n)?Ot(n):window,a=r.visualViewport,l=!Ql()&&e,c=(i.left+(l&&a?a.offsetLeft:0))/s,u=(i.top+(l&&a?a.offsetTop:0))/o,h=i.width/s,d=i.height/o;return{width:h,height:d,top:u,right:c+h,bottom:u+d,left:c,x:c,y:u}}function Io(n){var t=en(n),e=n.offsetWidth,i=n.offsetHeight;return Math.abs(t.width-e)<=1&&(e=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:n.offsetLeft,y:n.offsetTop,width:e,height:i}}function tc(n,t){var e=t.getRootNode&&t.getRootNode();if(n.contains(t))return!0;if(e&&Po(e)){var i=t;do{if(i&&n.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function oe(n){return Ot(n).getComputedStyle(n)}function ph(n){return["table","td","th"].indexOf(Wt(n))>=0}function ve(n){return((Fe(n)?n.ownerDocument:n.document)||window.document).documentElement}function is(n){return Wt(n)==="html"?n:n.assignedSlot||n.parentNode||(Po(n)?n.host:null)||ve(n)}function Ar(n){return!Mt(n)||oe(n).position==="fixed"?null:n.offsetParent}function gh(n){var t=/firefox/i.test(io()),e=/Trident/i.test(io());if(e&&Mt(n)){var i=oe(n);if(i.position==="fixed")return null}var s=is(n);for(Po(s)&&(s=s.host);Mt(s)&&["html","body"].indexOf(Wt(s))<0;){var o=oe(s);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return s;s=s.parentNode}return null}function Yn(n){for(var t=Ot(n),e=Ar(n);e&&ph(e)&&oe(e).position==="static";)e=Ar(e);return e&&(Wt(e)==="html"||Wt(e)==="body"&&oe(e).position==="static")?t:e||gh(n)||t}function No(n){return["top","bottom"].indexOf(n)>=0?"x":"y"}function Dn(n,t,e){return Pe(n,Vi(t,e))}function mh(n,t,e){var i=Dn(n,t,e);return i>e?e:i}function ec(){return{top:0,right:0,bottom:0,left:0}}function nc(n){return Object.assign({},ec(),n)}function ic(n,t){return t.reduce(function(e,i){return e[i]=n,e},{})}var _h=function(t,e){return t=typeof t=="function"?t(Object.assign({},e.rects,{placement:e.placement})):t,nc(typeof t!="number"?t:ic(t,hn))};function bh(n){var t,e=n.state,i=n.name,s=n.options,o=e.elements.arrow,r=e.modifiersData.popperOffsets,a=zt(e.placement),l=No(a),c=[yt,Tt].indexOf(a)>=0,u=c?"height":"width";if(!(!o||!r)){var h=_h(s.padding,e),d=Io(o),f=l==="y"?bt:yt,p=l==="y"?Ct:Tt,g=e.rects.reference[u]+e.rects.reference[l]-r[l]-e.rects.popper[u],_=r[l]-e.rects.reference[l],b=Yn(o),v=b?l==="y"?b.clientHeight||0:b.clientWidth||0:0,w=g/2-_/2,x=h[f],A=v-d[u]-h[p],M=v/2-d[u]/2+w,P=Dn(x,M,A),N=l;e.modifiersData[i]=(t={},t[N]=P,t.centerOffset=P-M,t)}}function yh(n){var t=n.state,e=n.options,i=e.element,s=i===void 0?"[data-popper-arrow]":i;s!=null&&(typeof s=="string"&&(s=t.elements.popper.querySelector(s),!s)||tc(t.elements.popper,s)&&(t.elements.arrow=s))}const sc={name:"arrow",enabled:!0,phase:"main",fn:bh,effect:yh,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function nn(n){return n.split("-")[1]}var vh={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Eh(n,t){var e=n.x,i=n.y,s=t.devicePixelRatio||1;return{x:tn(e*s)/s||0,y:tn(i*s)/s||0}}function Sr(n){var t,e=n.popper,i=n.popperRect,s=n.placement,o=n.variation,r=n.offsets,a=n.position,l=n.gpuAcceleration,c=n.adaptive,u=n.roundOffsets,h=n.isFixed,d=r.x,f=d===void 0?0:d,p=r.y,g=p===void 0?0:p,_=typeof u=="function"?u({x:f,y:g}):{x:f,y:g};f=_.x,g=_.y;var b=r.hasOwnProperty("x"),v=r.hasOwnProperty("y"),w=yt,x=bt,A=window;if(c){var M=Yn(e),P="clientHeight",N="clientWidth";if(M===Ot(e)&&(M=ve(e),oe(M).position!=="static"&&a==="absolute"&&(P="scrollHeight",N="scrollWidth")),M=M,s===bt||(s===yt||s===Tt)&&o===Qe){x=Ct;var k=h&&M===A&&A.visualViewport?A.visualViewport.height:M[P];g-=k-i.height,g*=l?1:-1}if(s===yt||(s===bt||s===Ct)&&o===Qe){w=Tt;var m=h&&M===A&&A.visualViewport?A.visualViewport.width:M[N];f-=m-i.width,f*=l?1:-1}}var E=Object.assign({position:a},c&&vh),I=u===!0?Eh({x:f,y:g},Ot(e)):{x:f,y:g};if(f=I.x,g=I.y,l){var y;return Object.assign({},E,(y={},y[x]=v?"0":"",y[w]=b?"0":"",y.transform=(A.devicePixelRatio||1)<=1?"translate("+f+"px, "+g+"px)":"translate3d("+f+"px, "+g+"px, 0)",y))}return Object.assign({},E,(t={},t[x]=v?g+"px":"",t[w]=b?f+"px":"",t.transform="",t))}function xh(n){var t=n.state,e=n.options,i=e.gpuAcceleration,s=i===void 0?!0:i,o=e.adaptive,r=o===void 0?!0:o,a=e.roundOffsets,l=a===void 0?!0:a,c={placement:zt(t.placement),variation:nn(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Sr(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:r,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Sr(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Fo={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:xh,data:{}};var si={passive:!0};function wh(n){var t=n.state,e=n.instance,i=n.options,s=i.scroll,o=s===void 0?!0:s,r=i.resize,a=r===void 0?!0:r,l=Ot(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(u){u.addEventListener("scroll",e.update,si)}),a&&l.addEventListener("resize",e.update,si),function(){o&&c.forEach(function(u){u.removeEventListener("scroll",e.update,si)}),a&&l.removeEventListener("resize",e.update,si)}}const $o={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:wh,data:{}};var Ah={left:"right",right:"left",bottom:"top",top:"bottom"};function Ci(n){return n.replace(/left|right|bottom|top/g,function(t){return Ah[t]})}var Sh={start:"end",end:"start"};function Cr(n){return n.replace(/start|end/g,function(t){return Sh[t]})}function Bo(n){var t=Ot(n),e=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:e,scrollTop:i}}function Ho(n){return en(ve(n)).left+Bo(n).scrollLeft}function Ch(n,t){var e=Ot(n),i=ve(n),s=e.visualViewport,o=i.clientWidth,r=i.clientHeight,a=0,l=0;if(s){o=s.width,r=s.height;var c=Ql();(c||!c&&t==="fixed")&&(a=s.offsetLeft,l=s.offsetTop)}return{width:o,height:r,x:a+Ho(n),y:l}}function Th(n){var t,e=ve(n),i=Bo(n),s=(t=n.ownerDocument)==null?void 0:t.body,o=Pe(e.scrollWidth,e.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),r=Pe(e.scrollHeight,e.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),a=-i.scrollLeft+Ho(n),l=-i.scrollTop;return oe(s||e).direction==="rtl"&&(a+=Pe(e.clientWidth,s?s.clientWidth:0)-o),{width:o,height:r,x:a,y:l}}function zo(n){var t=oe(n),e=t.overflow,i=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(e+s+i)}function oc(n){return["html","body","#document"].indexOf(Wt(n))>=0?n.ownerDocument.body:Mt(n)&&zo(n)?n:oc(is(n))}function Mn(n,t){var e;t===void 0&&(t=[]);var i=oc(n),s=i===((e=n.ownerDocument)==null?void 0:e.body),o=Ot(i),r=s?[o].concat(o.visualViewport||[],zo(i)?i:[]):i,a=t.concat(r);return s?a:a.concat(Mn(is(r)))}function so(n){return Object.assign({},n,{left:n.x,top:n.y,right:n.x+n.width,bottom:n.y+n.height})}function Oh(n,t){var e=en(n,!1,t==="fixed");return e.top=e.top+n.clientTop,e.left=e.left+n.clientLeft,e.bottom=e.top+n.clientHeight,e.right=e.left+n.clientWidth,e.width=n.clientWidth,e.height=n.clientHeight,e.x=e.left,e.y=e.top,e}function Tr(n,t,e){return t===ko?so(Ch(n,e)):Fe(t)?Oh(t,e):so(Th(ve(n)))}function Dh(n){var t=Mn(is(n)),e=["absolute","fixed"].indexOf(oe(n).position)>=0,i=e&&Mt(n)?Yn(n):n;return Fe(i)?t.filter(function(s){return Fe(s)&&tc(s,i)&&Wt(s)!=="body"}):[]}function Mh(n,t,e,i){var s=t==="clippingParents"?Dh(n):[].concat(t),o=[].concat(s,[e]),r=o[0],a=o.reduce(function(l,c){var u=Tr(n,c,i);return l.top=Pe(u.top,l.top),l.right=Vi(u.right,l.right),l.bottom=Vi(u.bottom,l.bottom),l.left=Pe(u.left,l.left),l},Tr(n,r,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function rc(n){var t=n.reference,e=n.element,i=n.placement,s=i?zt(i):null,o=i?nn(i):null,r=t.x+t.width/2-e.width/2,a=t.y+t.height/2-e.height/2,l;switch(s){case bt:l={x:r,y:t.y-e.height};break;case Ct:l={x:r,y:t.y+t.height};break;case Tt:l={x:t.x+t.width,y:a};break;case yt:l={x:t.x-e.width,y:a};break;default:l={x:t.x,y:t.y}}var c=s?No(s):null;if(c!=null){var u=c==="y"?"height":"width";switch(o){case Ne:l[c]=l[c]-(t[u]/2-e[u]/2);break;case Qe:l[c]=l[c]+(t[u]/2-e[u]/2);break}}return l}function sn(n,t){t===void 0&&(t={});var e=t,i=e.placement,s=i===void 0?n.placement:i,o=e.strategy,r=o===void 0?n.strategy:o,a=e.boundary,l=a===void 0?zl:a,c=e.rootBoundary,u=c===void 0?ko:c,h=e.elementContext,d=h===void 0?Ke:h,f=e.altBoundary,p=f===void 0?!1:f,g=e.padding,_=g===void 0?0:g,b=nc(typeof _!="number"?_:ic(_,hn)),v=d===Ke?Vl:Ke,w=n.rects.popper,x=n.elements[p?v:d],A=Mh(Fe(x)?x:x.contextElement||ve(n.elements.popper),l,u,r),M=en(n.elements.reference),P=rc({reference:M,element:w,strategy:"absolute",placement:s}),N=so(Object.assign({},w,P)),k=d===Ke?N:M,m={top:A.top-k.top+b.top,bottom:k.bottom-A.bottom+b.bottom,left:A.left-k.left+b.left,right:k.right-A.right+b.right},E=n.modifiersData.offset;if(d===Ke&&E){var I=E[s];Object.keys(m).forEach(function(y){var O=[Tt,Ct].indexOf(y)>=0?1:-1,S=[bt,Ct].indexOf(y)>=0?"y":"x";m[y]+=I[S]*O})}return m}function kh(n,t){t===void 0&&(t={});var e=t,i=e.placement,s=e.boundary,o=e.rootBoundary,r=e.padding,a=e.flipVariations,l=e.allowedAutoPlacements,c=l===void 0?Lo:l,u=nn(i),h=u?a?no:no.filter(function(p){return nn(p)===u}):hn,d=h.filter(function(p){return c.indexOf(p)>=0});d.length===0&&(d=h);var f=d.reduce(function(p,g){return p[g]=sn(n,{placement:g,boundary:s,rootBoundary:o,padding:r})[zt(g)],p},{});return Object.keys(f).sort(function(p,g){return f[p]-f[g]})}function Lh(n){if(zt(n)===ns)return[];var t=Ci(n);return[Cr(n),t,Cr(t)]}function Ph(n){var t=n.state,e=n.options,i=n.name;if(!t.modifiersData[i]._skip){for(var s=e.mainAxis,o=s===void 0?!0:s,r=e.altAxis,a=r===void 0?!0:r,l=e.fallbackPlacements,c=e.padding,u=e.boundary,h=e.rootBoundary,d=e.altBoundary,f=e.flipVariations,p=f===void 0?!0:f,g=e.allowedAutoPlacements,_=t.options.placement,b=zt(_),v=b===_,w=l||(v||!p?[Ci(_)]:Lh(_)),x=[_].concat(w).reduce(function(j,q){return j.concat(zt(q)===ns?kh(t,{placement:q,boundary:u,rootBoundary:h,padding:c,flipVariations:p,allowedAutoPlacements:g}):q)},[]),A=t.rects.reference,M=t.rects.popper,P=new Map,N=!0,k=x[0],m=0;m=0,S=O?"width":"height",C=sn(t,{placement:E,boundary:u,rootBoundary:h,altBoundary:d,padding:c}),L=O?y?Tt:yt:y?Ct:bt;A[S]>M[S]&&(L=Ci(L));var D=Ci(L),B=[];if(o&&B.push(C[I]<=0),a&&B.push(C[L]<=0,C[D]<=0),B.every(function(j){return j})){k=E,N=!1;break}P.set(E,B)}if(N)for(var F=p?3:1,W=function(q){var U=x.find(function(G){var nt=P.get(G);if(nt)return nt.slice(0,q).every(function(lt){return lt})});if(U)return k=U,"break"},T=F;T>0;T--){var V=W(T);if(V==="break")break}t.placement!==k&&(t.modifiersData[i]._skip=!0,t.placement=k,t.reset=!0)}}const ac={name:"flip",enabled:!0,phase:"main",fn:Ph,requiresIfExists:["offset"],data:{_skip:!1}};function Or(n,t,e){return e===void 0&&(e={x:0,y:0}),{top:n.top-t.height-e.y,right:n.right-t.width+e.x,bottom:n.bottom-t.height+e.y,left:n.left-t.width-e.x}}function Dr(n){return[bt,Tt,Ct,yt].some(function(t){return n[t]>=0})}function Rh(n){var t=n.state,e=n.name,i=t.rects.reference,s=t.rects.popper,o=t.modifiersData.preventOverflow,r=sn(t,{elementContext:"reference"}),a=sn(t,{altBoundary:!0}),l=Or(r,i),c=Or(a,s,o),u=Dr(l),h=Dr(c);t.modifiersData[e]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":h})}const lc={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Rh};function Ih(n,t,e){var i=zt(n),s=[yt,bt].indexOf(i)>=0?-1:1,o=typeof e=="function"?e(Object.assign({},t,{placement:n})):e,r=o[0],a=o[1];return r=r||0,a=(a||0)*s,[yt,Tt].indexOf(i)>=0?{x:a,y:r}:{x:r,y:a}}function Nh(n){var t=n.state,e=n.options,i=n.name,s=e.offset,o=s===void 0?[0,0]:s,r=Lo.reduce(function(u,h){return u[h]=Ih(h,t.rects,o),u},{}),a=r[t.placement],l=a.x,c=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[i]=r}const cc={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Nh};function Fh(n){var t=n.state,e=n.name;t.modifiersData[e]=rc({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Vo={name:"popperOffsets",enabled:!0,phase:"read",fn:Fh,data:{}};function $h(n){return n==="x"?"y":"x"}function Bh(n){var t=n.state,e=n.options,i=n.name,s=e.mainAxis,o=s===void 0?!0:s,r=e.altAxis,a=r===void 0?!1:r,l=e.boundary,c=e.rootBoundary,u=e.altBoundary,h=e.padding,d=e.tether,f=d===void 0?!0:d,p=e.tetherOffset,g=p===void 0?0:p,_=sn(t,{boundary:l,rootBoundary:c,padding:h,altBoundary:u}),b=zt(t.placement),v=nn(t.placement),w=!v,x=No(b),A=$h(x),M=t.modifiersData.popperOffsets,P=t.rects.reference,N=t.rects.popper,k=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,m=typeof k=="number"?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),E=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,I={x:0,y:0};if(M){if(o){var y,O=x==="y"?bt:yt,S=x==="y"?Ct:Tt,C=x==="y"?"height":"width",L=M[x],D=L+_[O],B=L-_[S],F=f?-N[C]/2:0,W=v===Ne?P[C]:N[C],T=v===Ne?-N[C]:-P[C],V=t.elements.arrow,j=f&&V?Io(V):{width:0,height:0},q=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:ec(),U=q[O],G=q[S],nt=Dn(0,P[C],j[C]),lt=w?P[C]/2-F-nt-U-m.mainAxis:W-nt-U-m.mainAxis,ut=w?-P[C]/2+F+nt+G+m.mainAxis:T+nt+G+m.mainAxis,pt=t.elements.arrow&&Yn(t.elements.arrow),Yt=pt?x==="y"?pt.clientTop||0:pt.clientLeft||0:0,wt=(y=E==null?void 0:E[x])!=null?y:0,Es=L+lt-wt-Yt,xs=L+ut-wt,ni=Dn(f?Vi(D,Es):D,L,f?Pe(B,xs):B);M[x]=ni,I[x]=ni-L}if(a){var J,je=x==="x"?bt:yt,ws=x==="x"?Ct:Tt,Ut=M[A],ii=A==="y"?"height":"width",br=Ut+_[je],yr=Ut-_[ws],As=[bt,yt].indexOf(b)!==-1,vr=(J=E==null?void 0:E[A])!=null?J:0,Er=As?br:Ut-P[ii]-N[ii]-vr+m.altAxis,xr=As?Ut+P[ii]+N[ii]-vr-m.altAxis:yr,wr=f&&As?mh(Er,Ut,xr):Dn(f?Er:br,Ut,f?xr:yr);M[A]=wr,I[A]=wr-Ut}t.modifiersData[i]=I}}const uc={name:"preventOverflow",enabled:!0,phase:"main",fn:Bh,requiresIfExists:["offset"]};function Hh(n){return{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}}function zh(n){return n===Ot(n)||!Mt(n)?Bo(n):Hh(n)}function Vh(n){var t=n.getBoundingClientRect(),e=tn(t.width)/n.offsetWidth||1,i=tn(t.height)/n.offsetHeight||1;return e!==1||i!==1}function jh(n,t,e){e===void 0&&(e=!1);var i=Mt(t),s=Mt(t)&&Vh(t),o=ve(t),r=en(n,s,e),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!e)&&((Wt(t)!=="body"||zo(o))&&(a=zh(t)),Mt(t)?(l=en(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=Ho(o))),{x:r.left+a.scrollLeft-l.x,y:r.top+a.scrollTop-l.y,width:r.width,height:r.height}}function Wh(n){var t=new Map,e=new Set,i=[];n.forEach(function(o){t.set(o.name,o)});function s(o){e.add(o.name);var r=[].concat(o.requires||[],o.requiresIfExists||[]);r.forEach(function(a){if(!e.has(a)){var l=t.get(a);l&&s(l)}}),i.push(o)}return n.forEach(function(o){e.has(o.name)||s(o)}),i}function qh(n){var t=Wh(n);return Zl.reduce(function(e,i){return e.concat(t.filter(function(s){return s.phase===i}))},[])}function Yh(n){var t;return function(){return t||(t=new Promise(function(e){Promise.resolve().then(function(){t=void 0,e(n())})})),t}}function Uh(n){var t=n.reduce(function(e,i){var s=e[i.name];return e[i.name]=s?Object.assign({},s,i,{options:Object.assign({},s.options,i.options),data:Object.assign({},s.data,i.data)}):i,e},{});return Object.keys(t).map(function(e){return t[e]})}var Mr={placement:"bottom",modifiers:[],strategy:"absolute"};function kr(){for(var n=arguments.length,t=new Array(n),e=0;et in n?rh(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e;var z=(n,t,e)=>(ah(n,typeof t!="symbol"?t+"":t,e),e);import{j as lh,r as Vi,c as Fl,g as es}from"./jquery-BbSKnqzy.js";window.jQuery=window.$=lh;var bt="top",Ct="bottom",Tt="right",yt="left",ns="auto",dn=[bt,Ct,Tt,yt],Fe="start",tn="end",$l="clippingParents",Mo="viewport",Ge="popper",Bl="reference",eo=dn.reduce(function(n,t){return n.concat([t+"-"+Fe,t+"-"+tn])},[]),ko=[].concat(dn,[ns]).reduce(function(n,t){return n.concat([t,t+"-"+Fe,t+"-"+tn])},[]),Hl="beforeRead",zl="read",Vl="afterRead",jl="beforeMain",Wl="main",ql="afterMain",Yl="beforeWrite",Ul="write",Kl="afterWrite",Gl=[Hl,zl,Vl,jl,Wl,ql,Yl,Ul,Kl];function qt(n){return n?(n.nodeName||"").toLowerCase():null}function Ot(n){if(n==null)return window;if(n.toString()!=="[object Window]"){var t=n.ownerDocument;return t&&t.defaultView||window}return n}function $e(n){var t=Ot(n).Element;return n instanceof t||n instanceof Element}function Mt(n){var t=Ot(n).HTMLElement;return n instanceof t||n instanceof HTMLElement}function Lo(n){if(typeof ShadowRoot>"u")return!1;var t=Ot(n).ShadowRoot;return n instanceof t||n instanceof ShadowRoot}function ch(n){var t=n.state;Object.keys(t.elements).forEach(function(e){var i=t.styles[e]||{},s=t.attributes[e]||{},o=t.elements[e];!Mt(o)||!qt(o)||(Object.assign(o.style,i),Object.keys(s).forEach(function(r){var a=s[r];a===!1?o.removeAttribute(r):o.setAttribute(r,a===!0?"":a)}))})}function uh(n){var t=n.state,e={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,e.popper),t.styles=e,t.elements.arrow&&Object.assign(t.elements.arrow.style,e.arrow),function(){Object.keys(t.elements).forEach(function(i){var s=t.elements[i],o=t.attributes[i]||{},r=Object.keys(t.styles.hasOwnProperty(i)?t.styles[i]:e[i]),a=r.reduce(function(l,c){return l[c]="",l},{});!Mt(s)||!qt(s)||(Object.assign(s.style,a),Object.keys(o).forEach(function(l){s.removeAttribute(l)}))})}}const Po={name:"applyStyles",enabled:!0,phase:"write",fn:ch,effect:uh,requires:["computeStyles"]};function Vt(n){return n.split("-")[0]}var Pe=Math.max,ji=Math.min,en=Math.round;function no(){var n=navigator.userAgentData;return n!=null&&n.brands&&Array.isArray(n.brands)?n.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Xl(){return!/^((?!chrome|android).)*safari/i.test(no())}function nn(n,t,e){t===void 0&&(t=!1),e===void 0&&(e=!1);var i=n.getBoundingClientRect(),s=1,o=1;t&&Mt(n)&&(s=n.offsetWidth>0&&en(i.width)/n.offsetWidth||1,o=n.offsetHeight>0&&en(i.height)/n.offsetHeight||1);var r=$e(n)?Ot(n):window,a=r.visualViewport,l=!Xl()&&e,c=(i.left+(l&&a?a.offsetLeft:0))/s,u=(i.top+(l&&a?a.offsetTop:0))/o,h=i.width/s,d=i.height/o;return{width:h,height:d,top:u,right:c+h,bottom:u+d,left:c,x:c,y:u}}function Ro(n){var t=nn(n),e=n.offsetWidth,i=n.offsetHeight;return Math.abs(t.width-e)<=1&&(e=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:n.offsetLeft,y:n.offsetTop,width:e,height:i}}function Jl(n,t){var e=t.getRootNode&&t.getRootNode();if(n.contains(t))return!0;if(e&&Lo(e)){var i=t;do{if(i&&n.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function oe(n){return Ot(n).getComputedStyle(n)}function hh(n){return["table","td","th"].indexOf(qt(n))>=0}function ve(n){return(($e(n)?n.ownerDocument:n.document)||window.document).documentElement}function is(n){return qt(n)==="html"?n:n.assignedSlot||n.parentNode||(Lo(n)?n.host:null)||ve(n)}function Er(n){return!Mt(n)||oe(n).position==="fixed"?null:n.offsetParent}function dh(n){var t=/firefox/i.test(no()),e=/Trident/i.test(no());if(e&&Mt(n)){var i=oe(n);if(i.position==="fixed")return null}var s=is(n);for(Lo(s)&&(s=s.host);Mt(s)&&["html","body"].indexOf(qt(s))<0;){var o=oe(s);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return s;s=s.parentNode}return null}function Un(n){for(var t=Ot(n),e=Er(n);e&&hh(e)&&oe(e).position==="static";)e=Er(e);return e&&(qt(e)==="html"||qt(e)==="body"&&oe(e).position==="static")?t:e||dh(n)||t}function Io(n){return["top","bottom"].indexOf(n)>=0?"x":"y"}function Mn(n,t,e){return Pe(n,ji(t,e))}function fh(n,t,e){var i=Mn(n,t,e);return i>e?e:i}function Zl(){return{top:0,right:0,bottom:0,left:0}}function Ql(n){return Object.assign({},Zl(),n)}function tc(n,t){return t.reduce(function(e,i){return e[i]=n,e},{})}var ph=function(t,e){return t=typeof t=="function"?t(Object.assign({},e.rects,{placement:e.placement})):t,Ql(typeof t!="number"?t:tc(t,dn))};function gh(n){var t,e=n.state,i=n.name,s=n.options,o=e.elements.arrow,r=e.modifiersData.popperOffsets,a=Vt(e.placement),l=Io(a),c=[yt,Tt].indexOf(a)>=0,u=c?"height":"width";if(!(!o||!r)){var h=ph(s.padding,e),d=Ro(o),f=l==="y"?bt:yt,p=l==="y"?Ct:Tt,g=e.rects.reference[u]+e.rects.reference[l]-r[l]-e.rects.popper[u],_=r[l]-e.rects.reference[l],b=Un(o),v=b?l==="y"?b.clientHeight||0:b.clientWidth||0:0,w=g/2-_/2,x=h[f],A=v-d[u]-h[p],M=v/2-d[u]/2+w,P=Mn(x,M,A),N=l;e.modifiersData[i]=(t={},t[N]=P,t.centerOffset=P-M,t)}}function mh(n){var t=n.state,e=n.options,i=e.element,s=i===void 0?"[data-popper-arrow]":i;s!=null&&(typeof s=="string"&&(s=t.elements.popper.querySelector(s),!s)||Jl(t.elements.popper,s)&&(t.elements.arrow=s))}const ec={name:"arrow",enabled:!0,phase:"main",fn:gh,effect:mh,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function sn(n){return n.split("-")[1]}var _h={top:"auto",right:"auto",bottom:"auto",left:"auto"};function bh(n,t){var e=n.x,i=n.y,s=t.devicePixelRatio||1;return{x:en(e*s)/s||0,y:en(i*s)/s||0}}function xr(n){var t,e=n.popper,i=n.popperRect,s=n.placement,o=n.variation,r=n.offsets,a=n.position,l=n.gpuAcceleration,c=n.adaptive,u=n.roundOffsets,h=n.isFixed,d=r.x,f=d===void 0?0:d,p=r.y,g=p===void 0?0:p,_=typeof u=="function"?u({x:f,y:g}):{x:f,y:g};f=_.x,g=_.y;var b=r.hasOwnProperty("x"),v=r.hasOwnProperty("y"),w=yt,x=bt,A=window;if(c){var M=Un(e),P="clientHeight",N="clientWidth";if(M===Ot(e)&&(M=ve(e),oe(M).position!=="static"&&a==="absolute"&&(P="scrollHeight",N="scrollWidth")),M=M,s===bt||(s===yt||s===Tt)&&o===tn){x=Ct;var k=h&&M===A&&A.visualViewport?A.visualViewport.height:M[P];g-=k-i.height,g*=l?1:-1}if(s===yt||(s===bt||s===Ct)&&o===tn){w=Tt;var m=h&&M===A&&A.visualViewport?A.visualViewport.width:M[N];f-=m-i.width,f*=l?1:-1}}var E=Object.assign({position:a},c&&_h),I=u===!0?bh({x:f,y:g},Ot(e)):{x:f,y:g};if(f=I.x,g=I.y,l){var y;return Object.assign({},E,(y={},y[x]=v?"0":"",y[w]=b?"0":"",y.transform=(A.devicePixelRatio||1)<=1?"translate("+f+"px, "+g+"px)":"translate3d("+f+"px, "+g+"px, 0)",y))}return Object.assign({},E,(t={},t[x]=v?g+"px":"",t[w]=b?f+"px":"",t.transform="",t))}function yh(n){var t=n.state,e=n.options,i=e.gpuAcceleration,s=i===void 0?!0:i,o=e.adaptive,r=o===void 0?!0:o,a=e.roundOffsets,l=a===void 0?!0:a,c={placement:Vt(t.placement),variation:sn(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,xr(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:r,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,xr(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const No={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:yh,data:{}};var ri={passive:!0};function vh(n){var t=n.state,e=n.instance,i=n.options,s=i.scroll,o=s===void 0?!0:s,r=i.resize,a=r===void 0?!0:r,l=Ot(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(u){u.addEventListener("scroll",e.update,ri)}),a&&l.addEventListener("resize",e.update,ri),function(){o&&c.forEach(function(u){u.removeEventListener("scroll",e.update,ri)}),a&&l.removeEventListener("resize",e.update,ri)}}const Fo={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:vh,data:{}};var Eh={left:"right",right:"left",bottom:"top",top:"bottom"};function Oi(n){return n.replace(/left|right|bottom|top/g,function(t){return Eh[t]})}var xh={start:"end",end:"start"};function wr(n){return n.replace(/start|end/g,function(t){return xh[t]})}function $o(n){var t=Ot(n),e=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:e,scrollTop:i}}function Bo(n){return nn(ve(n)).left+$o(n).scrollLeft}function wh(n,t){var e=Ot(n),i=ve(n),s=e.visualViewport,o=i.clientWidth,r=i.clientHeight,a=0,l=0;if(s){o=s.width,r=s.height;var c=Xl();(c||!c&&t==="fixed")&&(a=s.offsetLeft,l=s.offsetTop)}return{width:o,height:r,x:a+Bo(n),y:l}}function Ah(n){var t,e=ve(n),i=$o(n),s=(t=n.ownerDocument)==null?void 0:t.body,o=Pe(e.scrollWidth,e.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),r=Pe(e.scrollHeight,e.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),a=-i.scrollLeft+Bo(n),l=-i.scrollTop;return oe(s||e).direction==="rtl"&&(a+=Pe(e.clientWidth,s?s.clientWidth:0)-o),{width:o,height:r,x:a,y:l}}function Ho(n){var t=oe(n),e=t.overflow,i=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(e+s+i)}function nc(n){return["html","body","#document"].indexOf(qt(n))>=0?n.ownerDocument.body:Mt(n)&&Ho(n)?n:nc(is(n))}function kn(n,t){var e;t===void 0&&(t=[]);var i=nc(n),s=i===((e=n.ownerDocument)==null?void 0:e.body),o=Ot(i),r=s?[o].concat(o.visualViewport||[],Ho(i)?i:[]):i,a=t.concat(r);return s?a:a.concat(kn(is(r)))}function io(n){return Object.assign({},n,{left:n.x,top:n.y,right:n.x+n.width,bottom:n.y+n.height})}function Sh(n,t){var e=nn(n,!1,t==="fixed");return e.top=e.top+n.clientTop,e.left=e.left+n.clientLeft,e.bottom=e.top+n.clientHeight,e.right=e.left+n.clientWidth,e.width=n.clientWidth,e.height=n.clientHeight,e.x=e.left,e.y=e.top,e}function Ar(n,t,e){return t===Mo?io(wh(n,e)):$e(t)?Sh(t,e):io(Ah(ve(n)))}function Ch(n){var t=kn(is(n)),e=["absolute","fixed"].indexOf(oe(n).position)>=0,i=e&&Mt(n)?Un(n):n;return $e(i)?t.filter(function(s){return $e(s)&&Jl(s,i)&&qt(s)!=="body"}):[]}function Th(n,t,e,i){var s=t==="clippingParents"?Ch(n):[].concat(t),o=[].concat(s,[e]),r=o[0],a=o.reduce(function(l,c){var u=Ar(n,c,i);return l.top=Pe(u.top,l.top),l.right=ji(u.right,l.right),l.bottom=ji(u.bottom,l.bottom),l.left=Pe(u.left,l.left),l},Ar(n,r,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function ic(n){var t=n.reference,e=n.element,i=n.placement,s=i?Vt(i):null,o=i?sn(i):null,r=t.x+t.width/2-e.width/2,a=t.y+t.height/2-e.height/2,l;switch(s){case bt:l={x:r,y:t.y-e.height};break;case Ct:l={x:r,y:t.y+t.height};break;case Tt:l={x:t.x+t.width,y:a};break;case yt:l={x:t.x-e.width,y:a};break;default:l={x:t.x,y:t.y}}var c=s?Io(s):null;if(c!=null){var u=c==="y"?"height":"width";switch(o){case Fe:l[c]=l[c]-(t[u]/2-e[u]/2);break;case tn:l[c]=l[c]+(t[u]/2-e[u]/2);break}}return l}function on(n,t){t===void 0&&(t={});var e=t,i=e.placement,s=i===void 0?n.placement:i,o=e.strategy,r=o===void 0?n.strategy:o,a=e.boundary,l=a===void 0?$l:a,c=e.rootBoundary,u=c===void 0?Mo:c,h=e.elementContext,d=h===void 0?Ge:h,f=e.altBoundary,p=f===void 0?!1:f,g=e.padding,_=g===void 0?0:g,b=Ql(typeof _!="number"?_:tc(_,dn)),v=d===Ge?Bl:Ge,w=n.rects.popper,x=n.elements[p?v:d],A=Th($e(x)?x:x.contextElement||ve(n.elements.popper),l,u,r),M=nn(n.elements.reference),P=ic({reference:M,element:w,strategy:"absolute",placement:s}),N=io(Object.assign({},w,P)),k=d===Ge?N:M,m={top:A.top-k.top+b.top,bottom:k.bottom-A.bottom+b.bottom,left:A.left-k.left+b.left,right:k.right-A.right+b.right},E=n.modifiersData.offset;if(d===Ge&&E){var I=E[s];Object.keys(m).forEach(function(y){var O=[Tt,Ct].indexOf(y)>=0?1:-1,S=[bt,Ct].indexOf(y)>=0?"y":"x";m[y]+=I[S]*O})}return m}function Oh(n,t){t===void 0&&(t={});var e=t,i=e.placement,s=e.boundary,o=e.rootBoundary,r=e.padding,a=e.flipVariations,l=e.allowedAutoPlacements,c=l===void 0?ko:l,u=sn(i),h=u?a?eo:eo.filter(function(p){return sn(p)===u}):dn,d=h.filter(function(p){return c.indexOf(p)>=0});d.length===0&&(d=h);var f=d.reduce(function(p,g){return p[g]=on(n,{placement:g,boundary:s,rootBoundary:o,padding:r})[Vt(g)],p},{});return Object.keys(f).sort(function(p,g){return f[p]-f[g]})}function Dh(n){if(Vt(n)===ns)return[];var t=Oi(n);return[wr(n),t,wr(t)]}function Mh(n){var t=n.state,e=n.options,i=n.name;if(!t.modifiersData[i]._skip){for(var s=e.mainAxis,o=s===void 0?!0:s,r=e.altAxis,a=r===void 0?!0:r,l=e.fallbackPlacements,c=e.padding,u=e.boundary,h=e.rootBoundary,d=e.altBoundary,f=e.flipVariations,p=f===void 0?!0:f,g=e.allowedAutoPlacements,_=t.options.placement,b=Vt(_),v=b===_,w=l||(v||!p?[Oi(_)]:Dh(_)),x=[_].concat(w).reduce(function(j,q){return j.concat(Vt(q)===ns?Oh(t,{placement:q,boundary:u,rootBoundary:h,padding:c,flipVariations:p,allowedAutoPlacements:g}):q)},[]),A=t.rects.reference,M=t.rects.popper,P=new Map,N=!0,k=x[0],m=0;m=0,S=O?"width":"height",C=on(t,{placement:E,boundary:u,rootBoundary:h,altBoundary:d,padding:c}),L=O?y?Tt:yt:y?Ct:bt;A[S]>M[S]&&(L=Oi(L));var D=Oi(L),B=[];if(o&&B.push(C[I]<=0),a&&B.push(C[L]<=0,C[D]<=0),B.every(function(j){return j})){k=E,N=!1;break}P.set(E,B)}if(N)for(var F=p?3:1,W=function(q){var U=x.find(function(G){var nt=P.get(G);if(nt)return nt.slice(0,q).every(function(lt){return lt})});if(U)return k=U,"break"},T=F;T>0;T--){var V=W(T);if(V==="break")break}t.placement!==k&&(t.modifiersData[i]._skip=!0,t.placement=k,t.reset=!0)}}const sc={name:"flip",enabled:!0,phase:"main",fn:Mh,requiresIfExists:["offset"],data:{_skip:!1}};function Sr(n,t,e){return e===void 0&&(e={x:0,y:0}),{top:n.top-t.height-e.y,right:n.right-t.width+e.x,bottom:n.bottom-t.height+e.y,left:n.left-t.width-e.x}}function Cr(n){return[bt,Tt,Ct,yt].some(function(t){return n[t]>=0})}function kh(n){var t=n.state,e=n.name,i=t.rects.reference,s=t.rects.popper,o=t.modifiersData.preventOverflow,r=on(t,{elementContext:"reference"}),a=on(t,{altBoundary:!0}),l=Sr(r,i),c=Sr(a,s,o),u=Cr(l),h=Cr(c);t.modifiersData[e]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":h})}const oc={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:kh};function Lh(n,t,e){var i=Vt(n),s=[yt,bt].indexOf(i)>=0?-1:1,o=typeof e=="function"?e(Object.assign({},t,{placement:n})):e,r=o[0],a=o[1];return r=r||0,a=(a||0)*s,[yt,Tt].indexOf(i)>=0?{x:a,y:r}:{x:r,y:a}}function Ph(n){var t=n.state,e=n.options,i=n.name,s=e.offset,o=s===void 0?[0,0]:s,r=ko.reduce(function(u,h){return u[h]=Lh(h,t.rects,o),u},{}),a=r[t.placement],l=a.x,c=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[i]=r}const rc={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Ph};function Rh(n){var t=n.state,e=n.name;t.modifiersData[e]=ic({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const zo={name:"popperOffsets",enabled:!0,phase:"read",fn:Rh,data:{}};function Ih(n){return n==="x"?"y":"x"}function Nh(n){var t=n.state,e=n.options,i=n.name,s=e.mainAxis,o=s===void 0?!0:s,r=e.altAxis,a=r===void 0?!1:r,l=e.boundary,c=e.rootBoundary,u=e.altBoundary,h=e.padding,d=e.tether,f=d===void 0?!0:d,p=e.tetherOffset,g=p===void 0?0:p,_=on(t,{boundary:l,rootBoundary:c,padding:h,altBoundary:u}),b=Vt(t.placement),v=sn(t.placement),w=!v,x=Io(b),A=Ih(x),M=t.modifiersData.popperOffsets,P=t.rects.reference,N=t.rects.popper,k=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,m=typeof k=="number"?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),E=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,I={x:0,y:0};if(M){if(o){var y,O=x==="y"?bt:yt,S=x==="y"?Ct:Tt,C=x==="y"?"height":"width",L=M[x],D=L+_[O],B=L-_[S],F=f?-N[C]/2:0,W=v===Fe?P[C]:N[C],T=v===Fe?-N[C]:-P[C],V=t.elements.arrow,j=f&&V?Ro(V):{width:0,height:0},q=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Zl(),U=q[O],G=q[S],nt=Mn(0,P[C],j[C]),lt=w?P[C]/2-F-nt-U-m.mainAxis:W-nt-U-m.mainAxis,ut=w?-P[C]/2+F+nt+G+m.mainAxis:T+nt+G+m.mainAxis,pt=t.elements.arrow&&Un(t.elements.arrow),Ut=pt?x==="y"?pt.clientTop||0:pt.clientLeft||0:0,wt=(y=E==null?void 0:E[x])!=null?y:0,vs=L+lt-wt-Ut,Es=L+ut-wt,si=Mn(f?ji(D,vs):D,L,f?Pe(B,Es):B);M[x]=si,I[x]=si-L}if(a){var J,We=x==="x"?bt:yt,xs=x==="x"?Ct:Tt,Kt=M[A],oi=A==="y"?"height":"width",gr=Kt+_[We],mr=Kt-_[xs],ws=[bt,yt].indexOf(b)!==-1,_r=(J=E==null?void 0:E[A])!=null?J:0,br=ws?gr:Kt-P[oi]-N[oi]-_r+m.altAxis,yr=ws?Kt+P[oi]+N[oi]-_r-m.altAxis:mr,vr=f&&ws?fh(br,Kt,yr):Mn(f?br:gr,Kt,f?yr:mr);M[A]=vr,I[A]=vr-Kt}t.modifiersData[i]=I}}const ac={name:"preventOverflow",enabled:!0,phase:"main",fn:Nh,requiresIfExists:["offset"]};function Fh(n){return{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}}function $h(n){return n===Ot(n)||!Mt(n)?$o(n):Fh(n)}function Bh(n){var t=n.getBoundingClientRect(),e=en(t.width)/n.offsetWidth||1,i=en(t.height)/n.offsetHeight||1;return e!==1||i!==1}function Hh(n,t,e){e===void 0&&(e=!1);var i=Mt(t),s=Mt(t)&&Bh(t),o=ve(t),r=nn(n,s,e),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!e)&&((qt(t)!=="body"||Ho(o))&&(a=$h(t)),Mt(t)?(l=nn(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=Bo(o))),{x:r.left+a.scrollLeft-l.x,y:r.top+a.scrollTop-l.y,width:r.width,height:r.height}}function zh(n){var t=new Map,e=new Set,i=[];n.forEach(function(o){t.set(o.name,o)});function s(o){e.add(o.name);var r=[].concat(o.requires||[],o.requiresIfExists||[]);r.forEach(function(a){if(!e.has(a)){var l=t.get(a);l&&s(l)}}),i.push(o)}return n.forEach(function(o){e.has(o.name)||s(o)}),i}function Vh(n){var t=zh(n);return Gl.reduce(function(e,i){return e.concat(t.filter(function(s){return s.phase===i}))},[])}function jh(n){var t;return function(){return t||(t=new Promise(function(e){Promise.resolve().then(function(){t=void 0,e(n())})})),t}}function Wh(n){var t=n.reduce(function(e,i){var s=e[i.name];return e[i.name]=s?Object.assign({},s,i,{options:Object.assign({},s.options,i.options),data:Object.assign({},s.data,i.data)}):i,e},{});return Object.keys(t).map(function(e){return t[e]})}var Tr={placement:"bottom",modifiers:[],strategy:"absolute"};function Or(){for(var n=arguments.length,t=new Array(n),e=0;e(n&&window.CSS&&window.CSS.escape&&(n=n.replace(/#([^\s"#']+)/g,(t,e)=>`#${CSS.escape(e)}`)),n),td=n=>n==null?`${n}`:Object.prototype.toString.call(n).match(/\s([a-z]+)/i)[1].toLowerCase(),ed=n=>{do n+=Math.floor(Math.random()*Zh);while(document.getElementById(n));return n},nd=n=>{if(!n)return 0;let{transitionDuration:t,transitionDelay:e}=window.getComputedStyle(n);const i=Number.parseFloat(t),s=Number.parseFloat(e);return!i&&!s?0:(t=t.split(",")[0],e=e.split(",")[0],(Number.parseFloat(t)+Number.parseFloat(e))*Qh)},fc=n=>{n.dispatchEvent(new Event(oo))},ne=n=>!n||typeof n!="object"?!1:(typeof n.jquery<"u"&&(n=n[0]),typeof n.nodeType<"u"),ge=n=>ne(n)?n.jquery?n[0]:n:typeof n=="string"&&n.length>0?document.querySelector(dc(n)):null,dn=n=>{if(!ne(n)||n.getClientRects().length===0)return!1;const t=getComputedStyle(n).getPropertyValue("visibility")==="visible",e=n.closest("details:not([open])");if(!e)return t;if(e!==n){const i=n.closest("summary");if(i&&i.parentNode!==e||i===null)return!1}return t},me=n=>!n||n.nodeType!==Node.ELEMENT_NODE||n.classList.contains("disabled")?!0:typeof n.disabled<"u"?n.disabled:n.hasAttribute("disabled")&&n.getAttribute("disabled")!=="false",pc=n=>{if(!document.documentElement.attachShadow)return null;if(typeof n.getRootNode=="function"){const t=n.getRootNode();return t instanceof ShadowRoot?t:null}return n instanceof ShadowRoot?n:n.parentNode?pc(n.parentNode):null},ji=()=>{},Un=n=>{n.offsetHeight},gc=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,Cs=[],id=n=>{document.readyState==="loading"?(Cs.length||document.addEventListener("DOMContentLoaded",()=>{for(const t of Cs)t()}),Cs.push(n)):n()},Lt=()=>document.documentElement.dir==="rtl",Rt=n=>{id(()=>{const t=gc();if(t){const e=n.NAME,i=t.fn[e];t.fn[e]=n.jQueryInterface,t.fn[e].Constructor=n,t.fn[e].noConflict=()=>(t.fn[e]=i,n.jQueryInterface)}})},Et=(n,t=[],e=n)=>typeof n=="function"?n(...t):e,mc=(n,t,e=!0)=>{if(!e){Et(n);return}const s=nd(t)+5;let o=!1;const r=({target:a})=>{a===t&&(o=!0,t.removeEventListener(oo,r),Et(n))};t.addEventListener(oo,r),setTimeout(()=>{o||fc(t)},s)},Wo=(n,t,e,i)=>{const s=n.length;let o=n.indexOf(t);return o===-1?!e&&i?n[s-1]:n[0]:(o+=e?1:-1,i&&(o=(o+s)%s),n[Math.max(0,Math.min(o,s-1))])},sd=/[^.]*(?=\..*)\.|.*/,od=/\..*/,rd=/::\d+$/,Ts={};let Lr=1;const _c={mouseenter:"mouseover",mouseleave:"mouseout"},ad=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function bc(n,t){return t&&`${t}::${Lr++}`||n.uidEvent||Lr++}function yc(n){const t=bc(n);return n.uidEvent=t,Ts[t]=Ts[t]||{},Ts[t]}function ld(n,t){return function e(i){return qo(i,{delegateTarget:n}),e.oneOff&&H.off(n,i.type,t),t.apply(n,[i])}}function cd(n,t,e){return function i(s){const o=n.querySelectorAll(t);for(let{target:r}=s;r&&r!==this;r=r.parentNode)for(const a of o)if(a===r)return qo(s,{delegateTarget:r}),i.oneOff&&H.off(n,s.type,t,e),e.apply(r,[s])}}function vc(n,t,e=null){return Object.values(n).find(i=>i.callable===t&&i.delegationSelector===e)}function Ec(n,t,e){const i=typeof t=="string",s=i?e:t||e;let o=xc(n);return ad.has(o)||(o=n),[i,s,o]}function Pr(n,t,e,i,s){if(typeof t!="string"||!n)return;let[o,r,a]=Ec(t,e,i);t in _c&&(r=(p=>function(g){if(!g.relatedTarget||g.relatedTarget!==g.delegateTarget&&!g.delegateTarget.contains(g.relatedTarget))return p.call(this,g)})(r));const l=yc(n),c=l[a]||(l[a]={}),u=vc(c,r,o?e:null);if(u){u.oneOff=u.oneOff&&s;return}const h=bc(r,t.replace(sd,"")),d=o?cd(n,e,r):ld(n,r);d.delegationSelector=o?e:null,d.callable=r,d.oneOff=s,d.uidEvent=h,c[h]=d,n.addEventListener(a,d,o)}function ro(n,t,e,i,s){const o=vc(t[e],i,s);o&&(n.removeEventListener(e,o,!!s),delete t[e][o.uidEvent])}function ud(n,t,e,i){const s=t[e]||{};for(const[o,r]of Object.entries(s))o.includes(i)&&ro(n,t,e,r.callable,r.delegationSelector)}function xc(n){return n=n.replace(od,""),_c[n]||n}const H={on(n,t,e,i){Pr(n,t,e,i,!1)},one(n,t,e,i){Pr(n,t,e,i,!0)},off(n,t,e,i){if(typeof t!="string"||!n)return;const[s,o,r]=Ec(t,e,i),a=r!==t,l=yc(n),c=l[r]||{},u=t.startsWith(".");if(typeof o<"u"){if(!Object.keys(c).length)return;ro(n,l,r,o,s?e:null);return}if(u)for(const h of Object.keys(l))ud(n,l,h,t.slice(1));for(const[h,d]of Object.entries(c)){const f=h.replace(rd,"");(!a||t.includes(f))&&ro(n,l,r,d.callable,d.delegationSelector)}},trigger(n,t,e){if(typeof t!="string"||!n)return null;const i=gc(),s=xc(t),o=t!==s;let r=null,a=!0,l=!0,c=!1;o&&i&&(r=i.Event(t,e),i(n).trigger(r),a=!r.isPropagationStopped(),l=!r.isImmediatePropagationStopped(),c=r.isDefaultPrevented());const u=qo(new Event(t,{bubbles:a,cancelable:!0}),e);return c&&u.preventDefault(),l&&n.dispatchEvent(u),u.defaultPrevented&&r&&r.preventDefault(),u}};function qo(n,t={}){for(const[e,i]of Object.entries(t))try{n[e]=i}catch{Object.defineProperty(n,e,{configurable:!0,get(){return i}})}return n}function Rr(n){if(n==="true")return!0;if(n==="false")return!1;if(n===Number(n).toString())return Number(n);if(n===""||n==="null")return null;if(typeof n!="string")return n;try{return JSON.parse(decodeURIComponent(n))}catch{return n}}function Os(n){return n.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}const ie={setDataAttribute(n,t,e){n.setAttribute(`data-bs-${Os(t)}`,e)},removeDataAttribute(n,t){n.removeAttribute(`data-bs-${Os(t)}`)},getDataAttributes(n){if(!n)return{};const t={},e=Object.keys(n.dataset).filter(i=>i.startsWith("bs")&&!i.startsWith("bsConfig"));for(const i of e){let s=i.replace(/^bs/,"");s=s.charAt(0).toLowerCase()+s.slice(1,s.length),t[s]=Rr(n.dataset[i])}return t},getDataAttribute(n,t){return Rr(n.getAttribute(`data-bs-${Os(t)}`))}};let Kn=class{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(t){return t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t}_mergeConfigObj(t,e){const i=ne(e)?ie.getDataAttribute(e,"config"):{};return{...this.constructor.Default,...typeof i=="object"?i:{},...ne(e)?ie.getDataAttributes(e):{},...typeof t=="object"?t:{}}}_typeCheckConfig(t,e=this.constructor.DefaultType){for(const[i,s]of Object.entries(e)){const o=t[i],r=ne(o)?"element":td(o);if(!new RegExp(s).test(r))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${i}" provided type "${r}" but expected type "${s}".`)}}};const hd="5.3.3";class Ft extends Kn{constructor(t,e){super(),t=ge(t),t&&(this._element=t,this._config=this._getConfig(e),Ss.set(this._element,this.constructor.DATA_KEY,this))}dispose(){Ss.remove(this._element,this.constructor.DATA_KEY),H.off(this._element,this.constructor.EVENT_KEY);for(const t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,e,i=!0){mc(t,e,i)}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return Ss.get(ge(t),this.DATA_KEY)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,typeof e=="object"?e:null)}static get VERSION(){return hd}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(t){return`${t}${this.EVENT_KEY}`}}const Ds=n=>{let t=n.getAttribute("data-bs-target");if(!t||t==="#"){let e=n.getAttribute("href");if(!e||!e.includes("#")&&!e.startsWith("."))return null;e.includes("#")&&!e.startsWith("#")&&(e=`#${e.split("#")[1]}`),t=e&&e!=="#"?e.trim():null}return t?t.split(",").map(e=>dc(e)).join(","):null},Y={find(n,t=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(t,n))},findOne(n,t=document.documentElement){return Element.prototype.querySelector.call(t,n)},children(n,t){return[].concat(...n.children).filter(e=>e.matches(t))},parents(n,t){const e=[];let i=n.parentNode.closest(t);for(;i;)e.push(i),i=i.parentNode.closest(t);return e},prev(n,t){let e=n.previousElementSibling;for(;e;){if(e.matches(t))return[e];e=e.previousElementSibling}return[]},next(n,t){let e=n.nextElementSibling;for(;e;){if(e.matches(t))return[e];e=e.nextElementSibling}return[]},focusableChildren(n){const t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(e=>`${e}:not([tabindex^="-"])`).join(",");return this.find(t,n).filter(e=>!me(e)&&dn(e))},getSelectorFromElement(n){const t=Ds(n);return t&&Y.findOne(t)?t:null},getElementFromSelector(n){const t=Ds(n);return t?Y.findOne(t):null},getMultipleElementsFromSelector(n){const t=Ds(n);return t?Y.find(t):[]}},os=(n,t="hide")=>{const e=`click.dismiss${n.EVENT_KEY}`,i=n.NAME;H.on(document,e,`[data-bs-dismiss="${i}"]`,function(s){if(["A","AREA"].includes(this.tagName)&&s.preventDefault(),me(this))return;const o=Y.getElementFromSelector(this)||this.closest(`.${i}`);n.getOrCreateInstance(o)[t]()})},dd="alert",fd="bs.alert",wc=`.${fd}`,pd=`close${wc}`,gd=`closed${wc}`,md="fade",_d="show";class rs extends Ft{static get NAME(){return dd}close(){if(H.trigger(this._element,pd).defaultPrevented)return;this._element.classList.remove(_d);const e=this._element.classList.contains(md);this._queueCallback(()=>this._destroyElement(),this._element,e)}_destroyElement(){this._element.remove(),H.trigger(this._element,gd),this.dispose()}static jQueryInterface(t){return this.each(function(){const e=rs.getOrCreateInstance(this);if(typeof t=="string"){if(e[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);e[t](this)}})}}os(rs,"close");Rt(rs);const bd="button",yd="bs.button",vd=`.${yd}`,Ed=".data-api",xd="active",Ir='[data-bs-toggle="button"]',wd=`click${vd}${Ed}`;class as extends Ft{static get NAME(){return bd}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(xd))}static jQueryInterface(t){return this.each(function(){const e=as.getOrCreateInstance(this);t==="toggle"&&e[t]()})}}H.on(document,wd,Ir,n=>{n.preventDefault();const t=n.target.closest(Ir);as.getOrCreateInstance(t).toggle()});Rt(as);const Ad="swipe",fn=".bs.swipe",Sd=`touchstart${fn}`,Cd=`touchmove${fn}`,Td=`touchend${fn}`,Od=`pointerdown${fn}`,Dd=`pointerup${fn}`,Md="touch",kd="pen",Ld="pointer-event",Pd=40,Rd={endCallback:null,leftCallback:null,rightCallback:null},Id={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class Wi extends Kn{constructor(t,e){super(),this._element=t,!(!t||!Wi.isSupported())&&(this._config=this._getConfig(e),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return Rd}static get DefaultType(){return Id}static get NAME(){return Ad}dispose(){H.off(this._element,fn)}_start(t){if(!this._supportPointerEvents){this._deltaX=t.touches[0].clientX;return}this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX)}_end(t){this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX-this._deltaX),this._handleSwipe(),Et(this._config.endCallback)}_move(t){this._deltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-this._deltaX}_handleSwipe(){const t=Math.abs(this._deltaX);if(t<=Pd)return;const e=t/this._deltaX;this._deltaX=0,e&&Et(e>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(H.on(this._element,Od,t=>this._start(t)),H.on(this._element,Dd,t=>this._end(t)),this._element.classList.add(Ld)):(H.on(this._element,Sd,t=>this._start(t)),H.on(this._element,Cd,t=>this._move(t)),H.on(this._element,Td,t=>this._end(t)))}_eventIsPointerPenTouch(t){return this._supportPointerEvents&&(t.pointerType===kd||t.pointerType===Md)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const Nd="carousel",Fd="bs.carousel",Ee=`.${Fd}`,Ac=".data-api",$d="ArrowLeft",Bd="ArrowRight",Hd=500,gn="next",We="prev",Ge="left",Ti="right",zd=`slide${Ee}`,Ms=`slid${Ee}`,Vd=`keydown${Ee}`,jd=`mouseenter${Ee}`,Wd=`mouseleave${Ee}`,qd=`dragstart${Ee}`,Yd=`load${Ee}${Ac}`,Ud=`click${Ee}${Ac}`,Sc="carousel",oi="active",Kd="slide",Gd="carousel-item-end",Xd="carousel-item-start",Jd="carousel-item-next",Zd="carousel-item-prev",Cc=".active",Tc=".carousel-item",Qd=Cc+Tc,tf=".carousel-item img",ef=".carousel-indicators",nf="[data-bs-slide], [data-bs-slide-to]",sf='[data-bs-ride="carousel"]',of={[$d]:Ti,[Bd]:Ge},rf={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},af={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class Gn extends Ft{constructor(t,e){super(t,e),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=Y.findOne(ef,this._element),this._addEventListeners(),this._config.ride===Sc&&this.cycle()}static get Default(){return rf}static get DefaultType(){return af}static get NAME(){return Nd}next(){this._slide(gn)}nextWhenVisible(){!document.hidden&&dn(this._element)&&this.next()}prev(){this._slide(We)}pause(){this._isSliding&&fc(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){if(this._config.ride){if(this._isSliding){H.one(this._element,Ms,()=>this.cycle());return}this.cycle()}}to(t){const e=this._getItems();if(t>e.length-1||t<0)return;if(this._isSliding){H.one(this._element,Ms,()=>this.to(t));return}const i=this._getItemIndex(this._getActive());if(i===t)return;const s=t>i?gn:We;this._slide(s,e[t])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(t){return t.defaultInterval=t.interval,t}_addEventListeners(){this._config.keyboard&&H.on(this._element,Vd,t=>this._keydown(t)),this._config.pause==="hover"&&(H.on(this._element,jd,()=>this.pause()),H.on(this._element,Wd,()=>this._maybeEnableCycle())),this._config.touch&&Wi.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const i of Y.find(tf,this._element))H.on(i,qd,s=>s.preventDefault());const e={leftCallback:()=>this._slide(this._directionToOrder(Ge)),rightCallback:()=>this._slide(this._directionToOrder(Ti)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),Hd+this._config.interval))}};this._swipeHelper=new Wi(this._element,e)}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const e=of[t.key];e&&(t.preventDefault(),this._slide(this._directionToOrder(e)))}_getItemIndex(t){return this._getItems().indexOf(t)}_setActiveIndicatorElement(t){if(!this._indicatorsElement)return;const e=Y.findOne(Cc,this._indicatorsElement);e.classList.remove(oi),e.removeAttribute("aria-current");const i=Y.findOne(`[data-bs-slide-to="${t}"]`,this._indicatorsElement);i&&(i.classList.add(oi),i.setAttribute("aria-current","true"))}_updateInterval(){const t=this._activeElement||this._getActive();if(!t)return;const e=Number.parseInt(t.getAttribute("data-bs-interval"),10);this._config.interval=e||this._config.defaultInterval}_slide(t,e=null){if(this._isSliding)return;const i=this._getActive(),s=t===gn,o=e||Wo(this._getItems(),i,s,this._config.wrap);if(o===i)return;const r=this._getItemIndex(o),a=f=>H.trigger(this._element,f,{relatedTarget:o,direction:this._orderToDirection(t),from:this._getItemIndex(i),to:r});if(a(zd).defaultPrevented||!i||!o)return;const c=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(r),this._activeElement=o;const u=s?Xd:Gd,h=s?Jd:Zd;o.classList.add(h),Un(o),i.classList.add(u),o.classList.add(u);const d=()=>{o.classList.remove(u,h),o.classList.add(oi),i.classList.remove(oi,h,u),this._isSliding=!1,a(Ms)};this._queueCallback(d,i,this._isAnimated()),c&&this.cycle()}_isAnimated(){return this._element.classList.contains(Kd)}_getActive(){return Y.findOne(Qd,this._element)}_getItems(){return Y.find(Tc,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(t){return Lt()?t===Ge?We:gn:t===Ge?gn:We}_orderToDirection(t){return Lt()?t===We?Ge:Ti:t===We?Ti:Ge}static jQueryInterface(t){return this.each(function(){const e=Gn.getOrCreateInstance(this,t);if(typeof t=="number"){e.to(t);return}if(typeof t=="string"){if(e[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);e[t]()}})}}H.on(document,Ud,nf,function(n){const t=Y.getElementFromSelector(this);if(!t||!t.classList.contains(Sc))return;n.preventDefault();const e=Gn.getOrCreateInstance(t),i=this.getAttribute("data-bs-slide-to");if(i){e.to(i),e._maybeEnableCycle();return}if(ie.getDataAttribute(this,"slide")==="next"){e.next(),e._maybeEnableCycle();return}e.prev(),e._maybeEnableCycle()});H.on(window,Yd,()=>{const n=Y.find(sf);for(const t of n)Gn.getOrCreateInstance(t)});Rt(Gn);const lf="collapse",cf="bs.collapse",Xn=`.${cf}`,uf=".data-api",hf=`show${Xn}`,df=`shown${Xn}`,ff=`hide${Xn}`,pf=`hidden${Xn}`,gf=`click${Xn}${uf}`,ks="show",Je="collapse",ri="collapsing",mf="collapsed",_f=`:scope .${Je} .${Je}`,bf="collapse-horizontal",yf="width",vf="height",Ef=".collapse.show, .collapse.collapsing",ao='[data-bs-toggle="collapse"]',xf={parent:null,toggle:!0},wf={parent:"(null|element)",toggle:"boolean"};class Nn extends Ft{constructor(t,e){super(t,e),this._isTransitioning=!1,this._triggerArray=[];const i=Y.find(ao);for(const s of i){const o=Y.getSelectorFromElement(s),r=Y.find(o).filter(a=>a===this._element);o!==null&&r.length&&this._triggerArray.push(s)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return xf}static get DefaultType(){return wf}static get NAME(){return lf}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(Ef).filter(a=>a!==this._element).map(a=>Nn.getOrCreateInstance(a,{toggle:!1}))),t.length&&t[0]._isTransitioning||H.trigger(this._element,hf).defaultPrevented)return;for(const a of t)a.hide();const i=this._getDimension();this._element.classList.remove(Je),this._element.classList.add(ri),this._element.style[i]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const s=()=>{this._isTransitioning=!1,this._element.classList.remove(ri),this._element.classList.add(Je,ks),this._element.style[i]="",H.trigger(this._element,df)},r=`scroll${i[0].toUpperCase()+i.slice(1)}`;this._queueCallback(s,this._element,!0),this._element.style[i]=`${this._element[r]}px`}hide(){if(this._isTransitioning||!this._isShown()||H.trigger(this._element,ff).defaultPrevented)return;const e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,Un(this._element),this._element.classList.add(ri),this._element.classList.remove(Je,ks);for(const s of this._triggerArray){const o=Y.getElementFromSelector(s);o&&!this._isShown(o)&&this._addAriaAndCollapsedClass([s],!1)}this._isTransitioning=!0;const i=()=>{this._isTransitioning=!1,this._element.classList.remove(ri),this._element.classList.add(Je),H.trigger(this._element,pf)};this._element.style[e]="",this._queueCallback(i,this._element,!0)}_isShown(t=this._element){return t.classList.contains(ks)}_configAfterMerge(t){return t.toggle=!!t.toggle,t.parent=ge(t.parent),t}_getDimension(){return this._element.classList.contains(bf)?yf:vf}_initializeChildren(){if(!this._config.parent)return;const t=this._getFirstLevelChildren(ao);for(const e of t){const i=Y.getElementFromSelector(e);i&&this._addAriaAndCollapsedClass([e],this._isShown(i))}}_getFirstLevelChildren(t){const e=Y.find(_f,this._config.parent);return Y.find(t,this._config.parent).filter(i=>!e.includes(i))}_addAriaAndCollapsedClass(t,e){if(t.length)for(const i of t)i.classList.toggle(mf,!e),i.setAttribute("aria-expanded",e)}static jQueryInterface(t){const e={};return typeof t=="string"&&/show|hide/.test(t)&&(e.toggle=!1),this.each(function(){const i=Nn.getOrCreateInstance(this,e);if(typeof t=="string"){if(typeof i[t]>"u")throw new TypeError(`No method named "${t}"`);i[t]()}})}}H.on(document,gf,ao,function(n){(n.target.tagName==="A"||n.delegateTarget&&n.delegateTarget.tagName==="A")&&n.preventDefault();for(const t of Y.getMultipleElementsFromSelector(this))Nn.getOrCreateInstance(t,{toggle:!1}).toggle()});Rt(Nn);const Nr="dropdown",Af="bs.dropdown",He=`.${Af}`,Yo=".data-api",Sf="Escape",Fr="Tab",Cf="ArrowUp",$r="ArrowDown",Tf=2,Of=`hide${He}`,Df=`hidden${He}`,Mf=`show${He}`,kf=`shown${He}`,Oc=`click${He}${Yo}`,Dc=`keydown${He}${Yo}`,Lf=`keyup${He}${Yo}`,Xe="show",Pf="dropup",Rf="dropend",If="dropstart",Nf="dropup-center",Ff="dropdown-center",Me='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',$f=`${Me}.${Xe}`,Oi=".dropdown-menu",Bf=".navbar",Hf=".navbar-nav",zf=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",Vf=Lt()?"top-end":"top-start",jf=Lt()?"top-start":"top-end",Wf=Lt()?"bottom-end":"bottom-start",qf=Lt()?"bottom-start":"bottom-end",Yf=Lt()?"left-start":"right-start",Uf=Lt()?"right-start":"left-start",Kf="top",Gf="bottom",Xf={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},Jf={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class Vt extends Ft{constructor(t,e){super(t,e),this._popper=null,this._parent=this._element.parentNode,this._menu=Y.next(this._element,Oi)[0]||Y.prev(this._element,Oi)[0]||Y.findOne(Oi,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return Xf}static get DefaultType(){return Jf}static get NAME(){return Nr}toggle(){return this._isShown()?this.hide():this.show()}show(){if(me(this._element)||this._isShown())return;const t={relatedTarget:this._element};if(!H.trigger(this._element,Mf,t).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(Hf))for(const i of[].concat(...document.body.children))H.on(i,"mouseover",ji);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(Xe),this._element.classList.add(Xe),H.trigger(this._element,kf,t)}}hide(){if(me(this._element)||!this._isShown())return;const t={relatedTarget:this._element};this._completeHide(t)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(t){if(!H.trigger(this._element,Of,t).defaultPrevented){if("ontouchstart"in document.documentElement)for(const i of[].concat(...document.body.children))H.off(i,"mouseover",ji);this._popper&&this._popper.destroy(),this._menu.classList.remove(Xe),this._element.classList.remove(Xe),this._element.setAttribute("aria-expanded","false"),ie.removeDataAttribute(this._menu,"popper"),H.trigger(this._element,Df,t)}}_getConfig(t){if(t=super._getConfig(t),typeof t.reference=="object"&&!ne(t.reference)&&typeof t.reference.getBoundingClientRect!="function")throw new TypeError(`${Nr.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(){if(typeof hc>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let t=this._element;this._config.reference==="parent"?t=this._parent:ne(this._config.reference)?t=ge(this._config.reference):typeof this._config.reference=="object"&&(t=this._config.reference);const e=this._getPopperConfig();this._popper=jo(t,this._menu,e)}_isShown(){return this._menu.classList.contains(Xe)}_getPlacement(){const t=this._parent;if(t.classList.contains(Rf))return Yf;if(t.classList.contains(If))return Uf;if(t.classList.contains(Nf))return Kf;if(t.classList.contains(Ff))return Gf;const e=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return t.classList.contains(Pf)?e?jf:Vf:e?qf:Wf}_detectNavbar(){return this._element.closest(Bf)!==null}_getOffset(){const{offset:t}=this._config;return typeof t=="string"?t.split(",").map(e=>Number.parseInt(e,10)):typeof t=="function"?e=>t(e,this._element):t}_getPopperConfig(){const t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(ie.setDataAttribute(this._menu,"popper","static"),t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,...Et(this._config.popperConfig,[t])}}_selectMenuItem({key:t,target:e}){const i=Y.find(zf,this._menu).filter(s=>dn(s));i.length&&Wo(i,e,t===$r,!i.includes(e)).focus()}static jQueryInterface(t){return this.each(function(){const e=Vt.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof e[t]>"u")throw new TypeError(`No method named "${t}"`);e[t]()}})}static clearMenus(t){if(t.button===Tf||t.type==="keyup"&&t.key!==Fr)return;const e=Y.find($f);for(const i of e){const s=Vt.getInstance(i);if(!s||s._config.autoClose===!1)continue;const o=t.composedPath(),r=o.includes(s._menu);if(o.includes(s._element)||s._config.autoClose==="inside"&&!r||s._config.autoClose==="outside"&&r||s._menu.contains(t.target)&&(t.type==="keyup"&&t.key===Fr||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;const a={relatedTarget:s._element};t.type==="click"&&(a.clickEvent=t),s._completeHide(a)}}static dataApiKeydownHandler(t){const e=/input|textarea/i.test(t.target.tagName),i=t.key===Sf,s=[Cf,$r].includes(t.key);if(!s&&!i||e&&!i)return;t.preventDefault();const o=this.matches(Me)?this:Y.prev(this,Me)[0]||Y.next(this,Me)[0]||Y.findOne(Me,t.delegateTarget.parentNode),r=Vt.getOrCreateInstance(o);if(s){t.stopPropagation(),r.show(),r._selectMenuItem(t);return}r._isShown()&&(t.stopPropagation(),r.hide(),o.focus())}}H.on(document,Dc,Me,Vt.dataApiKeydownHandler);H.on(document,Dc,Oi,Vt.dataApiKeydownHandler);H.on(document,Oc,Vt.clearMenus);H.on(document,Lf,Vt.clearMenus);H.on(document,Oc,Me,function(n){n.preventDefault(),Vt.getOrCreateInstance(this).toggle()});Rt(Vt);const Mc="backdrop",Zf="fade",Br="show",Hr=`mousedown.bs.${Mc}`,Qf={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},tp={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class kc extends Kn{constructor(t){super(),this._config=this._getConfig(t),this._isAppended=!1,this._element=null}static get Default(){return Qf}static get DefaultType(){return tp}static get NAME(){return Mc}show(t){if(!this._config.isVisible){Et(t);return}this._append();const e=this._getElement();this._config.isAnimated&&Un(e),e.classList.add(Br),this._emulateAnimation(()=>{Et(t)})}hide(t){if(!this._config.isVisible){Et(t);return}this._getElement().classList.remove(Br),this._emulateAnimation(()=>{this.dispose(),Et(t)})}dispose(){this._isAppended&&(H.off(this._element,Hr),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const t=document.createElement("div");t.className=this._config.className,this._config.isAnimated&&t.classList.add(Zf),this._element=t}return this._element}_configAfterMerge(t){return t.rootElement=ge(t.rootElement),t}_append(){if(this._isAppended)return;const t=this._getElement();this._config.rootElement.append(t),H.on(t,Hr,()=>{Et(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(t){mc(t,this._getElement(),this._config.isAnimated)}}const ep="focustrap",np="bs.focustrap",qi=`.${np}`,ip=`focusin${qi}`,sp=`keydown.tab${qi}`,op="Tab",rp="forward",zr="backward",ap={autofocus:!0,trapElement:null},lp={autofocus:"boolean",trapElement:"element"};class Lc extends Kn{constructor(t){super(),this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return ap}static get DefaultType(){return lp}static get NAME(){return ep}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),H.off(document,qi),H.on(document,ip,t=>this._handleFocusin(t)),H.on(document,sp,t=>this._handleKeydown(t)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,H.off(document,qi))}_handleFocusin(t){const{trapElement:e}=this._config;if(t.target===document||t.target===e||e.contains(t.target))return;const i=Y.focusableChildren(e);i.length===0?e.focus():this._lastTabNavDirection===zr?i[i.length-1].focus():i[0].focus()}_handleKeydown(t){t.key===op&&(this._lastTabNavDirection=t.shiftKey?zr:rp)}}const Vr=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",jr=".sticky-top",ai="padding-right",Wr="margin-right";class lo{constructor(){this._element=document.body}getWidth(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}hide(){const t=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,ai,e=>e+t),this._setElementAttributes(Vr,ai,e=>e+t),this._setElementAttributes(jr,Wr,e=>e-t)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,ai),this._resetElementAttributes(Vr,ai),this._resetElementAttributes(jr,Wr)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,e,i){const s=this.getWidth(),o=r=>{if(r!==this._element&&window.innerWidth>r.clientWidth+s)return;this._saveInitialAttribute(r,e);const a=window.getComputedStyle(r).getPropertyValue(e);r.style.setProperty(e,`${i(Number.parseFloat(a))}px`)};this._applyManipulationCallback(t,o)}_saveInitialAttribute(t,e){const i=t.style.getPropertyValue(e);i&&ie.setDataAttribute(t,e,i)}_resetElementAttributes(t,e){const i=s=>{const o=ie.getDataAttribute(s,e);if(o===null){s.style.removeProperty(e);return}ie.removeDataAttribute(s,e),s.style.setProperty(e,o)};this._applyManipulationCallback(t,i)}_applyManipulationCallback(t,e){if(ne(t)){e(t);return}for(const i of Y.find(t,this._element))e(i)}}const cp="modal",up="bs.modal",Pt=`.${up}`,hp=".data-api",dp="Escape",fp=`hide${Pt}`,pp=`hidePrevented${Pt}`,Pc=`hidden${Pt}`,Rc=`show${Pt}`,gp=`shown${Pt}`,mp=`resize${Pt}`,_p=`click.dismiss${Pt}`,bp=`mousedown.dismiss${Pt}`,yp=`keydown.dismiss${Pt}`,vp=`click${Pt}${hp}`,qr="modal-open",Ep="fade",Yr="show",Ls="modal-static",xp=".modal.show",wp=".modal-dialog",Ap=".modal-body",Sp='[data-bs-toggle="modal"]',Cp={backdrop:!0,focus:!0,keyboard:!0},Tp={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class on extends Ft{constructor(t,e){super(t,e),this._dialog=Y.findOne(wp,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new lo,this._addEventListeners()}static get Default(){return Cp}static get DefaultType(){return Tp}static get NAME(){return cp}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||this._isTransitioning||H.trigger(this._element,Rc,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(qr),this._adjustDialog(),this._backdrop.show(()=>this._showElement(t)))}hide(){!this._isShown||this._isTransitioning||H.trigger(this._element,fp).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(Yr),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){H.off(window,Pt),H.off(this._dialog,Pt),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new kc({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Lc({trapElement:this._element})}_showElement(t){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const e=Y.findOne(Ap,this._dialog);e&&(e.scrollTop=0),Un(this._element),this._element.classList.add(Yr);const i=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,H.trigger(this._element,gp,{relatedTarget:t})};this._queueCallback(i,this._dialog,this._isAnimated())}_addEventListeners(){H.on(this._element,yp,t=>{if(t.key===dp){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),H.on(window,mp,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),H.on(this._element,bp,t=>{H.one(this._element,_p,e=>{if(!(this._element!==t.target||this._element!==e.target)){if(this._config.backdrop==="static"){this._triggerBackdropTransition();return}this._config.backdrop&&this.hide()}})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(qr),this._resetAdjustments(),this._scrollBar.reset(),H.trigger(this._element,Pc)})}_isAnimated(){return this._element.classList.contains(Ep)}_triggerBackdropTransition(){if(H.trigger(this._element,pp).defaultPrevented)return;const e=this._element.scrollHeight>document.documentElement.clientHeight,i=this._element.style.overflowY;i==="hidden"||this._element.classList.contains(Ls)||(e||(this._element.style.overflowY="hidden"),this._element.classList.add(Ls),this._queueCallback(()=>{this._element.classList.remove(Ls),this._queueCallback(()=>{this._element.style.overflowY=i},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._scrollBar.getWidth(),i=e>0;if(i&&!t){const s=Lt()?"paddingLeft":"paddingRight";this._element.style[s]=`${e}px`}if(!i&&t){const s=Lt()?"paddingRight":"paddingLeft";this._element.style[s]=`${e}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,e){return this.each(function(){const i=on.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof i[t]>"u")throw new TypeError(`No method named "${t}"`);i[t](e)}})}}H.on(document,vp,Sp,function(n){const t=Y.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&n.preventDefault(),H.one(t,Rc,s=>{s.defaultPrevented||H.one(t,Pc,()=>{dn(this)&&this.focus()})});const e=Y.findOne(xp);e&&on.getInstance(e).hide(),on.getOrCreateInstance(t).toggle(this)});os(on);Rt(on);const Op="offcanvas",Dp="bs.offcanvas",re=`.${Dp}`,Ic=".data-api",Mp=`load${re}${Ic}`,kp="Escape",Ur="show",Kr="showing",Gr="hiding",Lp="offcanvas-backdrop",Nc=".offcanvas.show",Pp=`show${re}`,Rp=`shown${re}`,Ip=`hide${re}`,Xr=`hidePrevented${re}`,Fc=`hidden${re}`,Np=`resize${re}`,Fp=`click${re}${Ic}`,$p=`keydown.dismiss${re}`,Bp='[data-bs-toggle="offcanvas"]',Hp={backdrop:!0,keyboard:!0,scroll:!1},zp={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class _e extends Ft{constructor(t,e){super(t,e),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Hp}static get DefaultType(){return zp}static get NAME(){return Op}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown||H.trigger(this._element,Pp,{relatedTarget:t}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new lo().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Kr);const i=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(Ur),this._element.classList.remove(Kr),H.trigger(this._element,Rp,{relatedTarget:t})};this._queueCallback(i,this._element,!0)}hide(){if(!this._isShown||H.trigger(this._element,Ip).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(Gr),this._backdrop.hide();const e=()=>{this._element.classList.remove(Ur,Gr),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new lo().reset(),H.trigger(this._element,Fc)};this._queueCallback(e,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const t=()=>{if(this._config.backdrop==="static"){H.trigger(this._element,Xr);return}this.hide()},e=!!this._config.backdrop;return new kc({className:Lp,isVisible:e,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:e?t:null})}_initializeFocusTrap(){return new Lc({trapElement:this._element})}_addEventListeners(){H.on(this._element,$p,t=>{if(t.key===kp){if(this._config.keyboard){this.hide();return}H.trigger(this._element,Xr)}})}static jQueryInterface(t){return this.each(function(){const e=_e.getOrCreateInstance(this,t);if(typeof t=="string"){if(e[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);e[t](this)}})}}H.on(document,Fp,Bp,function(n){const t=Y.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&n.preventDefault(),me(this))return;H.one(t,Fc,()=>{dn(this)&&this.focus()});const e=Y.findOne(Nc);e&&e!==t&&_e.getInstance(e).hide(),_e.getOrCreateInstance(t).toggle(this)});H.on(window,Mp,()=>{for(const n of Y.find(Nc))_e.getOrCreateInstance(n).show()});H.on(window,Np,()=>{for(const n of Y.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(n).position!=="fixed"&&_e.getOrCreateInstance(n).hide()});os(_e);Rt(_e);const Vp=/^aria-[\w-]*$/i,$c={"*":["class","dir","id","lang","role",Vp],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},jp=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Wp=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,qp=(n,t)=>{const e=n.nodeName.toLowerCase();return t.includes(e)?jp.has(e)?!!Wp.test(n.nodeValue):!0:t.filter(i=>i instanceof RegExp).some(i=>i.test(e))};function Yp(n,t,e){if(!n.length)return n;if(e&&typeof e=="function")return e(n);const s=new window.DOMParser().parseFromString(n,"text/html"),o=[].concat(...s.body.querySelectorAll("*"));for(const r of o){const a=r.nodeName.toLowerCase();if(!Object.keys(t).includes(a)){r.remove();continue}const l=[].concat(...r.attributes),c=[].concat(t["*"]||[],t[a]||[]);for(const u of l)qp(u,c)||r.removeAttribute(u.nodeName)}return s.body.innerHTML}const Up="TemplateFactory",Kp={allowList:$c,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"
"},Gp={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},Xp={entry:"(string|element|function|null)",selector:"(string|element)"};class Jp extends Kn{constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return Kp}static get DefaultType(){return Gp}static get NAME(){return Up}getContent(){return Object.values(this._config.content).map(t=>this._resolvePossibleFunction(t)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(t){return this._checkContent(t),this._config.content={...this._config.content,...t},this}toHtml(){const t=document.createElement("div");t.innerHTML=this._maybeSanitize(this._config.template);for(const[s,o]of Object.entries(this._config.content))this._setContent(t,o,s);const e=t.children[0],i=this._resolvePossibleFunction(this._config.extraClass);return i&&e.classList.add(...i.split(" ")),e}_typeCheckConfig(t){super._typeCheckConfig(t),this._checkContent(t.content)}_checkContent(t){for(const[e,i]of Object.entries(t))super._typeCheckConfig({selector:e,entry:i},Xp)}_setContent(t,e,i){const s=Y.findOne(i,t);if(s){if(e=this._resolvePossibleFunction(e),!e){s.remove();return}if(ne(e)){this._putElementInTemplate(ge(e),s);return}if(this._config.html){s.innerHTML=this._maybeSanitize(e);return}s.textContent=e}}_maybeSanitize(t){return this._config.sanitize?Yp(t,this._config.allowList,this._config.sanitizeFn):t}_resolvePossibleFunction(t){return Et(t,[this])}_putElementInTemplate(t,e){if(this._config.html){e.innerHTML="",e.append(t);return}e.textContent=t.textContent}}const Zp="tooltip",Qp=new Set(["sanitize","allowList","sanitizeFn"]),Ps="fade",tg="modal",li="show",eg=".tooltip-inner",Jr=`.${tg}`,Zr="hide.bs.modal",mn="hover",Rs="focus",ng="click",ig="manual",sg="hide",og="hidden",rg="show",ag="shown",lg="inserted",cg="click",ug="focusin",hg="focusout",dg="mouseenter",fg="mouseleave",pg={AUTO:"auto",TOP:"top",RIGHT:Lt()?"left":"right",BOTTOM:"bottom",LEFT:Lt()?"right":"left"},gg={allowList:$c,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'',title:"",trigger:"hover focus"},mg={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};let ls=class Bc extends Ft{constructor(t,e){if(typeof hc>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(t,e),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return gg}static get DefaultType(){return mg}static get NAME(){return Zp}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),H.off(this._element.closest(Jr),Zr,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!(this._isWithContent()&&this._isEnabled))return;const t=H.trigger(this._element,this.constructor.eventName(rg)),i=(pc(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(t.defaultPrevented||!i)return;this._disposePopper();const s=this._getTipElement();this._element.setAttribute("aria-describedby",s.getAttribute("id"));const{container:o}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(o.append(s),H.trigger(this._element,this.constructor.eventName(lg))),this._popper=this._createPopper(s),s.classList.add(li),"ontouchstart"in document.documentElement)for(const a of[].concat(...document.body.children))H.on(a,"mouseover",ji);const r=()=>{H.trigger(this._element,this.constructor.eventName(ag)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(r,this.tip,this._isAnimated())}hide(){if(!this._isShown()||H.trigger(this._element,this.constructor.eventName(sg)).defaultPrevented)return;if(this._getTipElement().classList.remove(li),"ontouchstart"in document.documentElement)for(const s of[].concat(...document.body.children))H.off(s,"mouseover",ji);this._activeTrigger[ng]=!1,this._activeTrigger[Rs]=!1,this._activeTrigger[mn]=!1,this._isHovered=null;const i=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),H.trigger(this._element,this.constructor.eventName(og)))};this._queueCallback(i,this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(t){const e=this._getTemplateFactory(t).toHtml();if(!e)return null;e.classList.remove(Ps,li),e.classList.add(`bs-${this.constructor.NAME}-auto`);const i=ed(this.constructor.NAME).toString();return e.setAttribute("id",i),this._isAnimated()&&e.classList.add(Ps),e}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new Jp({...this._config,content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[eg]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(t){return this.constructor.getOrCreateInstance(t.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(Ps)}_isShown(){return this.tip&&this.tip.classList.contains(li)}_createPopper(t){const e=Et(this._config.placement,[this,t,this._element]),i=pg[e.toUpperCase()];return jo(this._element,t,this._getPopperConfig(i))}_getOffset(){const{offset:t}=this._config;return typeof t=="string"?t.split(",").map(e=>Number.parseInt(e,10)):typeof t=="function"?e=>t(e,this._element):t}_resolvePossibleFunction(t){return Et(t,[this._element])}_getPopperConfig(t){const e={placement:t,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:i=>{this._getTipElement().setAttribute("data-popper-placement",i.state.placement)}}]};return{...e,...Et(this._config.popperConfig,[e])}}_setListeners(){const t=this._config.trigger.split(" ");for(const e of t)if(e==="click")H.on(this._element,this.constructor.eventName(cg),this._config.selector,i=>{this._initializeOnDelegatedTarget(i).toggle()});else if(e!==ig){const i=e===mn?this.constructor.eventName(dg):this.constructor.eventName(ug),s=e===mn?this.constructor.eventName(fg):this.constructor.eventName(hg);H.on(this._element,i,this._config.selector,o=>{const r=this._initializeOnDelegatedTarget(o);r._activeTrigger[o.type==="focusin"?Rs:mn]=!0,r._enter()}),H.on(this._element,s,this._config.selector,o=>{const r=this._initializeOnDelegatedTarget(o);r._activeTrigger[o.type==="focusout"?Rs:mn]=r._element.contains(o.relatedTarget),r._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},H.on(this._element.closest(Jr),Zr,this._hideModalHandler)}_fixTitle(){const t=this._element.getAttribute("title");t&&(!this._element.getAttribute("aria-label")&&!this._element.textContent.trim()&&this._element.setAttribute("aria-label",t),this._element.setAttribute("data-bs-original-title",t),this._element.removeAttribute("title"))}_enter(){if(this._isShown()||this._isHovered){this._isHovered=!0;return}this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show)}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(t,e){clearTimeout(this._timeout),this._timeout=setTimeout(t,e)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(t){const e=ie.getDataAttributes(this._element);for(const i of Object.keys(e))Qp.has(i)&&delete e[i];return t={...e,...typeof t=="object"&&t?t:{}},t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t.container=t.container===!1?document.body:ge(t.container),typeof t.delay=="number"&&(t.delay={show:t.delay,hide:t.delay}),typeof t.title=="number"&&(t.title=t.title.toString()),typeof t.content=="number"&&(t.content=t.content.toString()),t}_getDelegateConfig(){const t={};for(const[e,i]of Object.entries(this._config))this.constructor.Default[e]!==i&&(t[e]=i);return t.selector=!1,t.trigger="manual",t}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(t){return this.each(function(){const e=Bc.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof e[t]>"u")throw new TypeError(`No method named "${t}"`);e[t]()}})}};Rt(ls);const _g="popover",bg=".popover-header",yg=".popover-body",vg={...ls.Default,content:"",offset:[0,8],placement:"right",template:'',trigger:"click"},Eg={...ls.DefaultType,content:"(null|string|element|function)"};class Uo extends ls{static get Default(){return vg}static get DefaultType(){return Eg}static get NAME(){return _g}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[bg]:this._getTitle(),[yg]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each(function(){const e=Uo.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof e[t]>"u")throw new TypeError(`No method named "${t}"`);e[t]()}})}}Rt(Uo);const xg="scrollspy",wg="bs.scrollspy",Ko=`.${wg}`,Ag=".data-api",Sg=`activate${Ko}`,Qr=`click${Ko}`,Cg=`load${Ko}${Ag}`,Tg="dropdown-item",qe="active",Og='[data-bs-spy="scroll"]',Is="[href]",Dg=".nav, .list-group",ta=".nav-link",Mg=".nav-item",kg=".list-group-item",Lg=`${ta}, ${Mg} > ${ta}, ${kg}`,Pg=".dropdown",Rg=".dropdown-toggle",Ig={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},Ng={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class cs extends Ft{constructor(t,e){super(t,e),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY==="visible"?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return Ig}static get DefaultType(){return Ng}static get NAME(){return xg}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const t of this._observableSections.values())this._observer.observe(t)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(t){return t.target=ge(t.target)||document.body,t.rootMargin=t.offset?`${t.offset}px 0px -30%`:t.rootMargin,typeof t.threshold=="string"&&(t.threshold=t.threshold.split(",").map(e=>Number.parseFloat(e))),t}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(H.off(this._config.target,Qr),H.on(this._config.target,Qr,Is,t=>{const e=this._observableSections.get(t.target.hash);if(e){t.preventDefault();const i=this._rootElement||window,s=e.offsetTop-this._element.offsetTop;if(i.scrollTo){i.scrollTo({top:s,behavior:"smooth"});return}i.scrollTop=s}}))}_getNewObserver(){const t={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(e=>this._observerCallback(e),t)}_observerCallback(t){const e=r=>this._targetLinks.get(`#${r.target.id}`),i=r=>{this._previousScrollData.visibleEntryTop=r.target.offsetTop,this._process(e(r))},s=(this._rootElement||document.documentElement).scrollTop,o=s>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=s;for(const r of t){if(!r.isIntersecting){this._activeTarget=null,this._clearActiveClass(e(r));continue}const a=r.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(o&&a){if(i(r),!s)return;continue}!o&&!a&&i(r)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const t=Y.find(Is,this._config.target);for(const e of t){if(!e.hash||me(e))continue;const i=Y.findOne(decodeURI(e.hash),this._element);dn(i)&&(this._targetLinks.set(decodeURI(e.hash),e),this._observableSections.set(e.hash,i))}}_process(t){this._activeTarget!==t&&(this._clearActiveClass(this._config.target),this._activeTarget=t,t.classList.add(qe),this._activateParents(t),H.trigger(this._element,Sg,{relatedTarget:t}))}_activateParents(t){if(t.classList.contains(Tg)){Y.findOne(Rg,t.closest(Pg)).classList.add(qe);return}for(const e of Y.parents(t,Dg))for(const i of Y.prev(e,Lg))i.classList.add(qe)}_clearActiveClass(t){t.classList.remove(qe);const e=Y.find(`${Is}.${qe}`,t);for(const i of e)i.classList.remove(qe)}static jQueryInterface(t){return this.each(function(){const e=cs.getOrCreateInstance(this,t);if(typeof t=="string"){if(e[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);e[t]()}})}}H.on(window,Cg,()=>{for(const n of Y.find(Og))cs.getOrCreateInstance(n)});Rt(cs);const Fg="tab",$g="bs.tab",ze=`.${$g}`,Bg=`hide${ze}`,Hg=`hidden${ze}`,zg=`show${ze}`,Vg=`shown${ze}`,jg=`click${ze}`,Wg=`keydown${ze}`,qg=`load${ze}`,Yg="ArrowLeft",ea="ArrowRight",Ug="ArrowUp",na="ArrowDown",Ns="Home",ia="End",ke="active",sa="fade",Fs="show",Kg="dropdown",Hc=".dropdown-toggle",Gg=".dropdown-menu",$s=`:not(${Hc})`,Xg='.list-group, .nav, [role="tablist"]',Jg=".nav-item, .list-group-item",Zg=`.nav-link${$s}, .list-group-item${$s}, [role="tab"]${$s}`,zc='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',Bs=`${Zg}, ${zc}`,Qg=`.${ke}[data-bs-toggle="tab"], .${ke}[data-bs-toggle="pill"], .${ke}[data-bs-toggle="list"]`;class rn extends Ft{constructor(t){super(t),this._parent=this._element.closest(Xg),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),H.on(this._element,Wg,e=>this._keydown(e)))}static get NAME(){return Fg}show(){const t=this._element;if(this._elemIsActive(t))return;const e=this._getActiveElem(),i=e?H.trigger(e,Bg,{relatedTarget:t}):null;H.trigger(t,zg,{relatedTarget:e}).defaultPrevented||i&&i.defaultPrevented||(this._deactivate(e,t),this._activate(t,e))}_activate(t,e){if(!t)return;t.classList.add(ke),this._activate(Y.getElementFromSelector(t));const i=()=>{if(t.getAttribute("role")!=="tab"){t.classList.add(Fs);return}t.removeAttribute("tabindex"),t.setAttribute("aria-selected",!0),this._toggleDropDown(t,!0),H.trigger(t,Vg,{relatedTarget:e})};this._queueCallback(i,t,t.classList.contains(sa))}_deactivate(t,e){if(!t)return;t.classList.remove(ke),t.blur(),this._deactivate(Y.getElementFromSelector(t));const i=()=>{if(t.getAttribute("role")!=="tab"){t.classList.remove(Fs);return}t.setAttribute("aria-selected",!1),t.setAttribute("tabindex","-1"),this._toggleDropDown(t,!1),H.trigger(t,Hg,{relatedTarget:e})};this._queueCallback(i,t,t.classList.contains(sa))}_keydown(t){if(![Yg,ea,Ug,na,Ns,ia].includes(t.key))return;t.stopPropagation(),t.preventDefault();const e=this._getChildren().filter(s=>!me(s));let i;if([Ns,ia].includes(t.key))i=e[t.key===Ns?0:e.length-1];else{const s=[ea,na].includes(t.key);i=Wo(e,t.target,s,!0)}i&&(i.focus({preventScroll:!0}),rn.getOrCreateInstance(i).show())}_getChildren(){return Y.find(Bs,this._parent)}_getActiveElem(){return this._getChildren().find(t=>this._elemIsActive(t))||null}_setInitialAttributes(t,e){this._setAttributeIfNotExists(t,"role","tablist");for(const i of e)this._setInitialAttributesOnChild(i)}_setInitialAttributesOnChild(t){t=this._getInnerElement(t);const e=this._elemIsActive(t),i=this._getOuterElement(t);t.setAttribute("aria-selected",e),i!==t&&this._setAttributeIfNotExists(i,"role","presentation"),e||t.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(t,"role","tab"),this._setInitialAttributesOnTargetPanel(t)}_setInitialAttributesOnTargetPanel(t){const e=Y.getElementFromSelector(t);e&&(this._setAttributeIfNotExists(e,"role","tabpanel"),t.id&&this._setAttributeIfNotExists(e,"aria-labelledby",`${t.id}`))}_toggleDropDown(t,e){const i=this._getOuterElement(t);if(!i.classList.contains(Kg))return;const s=(o,r)=>{const a=Y.findOne(o,i);a&&a.classList.toggle(r,e)};s(Hc,ke),s(Gg,Fs),i.setAttribute("aria-expanded",e)}_setAttributeIfNotExists(t,e,i){t.hasAttribute(e)||t.setAttribute(e,i)}_elemIsActive(t){return t.classList.contains(ke)}_getInnerElement(t){return t.matches(Bs)?t:Y.findOne(Bs,t)}_getOuterElement(t){return t.closest(Jg)||t}static jQueryInterface(t){return this.each(function(){const e=rn.getOrCreateInstance(this);if(typeof t=="string"){if(e[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);e[t]()}})}}H.on(document,jg,zc,function(n){["A","AREA"].includes(this.tagName)&&n.preventDefault(),!me(this)&&rn.getOrCreateInstance(this).show()});H.on(window,qg,()=>{for(const n of Y.find(Qg))rn.getOrCreateInstance(n)});Rt(rn);const tm="toast",em="bs.toast",xe=`.${em}`,nm=`mouseover${xe}`,im=`mouseout${xe}`,sm=`focusin${xe}`,om=`focusout${xe}`,rm=`hide${xe}`,am=`hidden${xe}`,lm=`show${xe}`,cm=`shown${xe}`,um="fade",oa="hide",ci="show",ui="showing",hm={animation:"boolean",autohide:"boolean",delay:"number"},dm={animation:!0,autohide:!0,delay:5e3};class us extends Ft{constructor(t,e){super(t,e),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return dm}static get DefaultType(){return hm}static get NAME(){return tm}show(){if(H.trigger(this._element,lm).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(um);const e=()=>{this._element.classList.remove(ui),H.trigger(this._element,cm),this._maybeScheduleHide()};this._element.classList.remove(oa),Un(this._element),this._element.classList.add(ci,ui),this._queueCallback(e,this._element,this._config.animation)}hide(){if(!this.isShown()||H.trigger(this._element,rm).defaultPrevented)return;const e=()=>{this._element.classList.add(oa),this._element.classList.remove(ui,ci),H.trigger(this._element,am)};this._element.classList.add(ui),this._queueCallback(e,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(ci),super.dispose()}isShown(){return this._element.classList.contains(ci)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(t,e){switch(t.type){case"mouseover":case"mouseout":{this._hasMouseInteraction=e;break}case"focusin":case"focusout":{this._hasKeyboardInteraction=e;break}}if(e){this._clearTimeout();return}const i=t.relatedTarget;this._element===i||this._element.contains(i)||this._maybeScheduleHide()}_setListeners(){H.on(this._element,nm,t=>this._onInteraction(t,!0)),H.on(this._element,im,t=>this._onInteraction(t,!1)),H.on(this._element,sm,t=>this._onInteraction(t,!0)),H.on(this._element,om,t=>this._onInteraction(t,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each(function(){const e=us.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof e[t]>"u")throw new TypeError(`No method named "${t}"`);e[t](this)}})}}os(us);Rt(us);function Vc(n,t){return function(){return n.apply(t,arguments)}}const{toString:fm}=Object.prototype,{getPrototypeOf:Go}=Object,hs=(n=>t=>{const e=fm.call(t);return n[e]||(n[e]=e.slice(8,-1).toLowerCase())})(Object.create(null)),qt=n=>(n=n.toLowerCase(),t=>hs(t)===n),ds=n=>t=>typeof t===n,{isArray:pn}=Array,Fn=ds("undefined");function pm(n){return n!==null&&!Fn(n)&&n.constructor!==null&&!Fn(n.constructor)&&kt(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const jc=qt("ArrayBuffer");function gm(n){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(n):t=n&&n.buffer&&jc(n.buffer),t}const mm=ds("string"),kt=ds("function"),Wc=ds("number"),fs=n=>n!==null&&typeof n=="object",_m=n=>n===!0||n===!1,Di=n=>{if(hs(n)!=="object")return!1;const t=Go(n);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)},bm=qt("Date"),ym=qt("File"),vm=qt("Blob"),Em=qt("FileList"),xm=n=>fs(n)&&kt(n.pipe),wm=n=>{let t;return n&&(typeof FormData=="function"&&n instanceof FormData||kt(n.append)&&((t=hs(n))==="formdata"||t==="object"&&kt(n.toString)&&n.toString()==="[object FormData]"))},Am=qt("URLSearchParams"),Sm=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Jn(n,t,{allOwnKeys:e=!1}={}){if(n===null||typeof n>"u")return;let i,s;if(typeof n!="object"&&(n=[n]),pn(n))for(i=0,s=n.length;i0;)if(s=e[i],t===s.toLowerCase())return s;return null}const Yc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Uc=n=>!Fn(n)&&n!==Yc;function co(){const{caseless:n}=Uc(this)&&this||{},t={},e=(i,s)=>{const o=n&&qc(t,s)||s;Di(t[o])&&Di(i)?t[o]=co(t[o],i):Di(i)?t[o]=co({},i):pn(i)?t[o]=i.slice():t[o]=i};for(let i=0,s=arguments.length;i(Jn(t,(s,o)=>{e&&kt(s)?n[o]=Vc(s,e):n[o]=s},{allOwnKeys:i}),n),Tm=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),Om=(n,t,e,i)=>{n.prototype=Object.create(t.prototype,i),n.prototype.constructor=n,Object.defineProperty(n,"super",{value:t.prototype}),e&&Object.assign(n.prototype,e)},Dm=(n,t,e,i)=>{let s,o,r;const a={};if(t=t||{},n==null)return t;do{for(s=Object.getOwnPropertyNames(n),o=s.length;o-- >0;)r=s[o],(!i||i(r,n,t))&&!a[r]&&(t[r]=n[r],a[r]=!0);n=e!==!1&&Go(n)}while(n&&(!e||e(n,t))&&n!==Object.prototype);return t},Mm=(n,t,e)=>{n=String(n),(e===void 0||e>n.length)&&(e=n.length),e-=t.length;const i=n.indexOf(t,e);return i!==-1&&i===e},km=n=>{if(!n)return null;if(pn(n))return n;let t=n.length;if(!Wc(t))return null;const e=new Array(t);for(;t-- >0;)e[t]=n[t];return e},Lm=(n=>t=>n&&t instanceof n)(typeof Uint8Array<"u"&&Go(Uint8Array)),Pm=(n,t)=>{const i=(n&&n[Symbol.iterator]).call(n);let s;for(;(s=i.next())&&!s.done;){const o=s.value;t.call(n,o[0],o[1])}},Rm=(n,t)=>{let e;const i=[];for(;(e=n.exec(t))!==null;)i.push(e);return i},Im=qt("HTMLFormElement"),Nm=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,i,s){return i.toUpperCase()+s}),ra=(({hasOwnProperty:n})=>(t,e)=>n.call(t,e))(Object.prototype),Fm=qt("RegExp"),Kc=(n,t)=>{const e=Object.getOwnPropertyDescriptors(n),i={};Jn(e,(s,o)=>{let r;(r=t(s,o,n))!==!1&&(i[o]=r||s)}),Object.defineProperties(n,i)},$m=n=>{Kc(n,(t,e)=>{if(kt(n)&&["arguments","caller","callee"].indexOf(e)!==-1)return!1;const i=n[e];if(kt(i)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+e+"'")})}})},Bm=(n,t)=>{const e={},i=s=>{s.forEach(o=>{e[o]=!0})};return pn(n)?i(n):i(String(n).split(t)),e},Hm=()=>{},zm=(n,t)=>(n=+n,Number.isFinite(n)?n:t),Hs="abcdefghijklmnopqrstuvwxyz",aa="0123456789",Gc={DIGIT:aa,ALPHA:Hs,ALPHA_DIGIT:Hs+Hs.toUpperCase()+aa},Vm=(n=16,t=Gc.ALPHA_DIGIT)=>{let e="";const{length:i}=t;for(;n--;)e+=t[Math.random()*i|0];return e};function jm(n){return!!(n&&kt(n.append)&&n[Symbol.toStringTag]==="FormData"&&n[Symbol.iterator])}const Wm=n=>{const t=new Array(10),e=(i,s)=>{if(fs(i)){if(t.indexOf(i)>=0)return;if(!("toJSON"in i)){t[s]=i;const o=pn(i)?[]:{};return Jn(i,(r,a)=>{const l=e(r,s+1);!Fn(l)&&(o[a]=l)}),t[s]=void 0,o}}return i};return e(n,0)},qm=qt("AsyncFunction"),Ym=n=>n&&(fs(n)||kt(n))&&kt(n.then)&&kt(n.catch),R={isArray:pn,isArrayBuffer:jc,isBuffer:pm,isFormData:wm,isArrayBufferView:gm,isString:mm,isNumber:Wc,isBoolean:_m,isObject:fs,isPlainObject:Di,isUndefined:Fn,isDate:bm,isFile:ym,isBlob:vm,isRegExp:Fm,isFunction:kt,isStream:xm,isURLSearchParams:Am,isTypedArray:Lm,isFileList:Em,forEach:Jn,merge:co,extend:Cm,trim:Sm,stripBOM:Tm,inherits:Om,toFlatObject:Dm,kindOf:hs,kindOfTest:qt,endsWith:Mm,toArray:km,forEachEntry:Pm,matchAll:Rm,isHTMLForm:Im,hasOwnProperty:ra,hasOwnProp:ra,reduceDescriptors:Kc,freezeMethods:$m,toObjectSet:Bm,toCamelCase:Nm,noop:Hm,toFiniteNumber:zm,findKey:qc,global:Yc,isContextDefined:Uc,ALPHABET:Gc,generateString:Vm,isSpecCompliantForm:jm,toJSONObject:Wm,isAsyncFn:qm,isThenable:Ym};function Z(n,t,e,i,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=n,this.name="AxiosError",t&&(this.code=t),e&&(this.config=e),i&&(this.request=i),s&&(this.response=s)}R.inherits(Z,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:R.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Xc=Z.prototype,Jc={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(n=>{Jc[n]={value:n}});Object.defineProperties(Z,Jc);Object.defineProperty(Xc,"isAxiosError",{value:!0});Z.from=(n,t,e,i,s,o)=>{const r=Object.create(Xc);return R.toFlatObject(n,r,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),Z.call(r,n.message,t,e,i,s),r.cause=n,r.name=n.name,o&&Object.assign(r,o),r};const Um=null;function uo(n){return R.isPlainObject(n)||R.isArray(n)}function Zc(n){return R.endsWith(n,"[]")?n.slice(0,-2):n}function la(n,t,e){return n?n.concat(t).map(function(s,o){return s=Zc(s),!e&&o?"["+s+"]":s}).join(e?".":""):t}function Km(n){return R.isArray(n)&&!n.some(uo)}const Gm=R.toFlatObject(R,{},null,function(t){return/^is[A-Z]/.test(t)});function ps(n,t,e){if(!R.isObject(n))throw new TypeError("target must be an object");t=t||new FormData,e=R.toFlatObject(e,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,_){return!R.isUndefined(_[g])});const i=e.metaTokens,s=e.visitor||u,o=e.dots,r=e.indexes,l=(e.Blob||typeof Blob<"u"&&Blob)&&R.isSpecCompliantForm(t);if(!R.isFunction(s))throw new TypeError("visitor must be a function");function c(p){if(p===null)return"";if(R.isDate(p))return p.toISOString();if(!l&&R.isBlob(p))throw new Z("Blob is not supported. Use a Buffer instead.");return R.isArrayBuffer(p)||R.isTypedArray(p)?l&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function u(p,g,_){let b=p;if(p&&!_&&typeof p=="object"){if(R.endsWith(g,"{}"))g=i?g:g.slice(0,-2),p=JSON.stringify(p);else if(R.isArray(p)&&Km(p)||(R.isFileList(p)||R.endsWith(g,"[]"))&&(b=R.toArray(p)))return g=Zc(g),b.forEach(function(w,x){!(R.isUndefined(w)||w===null)&&t.append(r===!0?la([g],x,o):r===null?g:g+"[]",c(w))}),!1}return uo(p)?!0:(t.append(la(_,g,o),c(p)),!1)}const h=[],d=Object.assign(Gm,{defaultVisitor:u,convertValue:c,isVisitable:uo});function f(p,g){if(!R.isUndefined(p)){if(h.indexOf(p)!==-1)throw Error("Circular reference detected in "+g.join("."));h.push(p),R.forEach(p,function(b,v){(!(R.isUndefined(b)||b===null)&&s.call(t,b,R.isString(v)?v.trim():v,g,d))===!0&&f(b,g?g.concat(v):[v])}),h.pop()}}if(!R.isObject(n))throw new TypeError("data must be an object");return f(n),t}function ca(n){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(i){return t[i]})}function Xo(n,t){this._pairs=[],n&&ps(n,this,t)}const Qc=Xo.prototype;Qc.append=function(t,e){this._pairs.push([t,e])};Qc.toString=function(t){const e=t?function(i){return t.call(this,i,ca)}:ca;return this._pairs.map(function(s){return e(s[0])+"="+e(s[1])},"").join("&")};function Xm(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function tu(n,t,e){if(!t)return n;const i=e&&e.encode||Xm,s=e&&e.serialize;let o;if(s?o=s(t,e):o=R.isURLSearchParams(t)?t.toString():new Xo(t,e).toString(i),o){const r=n.indexOf("#");r!==-1&&(n=n.slice(0,r)),n+=(n.indexOf("?")===-1?"?":"&")+o}return n}class ua{constructor(){this.handlers=[]}use(t,e,i){return this.handlers.push({fulfilled:t,rejected:e,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){R.forEach(this.handlers,function(i){i!==null&&t(i)})}}const eu={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Jm=typeof URLSearchParams<"u"?URLSearchParams:Xo,Zm=typeof FormData<"u"?FormData:null,Qm=typeof Blob<"u"?Blob:null,t_={isBrowser:!0,classes:{URLSearchParams:Jm,FormData:Zm,Blob:Qm},protocols:["http","https","file","blob","url","data"]},nu=typeof window<"u"&&typeof document<"u",e_=(n=>nu&&["ReactNative","NativeScript","NS"].indexOf(n)<0)(typeof navigator<"u"&&navigator.product),n_=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",i_=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:nu,hasStandardBrowserEnv:e_,hasStandardBrowserWebWorkerEnv:n_},Symbol.toStringTag,{value:"Module"})),Ht={...i_,...t_};function s_(n,t){return ps(n,new Ht.classes.URLSearchParams,Object.assign({visitor:function(e,i,s,o){return Ht.isNode&&R.isBuffer(e)?(this.append(i,e.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function o_(n){return R.matchAll(/\w+|\[(\w*)]/g,n).map(t=>t[0]==="[]"?"":t[1]||t[0])}function r_(n){const t={},e=Object.keys(n);let i;const s=e.length;let o;for(i=0;i=e.length;return r=!r&&R.isArray(s)?s.length:r,l?(R.hasOwnProp(s,r)?s[r]=[s[r],i]:s[r]=i,!a):((!s[r]||!R.isObject(s[r]))&&(s[r]=[]),t(e,i,s[r],o)&&R.isArray(s[r])&&(s[r]=r_(s[r])),!a)}if(R.isFormData(n)&&R.isFunction(n.entries)){const e={};return R.forEachEntry(n,(i,s)=>{t(o_(i),s,e,0)}),e}return null}function a_(n,t,e){if(R.isString(n))try{return(t||JSON.parse)(n),R.trim(n)}catch(i){if(i.name!=="SyntaxError")throw i}return(e||JSON.stringify)(n)}const Jo={transitional:eu,adapter:["xhr","http"],transformRequest:[function(t,e){const i=e.getContentType()||"",s=i.indexOf("application/json")>-1,o=R.isObject(t);if(o&&R.isHTMLForm(t)&&(t=new FormData(t)),R.isFormData(t))return s?JSON.stringify(iu(t)):t;if(R.isArrayBuffer(t)||R.isBuffer(t)||R.isStream(t)||R.isFile(t)||R.isBlob(t))return t;if(R.isArrayBufferView(t))return t.buffer;if(R.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(o){if(i.indexOf("application/x-www-form-urlencoded")>-1)return s_(t,this.formSerializer).toString();if((a=R.isFileList(t))||i.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return ps(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||s?(e.setContentType("application/json",!1),a_(t)):t}],transformResponse:[function(t){const e=this.transitional||Jo.transitional,i=e&&e.forcedJSONParsing,s=this.responseType==="json";if(t&&R.isString(t)&&(i&&!this.responseType||s)){const r=!(e&&e.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(a){if(r)throw a.name==="SyntaxError"?Z.from(a,Z.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ht.classes.FormData,Blob:Ht.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};R.forEach(["delete","get","head","post","put","patch"],n=>{Jo.headers[n]={}});const Zo=Jo,l_=R.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),c_=n=>{const t={};let e,i,s;return n&&n.split(` -`).forEach(function(r){s=r.indexOf(":"),e=r.substring(0,s).trim().toLowerCase(),i=r.substring(s+1).trim(),!(!e||t[e]&&l_[e])&&(e==="set-cookie"?t[e]?t[e].push(i):t[e]=[i]:t[e]=t[e]?t[e]+", "+i:i)}),t},ha=Symbol("internals");function _n(n){return n&&String(n).trim().toLowerCase()}function Mi(n){return n===!1||n==null?n:R.isArray(n)?n.map(Mi):String(n)}function u_(n){const t=Object.create(null),e=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=e.exec(n);)t[i[1]]=i[2];return t}const h_=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function zs(n,t,e,i,s){if(R.isFunction(i))return i.call(this,t,e);if(s&&(t=e),!!R.isString(t)){if(R.isString(i))return t.indexOf(i)!==-1;if(R.isRegExp(i))return i.test(t)}}function d_(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,e,i)=>e.toUpperCase()+i)}function f_(n,t){const e=R.toCamelCase(" "+t);["get","set","has"].forEach(i=>{Object.defineProperty(n,i+e,{value:function(s,o,r){return this[i].call(this,t,s,o,r)},configurable:!0})})}class gs{constructor(t){t&&this.set(t)}set(t,e,i){const s=this;function o(a,l,c){const u=_n(l);if(!u)throw new Error("header name must be a non-empty string");const h=R.findKey(s,u);(!h||s[h]===void 0||c===!0||c===void 0&&s[h]!==!1)&&(s[h||l]=Mi(a))}const r=(a,l)=>R.forEach(a,(c,u)=>o(c,u,l));return R.isPlainObject(t)||t instanceof this.constructor?r(t,e):R.isString(t)&&(t=t.trim())&&!h_(t)?r(c_(t),e):t!=null&&o(e,t,i),this}get(t,e){if(t=_n(t),t){const i=R.findKey(this,t);if(i){const s=this[i];if(!e)return s;if(e===!0)return u_(s);if(R.isFunction(e))return e.call(this,s,i);if(R.isRegExp(e))return e.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=_n(t),t){const i=R.findKey(this,t);return!!(i&&this[i]!==void 0&&(!e||zs(this,this[i],i,e)))}return!1}delete(t,e){const i=this;let s=!1;function o(r){if(r=_n(r),r){const a=R.findKey(i,r);a&&(!e||zs(i,i[a],a,e))&&(delete i[a],s=!0)}}return R.isArray(t)?t.forEach(o):o(t),s}clear(t){const e=Object.keys(this);let i=e.length,s=!1;for(;i--;){const o=e[i];(!t||zs(this,this[o],o,t,!0))&&(delete this[o],s=!0)}return s}normalize(t){const e=this,i={};return R.forEach(this,(s,o)=>{const r=R.findKey(i,o);if(r){e[r]=Mi(s),delete e[o];return}const a=t?d_(o):String(o).trim();a!==o&&delete e[o],e[a]=Mi(s),i[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return R.forEach(this,(i,s)=>{i!=null&&i!==!1&&(e[s]=t&&R.isArray(i)?i.join(", "):i)}),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,e])=>t+": "+e).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const i=new this(t);return e.forEach(s=>i.set(s)),i}static accessor(t){const i=(this[ha]=this[ha]={accessors:{}}).accessors,s=this.prototype;function o(r){const a=_n(r);i[a]||(f_(s,r),i[a]=!0)}return R.isArray(t)?t.forEach(o):o(t),this}}gs.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);R.reduceDescriptors(gs.prototype,({value:n},t)=>{let e=t[0].toUpperCase()+t.slice(1);return{get:()=>n,set(i){this[e]=i}}});R.freezeMethods(gs);const se=gs;function Vs(n,t){const e=this||Zo,i=t||e,s=se.from(i.headers);let o=i.data;return R.forEach(n,function(a){o=a.call(e,o,s.normalize(),t?t.status:void 0)}),s.normalize(),o}function su(n){return!!(n&&n.__CANCEL__)}function Zn(n,t,e){Z.call(this,n??"canceled",Z.ERR_CANCELED,t,e),this.name="CanceledError"}R.inherits(Zn,Z,{__CANCEL__:!0});function p_(n,t,e){const i=e.config.validateStatus;!e.status||!i||i(e.status)?n(e):t(new Z("Request failed with status code "+e.status,[Z.ERR_BAD_REQUEST,Z.ERR_BAD_RESPONSE][Math.floor(e.status/100)-4],e.config,e.request,e))}const g_=Ht.hasStandardBrowserEnv?{write(n,t,e,i,s,o){const r=[n+"="+encodeURIComponent(t)];R.isNumber(e)&&r.push("expires="+new Date(e).toGMTString()),R.isString(i)&&r.push("path="+i),R.isString(s)&&r.push("domain="+s),o===!0&&r.push("secure"),document.cookie=r.join("; ")},read(n){const t=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(n){this.write(n,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function m_(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function __(n,t){return t?n.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):n}function ou(n,t){return n&&!m_(t)?__(n,t):t}const b_=Ht.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),e=document.createElement("a");let i;function s(o){let r=o;return t&&(e.setAttribute("href",r),r=e.href),e.setAttribute("href",r),{href:e.href,protocol:e.protocol?e.protocol.replace(/:$/,""):"",host:e.host,search:e.search?e.search.replace(/^\?/,""):"",hash:e.hash?e.hash.replace(/^#/,""):"",hostname:e.hostname,port:e.port,pathname:e.pathname.charAt(0)==="/"?e.pathname:"/"+e.pathname}}return i=s(window.location.href),function(r){const a=R.isString(r)?s(r):r;return a.protocol===i.protocol&&a.host===i.host}}():function(){return function(){return!0}}();function y_(n){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return t&&t[1]||""}function v_(n,t){n=n||10;const e=new Array(n),i=new Array(n);let s=0,o=0,r;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=i[o];r||(r=c),e[s]=l,i[s]=c;let h=o,d=0;for(;h!==s;)d+=e[h++],h=h%n;if(s=(s+1)%n,s===o&&(o=(o+1)%n),c-r{const o=s.loaded,r=s.lengthComputable?s.total:void 0,a=o-e,l=i(a),c=o<=r;e=o;const u={loaded:o,total:r,progress:r?o/r:void 0,bytes:a,rate:l||void 0,estimated:l&&r&&c?(r-o)/l:void 0,event:s};u[t?"download":"upload"]=!0,n(u)}}const E_=typeof XMLHttpRequest<"u",x_=E_&&function(n){return new Promise(function(e,i){let s=n.data;const o=se.from(n.headers).normalize();let{responseType:r,withXSRFToken:a}=n,l;function c(){n.cancelToken&&n.cancelToken.unsubscribe(l),n.signal&&n.signal.removeEventListener("abort",l)}let u;if(R.isFormData(s)){if(Ht.hasStandardBrowserEnv||Ht.hasStandardBrowserWebWorkerEnv)o.setContentType(!1);else if((u=o.getContentType())!==!1){const[g,..._]=u?u.split(";").map(b=>b.trim()).filter(Boolean):[];o.setContentType([g||"multipart/form-data",..._].join("; "))}}let h=new XMLHttpRequest;if(n.auth){const g=n.auth.username||"",_=n.auth.password?unescape(encodeURIComponent(n.auth.password)):"";o.set("Authorization","Basic "+btoa(g+":"+_))}const d=ou(n.baseURL,n.url);h.open(n.method.toUpperCase(),tu(d,n.params,n.paramsSerializer),!0),h.timeout=n.timeout;function f(){if(!h)return;const g=se.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders()),b={data:!r||r==="text"||r==="json"?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:g,config:n,request:h};p_(function(w){e(w),c()},function(w){i(w),c()},b),h=null}if("onloadend"in h?h.onloadend=f:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.indexOf("file:")===0)||setTimeout(f)},h.onabort=function(){h&&(i(new Z("Request aborted",Z.ECONNABORTED,n,h)),h=null)},h.onerror=function(){i(new Z("Network Error",Z.ERR_NETWORK,n,h)),h=null},h.ontimeout=function(){let _=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const b=n.transitional||eu;n.timeoutErrorMessage&&(_=n.timeoutErrorMessage),i(new Z(_,b.clarifyTimeoutError?Z.ETIMEDOUT:Z.ECONNABORTED,n,h)),h=null},Ht.hasStandardBrowserEnv&&(a&&R.isFunction(a)&&(a=a(n)),a||a!==!1&&b_(d))){const g=n.xsrfHeaderName&&n.xsrfCookieName&&g_.read(n.xsrfCookieName);g&&o.set(n.xsrfHeaderName,g)}s===void 0&&o.setContentType(null),"setRequestHeader"in h&&R.forEach(o.toJSON(),function(_,b){h.setRequestHeader(b,_)}),R.isUndefined(n.withCredentials)||(h.withCredentials=!!n.withCredentials),r&&r!=="json"&&(h.responseType=n.responseType),typeof n.onDownloadProgress=="function"&&h.addEventListener("progress",da(n.onDownloadProgress,!0)),typeof n.onUploadProgress=="function"&&h.upload&&h.upload.addEventListener("progress",da(n.onUploadProgress)),(n.cancelToken||n.signal)&&(l=g=>{h&&(i(!g||g.type?new Zn(null,n,h):g),h.abort(),h=null)},n.cancelToken&&n.cancelToken.subscribe(l),n.signal&&(n.signal.aborted?l():n.signal.addEventListener("abort",l)));const p=y_(d);if(p&&Ht.protocols.indexOf(p)===-1){i(new Z("Unsupported protocol "+p+":",Z.ERR_BAD_REQUEST,n));return}h.send(s||null)})},ho={http:Um,xhr:x_};R.forEach(ho,(n,t)=>{if(n){try{Object.defineProperty(n,"name",{value:t})}catch{}Object.defineProperty(n,"adapterName",{value:t})}});const fa=n=>`- ${n}`,w_=n=>R.isFunction(n)||n===null||n===!1,ru={getAdapter:n=>{n=R.isArray(n)?n:[n];const{length:t}=n;let e,i;const s={};for(let o=0;o`adapter ${a} `+(l===!1?"is not supported by the environment":"is not available in the build"));let r=t?o.length>1?`since : -`+o.map(fa).join(` -`):" "+fa(o[0]):"as no adapter specified";throw new Z("There is no suitable adapter to dispatch the request "+r,"ERR_NOT_SUPPORT")}return i},adapters:ho};function js(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new Zn(null,n)}function pa(n){return js(n),n.headers=se.from(n.headers),n.data=Vs.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),ru.getAdapter(n.adapter||Zo.adapter)(n).then(function(i){return js(n),i.data=Vs.call(n,n.transformResponse,i),i.headers=se.from(i.headers),i},function(i){return su(i)||(js(n),i&&i.response&&(i.response.data=Vs.call(n,n.transformResponse,i.response),i.response.headers=se.from(i.response.headers))),Promise.reject(i)})}const ga=n=>n instanceof se?{...n}:n;function an(n,t){t=t||{};const e={};function i(c,u,h){return R.isPlainObject(c)&&R.isPlainObject(u)?R.merge.call({caseless:h},c,u):R.isPlainObject(u)?R.merge({},u):R.isArray(u)?u.slice():u}function s(c,u,h){if(R.isUndefined(u)){if(!R.isUndefined(c))return i(void 0,c,h)}else return i(c,u,h)}function o(c,u){if(!R.isUndefined(u))return i(void 0,u)}function r(c,u){if(R.isUndefined(u)){if(!R.isUndefined(c))return i(void 0,c)}else return i(void 0,u)}function a(c,u,h){if(h in t)return i(c,u);if(h in n)return i(void 0,c)}const l={url:o,method:o,data:o,baseURL:r,transformRequest:r,transformResponse:r,paramsSerializer:r,timeout:r,timeoutMessage:r,withCredentials:r,withXSRFToken:r,adapter:r,responseType:r,xsrfCookieName:r,xsrfHeaderName:r,onUploadProgress:r,onDownloadProgress:r,decompress:r,maxContentLength:r,maxBodyLength:r,beforeRedirect:r,transport:r,httpAgent:r,httpsAgent:r,cancelToken:r,socketPath:r,responseEncoding:r,validateStatus:a,headers:(c,u)=>s(ga(c),ga(u),!0)};return R.forEach(Object.keys(Object.assign({},n,t)),function(u){const h=l[u]||s,d=h(n[u],t[u],u);R.isUndefined(d)&&h!==a||(e[u]=d)}),e}const au="1.6.8",Qo={};["object","boolean","number","function","string","symbol"].forEach((n,t)=>{Qo[n]=function(i){return typeof i===n||"a"+(t<1?"n ":" ")+n}});const ma={};Qo.transitional=function(t,e,i){function s(o,r){return"[Axios v"+au+"] Transitional option '"+o+"'"+r+(i?". "+i:"")}return(o,r,a)=>{if(t===!1)throw new Z(s(r," has been removed"+(e?" in "+e:"")),Z.ERR_DEPRECATED);return e&&!ma[r]&&(ma[r]=!0,console.warn(s(r," has been deprecated since v"+e+" and will be removed in the near future"))),t?t(o,r,a):!0}};function A_(n,t,e){if(typeof n!="object")throw new Z("options must be an object",Z.ERR_BAD_OPTION_VALUE);const i=Object.keys(n);let s=i.length;for(;s-- >0;){const o=i[s],r=t[o];if(r){const a=n[o],l=a===void 0||r(a,o,n);if(l!==!0)throw new Z("option "+o+" must be "+l,Z.ERR_BAD_OPTION_VALUE);continue}if(e!==!0)throw new Z("Unknown option "+o,Z.ERR_BAD_OPTION)}}const fo={assertOptions:A_,validators:Qo},ce=fo.validators;class Yi{constructor(t){this.defaults=t,this.interceptors={request:new ua,response:new ua}}async request(t,e){try{return await this._request(t,e)}catch(i){if(i instanceof Error){let s;Error.captureStackTrace?Error.captureStackTrace(s={}):s=new Error;const o=s.stack?s.stack.replace(/^.+\n/,""):"";i.stack?o&&!String(i.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(i.stack+=` -`+o):i.stack=o}throw i}}_request(t,e){typeof t=="string"?(e=e||{},e.url=t):e=t||{},e=an(this.defaults,e);const{transitional:i,paramsSerializer:s,headers:o}=e;i!==void 0&&fo.assertOptions(i,{silentJSONParsing:ce.transitional(ce.boolean),forcedJSONParsing:ce.transitional(ce.boolean),clarifyTimeoutError:ce.transitional(ce.boolean)},!1),s!=null&&(R.isFunction(s)?e.paramsSerializer={serialize:s}:fo.assertOptions(s,{encode:ce.function,serialize:ce.function},!0)),e.method=(e.method||this.defaults.method||"get").toLowerCase();let r=o&&R.merge(o.common,o[e.method]);o&&R.forEach(["delete","get","head","post","put","patch","common"],p=>{delete o[p]}),e.headers=se.concat(r,o);const a=[];let l=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(e)===!1||(l=l&&g.synchronous,a.unshift(g.fulfilled,g.rejected))});const c=[];this.interceptors.response.forEach(function(g){c.push(g.fulfilled,g.rejected)});let u,h=0,d;if(!l){const p=[pa.bind(this),void 0];for(p.unshift.apply(p,a),p.push.apply(p,c),d=p.length,u=Promise.resolve(e);h{if(!i._listeners)return;let o=i._listeners.length;for(;o-- >0;)i._listeners[o](s);i._listeners=null}),this.promise.then=s=>{let o;const r=new Promise(a=>{i.subscribe(a),o=a}).then(s);return r.cancel=function(){i.unsubscribe(o)},r},t(function(o,r,a){i.reason||(i.reason=new Zn(o,r,a),e(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);e!==-1&&this._listeners.splice(e,1)}static source(){let t;return{token:new tr(function(s){t=s}),cancel:t}}}const S_=tr;function C_(n){return function(e){return n.apply(null,e)}}function T_(n){return R.isObject(n)&&n.isAxiosError===!0}const po={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(po).forEach(([n,t])=>{po[t]=n});const O_=po;function lu(n){const t=new ki(n),e=Vc(ki.prototype.request,t);return R.extend(e,ki.prototype,t,{allOwnKeys:!0}),R.extend(e,t,null,{allOwnKeys:!0}),e.create=function(s){return lu(an(n,s))},e}const ht=lu(Zo);ht.Axios=ki;ht.CanceledError=Zn;ht.CancelToken=S_;ht.isCancel=su;ht.VERSION=au;ht.toFormData=ps;ht.AxiosError=Z;ht.Cancel=ht.CanceledError;ht.all=function(t){return Promise.all(t)};ht.spread=C_;ht.isAxiosError=T_;ht.mergeConfig=an;ht.AxiosHeaders=se;ht.formToJSON=n=>iu(R.isHTMLForm(n)?new FormData(n):n);ht.getAdapter=ru.getAdapter;ht.HttpStatusCode=O_;ht.default=ht;const D_=ht;window.axios=D_;window.axios.defaults.headers.common["X-Requested-With"]="XMLHttpRequest";var cu={exports:{}};/*! @preserve + */const le=new Map,As={set(n,t,e){le.has(n)||le.set(n,new Map);const i=le.get(n);if(!i.has(t)&&i.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(i.keys())[0]}.`);return}i.set(t,e)},get(n,t){return le.has(n)&&le.get(n).get(t)||null},remove(n,t){if(!le.has(n))return;const e=le.get(n);e.delete(t),e.size===0&&le.delete(n)}},Gh=1e6,Xh=1e3,so="transitionend",cc=n=>(n&&window.CSS&&window.CSS.escape&&(n=n.replace(/#([^\s"#']+)/g,(t,e)=>`#${CSS.escape(e)}`)),n),Jh=n=>n==null?`${n}`:Object.prototype.toString.call(n).match(/\s([a-z]+)/i)[1].toLowerCase(),Zh=n=>{do n+=Math.floor(Math.random()*Gh);while(document.getElementById(n));return n},Qh=n=>{if(!n)return 0;let{transitionDuration:t,transitionDelay:e}=window.getComputedStyle(n);const i=Number.parseFloat(t),s=Number.parseFloat(e);return!i&&!s?0:(t=t.split(",")[0],e=e.split(",")[0],(Number.parseFloat(t)+Number.parseFloat(e))*Xh)},uc=n=>{n.dispatchEvent(new Event(so))},ie=n=>!n||typeof n!="object"?!1:(typeof n.jquery<"u"&&(n=n[0]),typeof n.nodeType<"u"),ge=n=>ie(n)?n.jquery?n[0]:n:typeof n=="string"&&n.length>0?document.querySelector(cc(n)):null,fn=n=>{if(!ie(n)||n.getClientRects().length===0)return!1;const t=getComputedStyle(n).getPropertyValue("visibility")==="visible",e=n.closest("details:not([open])");if(!e)return t;if(e!==n){const i=n.closest("summary");if(i&&i.parentNode!==e||i===null)return!1}return t},me=n=>!n||n.nodeType!==Node.ELEMENT_NODE||n.classList.contains("disabled")?!0:typeof n.disabled<"u"?n.disabled:n.hasAttribute("disabled")&&n.getAttribute("disabled")!=="false",hc=n=>{if(!document.documentElement.attachShadow)return null;if(typeof n.getRootNode=="function"){const t=n.getRootNode();return t instanceof ShadowRoot?t:null}return n instanceof ShadowRoot?n:n.parentNode?hc(n.parentNode):null},Wi=()=>{},Kn=n=>{n.offsetHeight},dc=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,Ss=[],td=n=>{document.readyState==="loading"?(Ss.length||document.addEventListener("DOMContentLoaded",()=>{for(const t of Ss)t()}),Ss.push(n)):n()},Pt=()=>document.documentElement.dir==="rtl",It=n=>{td(()=>{const t=dc();if(t){const e=n.NAME,i=t.fn[e];t.fn[e]=n.jQueryInterface,t.fn[e].Constructor=n,t.fn[e].noConflict=()=>(t.fn[e]=i,n.jQueryInterface)}})},Et=(n,t=[],e=n)=>typeof n=="function"?n(...t):e,fc=(n,t,e=!0)=>{if(!e){Et(n);return}const s=Qh(t)+5;let o=!1;const r=({target:a})=>{a===t&&(o=!0,t.removeEventListener(so,r),Et(n))};t.addEventListener(so,r),setTimeout(()=>{o||uc(t)},s)},jo=(n,t,e,i)=>{const s=n.length;let o=n.indexOf(t);return o===-1?!e&&i?n[s-1]:n[0]:(o+=e?1:-1,i&&(o=(o+s)%s),n[Math.max(0,Math.min(o,s-1))])},ed=/[^.]*(?=\..*)\.|.*/,nd=/\..*/,id=/::\d+$/,Cs={};let Dr=1;const pc={mouseenter:"mouseover",mouseleave:"mouseout"},sd=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function gc(n,t){return t&&`${t}::${Dr++}`||n.uidEvent||Dr++}function mc(n){const t=gc(n);return n.uidEvent=t,Cs[t]=Cs[t]||{},Cs[t]}function od(n,t){return function e(i){return Wo(i,{delegateTarget:n}),e.oneOff&&H.off(n,i.type,t),t.apply(n,[i])}}function rd(n,t,e){return function i(s){const o=n.querySelectorAll(t);for(let{target:r}=s;r&&r!==this;r=r.parentNode)for(const a of o)if(a===r)return Wo(s,{delegateTarget:r}),i.oneOff&&H.off(n,s.type,t,e),e.apply(r,[s])}}function _c(n,t,e=null){return Object.values(n).find(i=>i.callable===t&&i.delegationSelector===e)}function bc(n,t,e){const i=typeof t=="string",s=i?e:t||e;let o=yc(n);return sd.has(o)||(o=n),[i,s,o]}function Mr(n,t,e,i,s){if(typeof t!="string"||!n)return;let[o,r,a]=bc(t,e,i);t in pc&&(r=(p=>function(g){if(!g.relatedTarget||g.relatedTarget!==g.delegateTarget&&!g.delegateTarget.contains(g.relatedTarget))return p.call(this,g)})(r));const l=mc(n),c=l[a]||(l[a]={}),u=_c(c,r,o?e:null);if(u){u.oneOff=u.oneOff&&s;return}const h=gc(r,t.replace(ed,"")),d=o?rd(n,e,r):od(n,r);d.delegationSelector=o?e:null,d.callable=r,d.oneOff=s,d.uidEvent=h,c[h]=d,n.addEventListener(a,d,o)}function oo(n,t,e,i,s){const o=_c(t[e],i,s);o&&(n.removeEventListener(e,o,!!s),delete t[e][o.uidEvent])}function ad(n,t,e,i){const s=t[e]||{};for(const[o,r]of Object.entries(s))o.includes(i)&&oo(n,t,e,r.callable,r.delegationSelector)}function yc(n){return n=n.replace(nd,""),pc[n]||n}const H={on(n,t,e,i){Mr(n,t,e,i,!1)},one(n,t,e,i){Mr(n,t,e,i,!0)},off(n,t,e,i){if(typeof t!="string"||!n)return;const[s,o,r]=bc(t,e,i),a=r!==t,l=mc(n),c=l[r]||{},u=t.startsWith(".");if(typeof o<"u"){if(!Object.keys(c).length)return;oo(n,l,r,o,s?e:null);return}if(u)for(const h of Object.keys(l))ad(n,l,h,t.slice(1));for(const[h,d]of Object.entries(c)){const f=h.replace(id,"");(!a||t.includes(f))&&oo(n,l,r,d.callable,d.delegationSelector)}},trigger(n,t,e){if(typeof t!="string"||!n)return null;const i=dc(),s=yc(t),o=t!==s;let r=null,a=!0,l=!0,c=!1;o&&i&&(r=i.Event(t,e),i(n).trigger(r),a=!r.isPropagationStopped(),l=!r.isImmediatePropagationStopped(),c=r.isDefaultPrevented());const u=Wo(new Event(t,{bubbles:a,cancelable:!0}),e);return c&&u.preventDefault(),l&&n.dispatchEvent(u),u.defaultPrevented&&r&&r.preventDefault(),u}};function Wo(n,t={}){for(const[e,i]of Object.entries(t))try{n[e]=i}catch{Object.defineProperty(n,e,{configurable:!0,get(){return i}})}return n}function kr(n){if(n==="true")return!0;if(n==="false")return!1;if(n===Number(n).toString())return Number(n);if(n===""||n==="null")return null;if(typeof n!="string")return n;try{return JSON.parse(decodeURIComponent(n))}catch{return n}}function Ts(n){return n.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}const se={setDataAttribute(n,t,e){n.setAttribute(`data-bs-${Ts(t)}`,e)},removeDataAttribute(n,t){n.removeAttribute(`data-bs-${Ts(t)}`)},getDataAttributes(n){if(!n)return{};const t={},e=Object.keys(n.dataset).filter(i=>i.startsWith("bs")&&!i.startsWith("bsConfig"));for(const i of e){let s=i.replace(/^bs/,"");s=s.charAt(0).toLowerCase()+s.slice(1,s.length),t[s]=kr(n.dataset[i])}return t},getDataAttribute(n,t){return kr(n.getAttribute(`data-bs-${Ts(t)}`))}};let Gn=class{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(t){return t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t}_mergeConfigObj(t,e){const i=ie(e)?se.getDataAttribute(e,"config"):{};return{...this.constructor.Default,...typeof i=="object"?i:{},...ie(e)?se.getDataAttributes(e):{},...typeof t=="object"?t:{}}}_typeCheckConfig(t,e=this.constructor.DefaultType){for(const[i,s]of Object.entries(e)){const o=t[i],r=ie(o)?"element":Jh(o);if(!new RegExp(s).test(r))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${i}" provided type "${r}" but expected type "${s}".`)}}};const ld="5.3.3";class $t extends Gn{constructor(t,e){super(),t=ge(t),t&&(this._element=t,this._config=this._getConfig(e),As.set(this._element,this.constructor.DATA_KEY,this))}dispose(){As.remove(this._element,this.constructor.DATA_KEY),H.off(this._element,this.constructor.EVENT_KEY);for(const t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,e,i=!0){fc(t,e,i)}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return As.get(ge(t),this.DATA_KEY)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,typeof e=="object"?e:null)}static get VERSION(){return ld}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(t){return`${t}${this.EVENT_KEY}`}}const Os=n=>{let t=n.getAttribute("data-bs-target");if(!t||t==="#"){let e=n.getAttribute("href");if(!e||!e.includes("#")&&!e.startsWith("."))return null;e.includes("#")&&!e.startsWith("#")&&(e=`#${e.split("#")[1]}`),t=e&&e!=="#"?e.trim():null}return t?t.split(",").map(e=>cc(e)).join(","):null},Y={find(n,t=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(t,n))},findOne(n,t=document.documentElement){return Element.prototype.querySelector.call(t,n)},children(n,t){return[].concat(...n.children).filter(e=>e.matches(t))},parents(n,t){const e=[];let i=n.parentNode.closest(t);for(;i;)e.push(i),i=i.parentNode.closest(t);return e},prev(n,t){let e=n.previousElementSibling;for(;e;){if(e.matches(t))return[e];e=e.previousElementSibling}return[]},next(n,t){let e=n.nextElementSibling;for(;e;){if(e.matches(t))return[e];e=e.nextElementSibling}return[]},focusableChildren(n){const t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(e=>`${e}:not([tabindex^="-"])`).join(",");return this.find(t,n).filter(e=>!me(e)&&fn(e))},getSelectorFromElement(n){const t=Os(n);return t&&Y.findOne(t)?t:null},getElementFromSelector(n){const t=Os(n);return t?Y.findOne(t):null},getMultipleElementsFromSelector(n){const t=Os(n);return t?Y.find(t):[]}},os=(n,t="hide")=>{const e=`click.dismiss${n.EVENT_KEY}`,i=n.NAME;H.on(document,e,`[data-bs-dismiss="${i}"]`,function(s){if(["A","AREA"].includes(this.tagName)&&s.preventDefault(),me(this))return;const o=Y.getElementFromSelector(this)||this.closest(`.${i}`);n.getOrCreateInstance(o)[t]()})},cd="alert",ud="bs.alert",vc=`.${ud}`,hd=`close${vc}`,dd=`closed${vc}`,fd="fade",pd="show";class rs extends $t{static get NAME(){return cd}close(){if(H.trigger(this._element,hd).defaultPrevented)return;this._element.classList.remove(pd);const e=this._element.classList.contains(fd);this._queueCallback(()=>this._destroyElement(),this._element,e)}_destroyElement(){this._element.remove(),H.trigger(this._element,dd),this.dispose()}static jQueryInterface(t){return this.each(function(){const e=rs.getOrCreateInstance(this);if(typeof t=="string"){if(e[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);e[t](this)}})}}os(rs,"close");It(rs);const gd="button",md="bs.button",_d=`.${md}`,bd=".data-api",yd="active",Lr='[data-bs-toggle="button"]',vd=`click${_d}${bd}`;class as extends $t{static get NAME(){return gd}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(yd))}static jQueryInterface(t){return this.each(function(){const e=as.getOrCreateInstance(this);t==="toggle"&&e[t]()})}}H.on(document,vd,Lr,n=>{n.preventDefault();const t=n.target.closest(Lr);as.getOrCreateInstance(t).toggle()});It(as);const Ed="swipe",pn=".bs.swipe",xd=`touchstart${pn}`,wd=`touchmove${pn}`,Ad=`touchend${pn}`,Sd=`pointerdown${pn}`,Cd=`pointerup${pn}`,Td="touch",Od="pen",Dd="pointer-event",Md=40,kd={endCallback:null,leftCallback:null,rightCallback:null},Ld={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class qi extends Gn{constructor(t,e){super(),this._element=t,!(!t||!qi.isSupported())&&(this._config=this._getConfig(e),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return kd}static get DefaultType(){return Ld}static get NAME(){return Ed}dispose(){H.off(this._element,pn)}_start(t){if(!this._supportPointerEvents){this._deltaX=t.touches[0].clientX;return}this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX)}_end(t){this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX-this._deltaX),this._handleSwipe(),Et(this._config.endCallback)}_move(t){this._deltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-this._deltaX}_handleSwipe(){const t=Math.abs(this._deltaX);if(t<=Md)return;const e=t/this._deltaX;this._deltaX=0,e&&Et(e>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(H.on(this._element,Sd,t=>this._start(t)),H.on(this._element,Cd,t=>this._end(t)),this._element.classList.add(Dd)):(H.on(this._element,xd,t=>this._start(t)),H.on(this._element,wd,t=>this._move(t)),H.on(this._element,Ad,t=>this._end(t)))}_eventIsPointerPenTouch(t){return this._supportPointerEvents&&(t.pointerType===Od||t.pointerType===Td)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const Pd="carousel",Rd="bs.carousel",Ee=`.${Rd}`,Ec=".data-api",Id="ArrowLeft",Nd="ArrowRight",Fd=500,mn="next",qe="prev",Xe="left",Di="right",$d=`slide${Ee}`,Ds=`slid${Ee}`,Bd=`keydown${Ee}`,Hd=`mouseenter${Ee}`,zd=`mouseleave${Ee}`,Vd=`dragstart${Ee}`,jd=`load${Ee}${Ec}`,Wd=`click${Ee}${Ec}`,xc="carousel",ai="active",qd="slide",Yd="carousel-item-end",Ud="carousel-item-start",Kd="carousel-item-next",Gd="carousel-item-prev",wc=".active",Ac=".carousel-item",Xd=wc+Ac,Jd=".carousel-item img",Zd=".carousel-indicators",Qd="[data-bs-slide], [data-bs-slide-to]",tf='[data-bs-ride="carousel"]',ef={[Id]:Di,[Nd]:Xe},nf={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},sf={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class Xn extends $t{constructor(t,e){super(t,e),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=Y.findOne(Zd,this._element),this._addEventListeners(),this._config.ride===xc&&this.cycle()}static get Default(){return nf}static get DefaultType(){return sf}static get NAME(){return Pd}next(){this._slide(mn)}nextWhenVisible(){!document.hidden&&fn(this._element)&&this.next()}prev(){this._slide(qe)}pause(){this._isSliding&&uc(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){if(this._config.ride){if(this._isSliding){H.one(this._element,Ds,()=>this.cycle());return}this.cycle()}}to(t){const e=this._getItems();if(t>e.length-1||t<0)return;if(this._isSliding){H.one(this._element,Ds,()=>this.to(t));return}const i=this._getItemIndex(this._getActive());if(i===t)return;const s=t>i?mn:qe;this._slide(s,e[t])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(t){return t.defaultInterval=t.interval,t}_addEventListeners(){this._config.keyboard&&H.on(this._element,Bd,t=>this._keydown(t)),this._config.pause==="hover"&&(H.on(this._element,Hd,()=>this.pause()),H.on(this._element,zd,()=>this._maybeEnableCycle())),this._config.touch&&qi.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const i of Y.find(Jd,this._element))H.on(i,Vd,s=>s.preventDefault());const e={leftCallback:()=>this._slide(this._directionToOrder(Xe)),rightCallback:()=>this._slide(this._directionToOrder(Di)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),Fd+this._config.interval))}};this._swipeHelper=new qi(this._element,e)}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const e=ef[t.key];e&&(t.preventDefault(),this._slide(this._directionToOrder(e)))}_getItemIndex(t){return this._getItems().indexOf(t)}_setActiveIndicatorElement(t){if(!this._indicatorsElement)return;const e=Y.findOne(wc,this._indicatorsElement);e.classList.remove(ai),e.removeAttribute("aria-current");const i=Y.findOne(`[data-bs-slide-to="${t}"]`,this._indicatorsElement);i&&(i.classList.add(ai),i.setAttribute("aria-current","true"))}_updateInterval(){const t=this._activeElement||this._getActive();if(!t)return;const e=Number.parseInt(t.getAttribute("data-bs-interval"),10);this._config.interval=e||this._config.defaultInterval}_slide(t,e=null){if(this._isSliding)return;const i=this._getActive(),s=t===mn,o=e||jo(this._getItems(),i,s,this._config.wrap);if(o===i)return;const r=this._getItemIndex(o),a=f=>H.trigger(this._element,f,{relatedTarget:o,direction:this._orderToDirection(t),from:this._getItemIndex(i),to:r});if(a($d).defaultPrevented||!i||!o)return;const c=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(r),this._activeElement=o;const u=s?Ud:Yd,h=s?Kd:Gd;o.classList.add(h),Kn(o),i.classList.add(u),o.classList.add(u);const d=()=>{o.classList.remove(u,h),o.classList.add(ai),i.classList.remove(ai,h,u),this._isSliding=!1,a(Ds)};this._queueCallback(d,i,this._isAnimated()),c&&this.cycle()}_isAnimated(){return this._element.classList.contains(qd)}_getActive(){return Y.findOne(Xd,this._element)}_getItems(){return Y.find(Ac,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(t){return Pt()?t===Xe?qe:mn:t===Xe?mn:qe}_orderToDirection(t){return Pt()?t===qe?Xe:Di:t===qe?Di:Xe}static jQueryInterface(t){return this.each(function(){const e=Xn.getOrCreateInstance(this,t);if(typeof t=="number"){e.to(t);return}if(typeof t=="string"){if(e[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);e[t]()}})}}H.on(document,Wd,Qd,function(n){const t=Y.getElementFromSelector(this);if(!t||!t.classList.contains(xc))return;n.preventDefault();const e=Xn.getOrCreateInstance(t),i=this.getAttribute("data-bs-slide-to");if(i){e.to(i),e._maybeEnableCycle();return}if(se.getDataAttribute(this,"slide")==="next"){e.next(),e._maybeEnableCycle();return}e.prev(),e._maybeEnableCycle()});H.on(window,jd,()=>{const n=Y.find(tf);for(const t of n)Xn.getOrCreateInstance(t)});It(Xn);const of="collapse",rf="bs.collapse",Jn=`.${rf}`,af=".data-api",lf=`show${Jn}`,cf=`shown${Jn}`,uf=`hide${Jn}`,hf=`hidden${Jn}`,df=`click${Jn}${af}`,Ms="show",Ze="collapse",li="collapsing",ff="collapsed",pf=`:scope .${Ze} .${Ze}`,gf="collapse-horizontal",mf="width",_f="height",bf=".collapse.show, .collapse.collapsing",ro='[data-bs-toggle="collapse"]',yf={parent:null,toggle:!0},vf={parent:"(null|element)",toggle:"boolean"};class Fn extends $t{constructor(t,e){super(t,e),this._isTransitioning=!1,this._triggerArray=[];const i=Y.find(ro);for(const s of i){const o=Y.getSelectorFromElement(s),r=Y.find(o).filter(a=>a===this._element);o!==null&&r.length&&this._triggerArray.push(s)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return yf}static get DefaultType(){return vf}static get NAME(){return of}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(bf).filter(a=>a!==this._element).map(a=>Fn.getOrCreateInstance(a,{toggle:!1}))),t.length&&t[0]._isTransitioning||H.trigger(this._element,lf).defaultPrevented)return;for(const a of t)a.hide();const i=this._getDimension();this._element.classList.remove(Ze),this._element.classList.add(li),this._element.style[i]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const s=()=>{this._isTransitioning=!1,this._element.classList.remove(li),this._element.classList.add(Ze,Ms),this._element.style[i]="",H.trigger(this._element,cf)},r=`scroll${i[0].toUpperCase()+i.slice(1)}`;this._queueCallback(s,this._element,!0),this._element.style[i]=`${this._element[r]}px`}hide(){if(this._isTransitioning||!this._isShown()||H.trigger(this._element,uf).defaultPrevented)return;const e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,Kn(this._element),this._element.classList.add(li),this._element.classList.remove(Ze,Ms);for(const s of this._triggerArray){const o=Y.getElementFromSelector(s);o&&!this._isShown(o)&&this._addAriaAndCollapsedClass([s],!1)}this._isTransitioning=!0;const i=()=>{this._isTransitioning=!1,this._element.classList.remove(li),this._element.classList.add(Ze),H.trigger(this._element,hf)};this._element.style[e]="",this._queueCallback(i,this._element,!0)}_isShown(t=this._element){return t.classList.contains(Ms)}_configAfterMerge(t){return t.toggle=!!t.toggle,t.parent=ge(t.parent),t}_getDimension(){return this._element.classList.contains(gf)?mf:_f}_initializeChildren(){if(!this._config.parent)return;const t=this._getFirstLevelChildren(ro);for(const e of t){const i=Y.getElementFromSelector(e);i&&this._addAriaAndCollapsedClass([e],this._isShown(i))}}_getFirstLevelChildren(t){const e=Y.find(pf,this._config.parent);return Y.find(t,this._config.parent).filter(i=>!e.includes(i))}_addAriaAndCollapsedClass(t,e){if(t.length)for(const i of t)i.classList.toggle(ff,!e),i.setAttribute("aria-expanded",e)}static jQueryInterface(t){const e={};return typeof t=="string"&&/show|hide/.test(t)&&(e.toggle=!1),this.each(function(){const i=Fn.getOrCreateInstance(this,e);if(typeof t=="string"){if(typeof i[t]>"u")throw new TypeError(`No method named "${t}"`);i[t]()}})}}H.on(document,df,ro,function(n){(n.target.tagName==="A"||n.delegateTarget&&n.delegateTarget.tagName==="A")&&n.preventDefault();for(const t of Y.getMultipleElementsFromSelector(this))Fn.getOrCreateInstance(t,{toggle:!1}).toggle()});It(Fn);const Pr="dropdown",Ef="bs.dropdown",ze=`.${Ef}`,qo=".data-api",xf="Escape",Rr="Tab",wf="ArrowUp",Ir="ArrowDown",Af=2,Sf=`hide${ze}`,Cf=`hidden${ze}`,Tf=`show${ze}`,Of=`shown${ze}`,Sc=`click${ze}${qo}`,Cc=`keydown${ze}${qo}`,Df=`keyup${ze}${qo}`,Je="show",Mf="dropup",kf="dropend",Lf="dropstart",Pf="dropup-center",Rf="dropdown-center",Me='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',If=`${Me}.${Je}`,Mi=".dropdown-menu",Nf=".navbar",Ff=".navbar-nav",$f=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",Bf=Pt()?"top-end":"top-start",Hf=Pt()?"top-start":"top-end",zf=Pt()?"bottom-end":"bottom-start",Vf=Pt()?"bottom-start":"bottom-end",jf=Pt()?"left-start":"right-start",Wf=Pt()?"right-start":"left-start",qf="top",Yf="bottom",Uf={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},Kf={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class jt extends $t{constructor(t,e){super(t,e),this._popper=null,this._parent=this._element.parentNode,this._menu=Y.next(this._element,Mi)[0]||Y.prev(this._element,Mi)[0]||Y.findOne(Mi,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return Uf}static get DefaultType(){return Kf}static get NAME(){return Pr}toggle(){return this._isShown()?this.hide():this.show()}show(){if(me(this._element)||this._isShown())return;const t={relatedTarget:this._element};if(!H.trigger(this._element,Tf,t).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(Ff))for(const i of[].concat(...document.body.children))H.on(i,"mouseover",Wi);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(Je),this._element.classList.add(Je),H.trigger(this._element,Of,t)}}hide(){if(me(this._element)||!this._isShown())return;const t={relatedTarget:this._element};this._completeHide(t)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(t){if(!H.trigger(this._element,Sf,t).defaultPrevented){if("ontouchstart"in document.documentElement)for(const i of[].concat(...document.body.children))H.off(i,"mouseover",Wi);this._popper&&this._popper.destroy(),this._menu.classList.remove(Je),this._element.classList.remove(Je),this._element.setAttribute("aria-expanded","false"),se.removeDataAttribute(this._menu,"popper"),H.trigger(this._element,Cf,t)}}_getConfig(t){if(t=super._getConfig(t),typeof t.reference=="object"&&!ie(t.reference)&&typeof t.reference.getBoundingClientRect!="function")throw new TypeError(`${Pr.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(){if(typeof lc>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let t=this._element;this._config.reference==="parent"?t=this._parent:ie(this._config.reference)?t=ge(this._config.reference):typeof this._config.reference=="object"&&(t=this._config.reference);const e=this._getPopperConfig();this._popper=Vo(t,this._menu,e)}_isShown(){return this._menu.classList.contains(Je)}_getPlacement(){const t=this._parent;if(t.classList.contains(kf))return jf;if(t.classList.contains(Lf))return Wf;if(t.classList.contains(Pf))return qf;if(t.classList.contains(Rf))return Yf;const e=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return t.classList.contains(Mf)?e?Hf:Bf:e?Vf:zf}_detectNavbar(){return this._element.closest(Nf)!==null}_getOffset(){const{offset:t}=this._config;return typeof t=="string"?t.split(",").map(e=>Number.parseInt(e,10)):typeof t=="function"?e=>t(e,this._element):t}_getPopperConfig(){const t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(se.setDataAttribute(this._menu,"popper","static"),t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,...Et(this._config.popperConfig,[t])}}_selectMenuItem({key:t,target:e}){const i=Y.find($f,this._menu).filter(s=>fn(s));i.length&&jo(i,e,t===Ir,!i.includes(e)).focus()}static jQueryInterface(t){return this.each(function(){const e=jt.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof e[t]>"u")throw new TypeError(`No method named "${t}"`);e[t]()}})}static clearMenus(t){if(t.button===Af||t.type==="keyup"&&t.key!==Rr)return;const e=Y.find(If);for(const i of e){const s=jt.getInstance(i);if(!s||s._config.autoClose===!1)continue;const o=t.composedPath(),r=o.includes(s._menu);if(o.includes(s._element)||s._config.autoClose==="inside"&&!r||s._config.autoClose==="outside"&&r||s._menu.contains(t.target)&&(t.type==="keyup"&&t.key===Rr||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;const a={relatedTarget:s._element};t.type==="click"&&(a.clickEvent=t),s._completeHide(a)}}static dataApiKeydownHandler(t){const e=/input|textarea/i.test(t.target.tagName),i=t.key===xf,s=[wf,Ir].includes(t.key);if(!s&&!i||e&&!i)return;t.preventDefault();const o=this.matches(Me)?this:Y.prev(this,Me)[0]||Y.next(this,Me)[0]||Y.findOne(Me,t.delegateTarget.parentNode),r=jt.getOrCreateInstance(o);if(s){t.stopPropagation(),r.show(),r._selectMenuItem(t);return}r._isShown()&&(t.stopPropagation(),r.hide(),o.focus())}}H.on(document,Cc,Me,jt.dataApiKeydownHandler);H.on(document,Cc,Mi,jt.dataApiKeydownHandler);H.on(document,Sc,jt.clearMenus);H.on(document,Df,jt.clearMenus);H.on(document,Sc,Me,function(n){n.preventDefault(),jt.getOrCreateInstance(this).toggle()});It(jt);const Tc="backdrop",Gf="fade",Nr="show",Fr=`mousedown.bs.${Tc}`,Xf={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},Jf={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Oc extends Gn{constructor(t){super(),this._config=this._getConfig(t),this._isAppended=!1,this._element=null}static get Default(){return Xf}static get DefaultType(){return Jf}static get NAME(){return Tc}show(t){if(!this._config.isVisible){Et(t);return}this._append();const e=this._getElement();this._config.isAnimated&&Kn(e),e.classList.add(Nr),this._emulateAnimation(()=>{Et(t)})}hide(t){if(!this._config.isVisible){Et(t);return}this._getElement().classList.remove(Nr),this._emulateAnimation(()=>{this.dispose(),Et(t)})}dispose(){this._isAppended&&(H.off(this._element,Fr),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const t=document.createElement("div");t.className=this._config.className,this._config.isAnimated&&t.classList.add(Gf),this._element=t}return this._element}_configAfterMerge(t){return t.rootElement=ge(t.rootElement),t}_append(){if(this._isAppended)return;const t=this._getElement();this._config.rootElement.append(t),H.on(t,Fr,()=>{Et(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(t){fc(t,this._getElement(),this._config.isAnimated)}}const Zf="focustrap",Qf="bs.focustrap",Yi=`.${Qf}`,tp=`focusin${Yi}`,ep=`keydown.tab${Yi}`,np="Tab",ip="forward",$r="backward",sp={autofocus:!0,trapElement:null},op={autofocus:"boolean",trapElement:"element"};class Dc extends Gn{constructor(t){super(),this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return sp}static get DefaultType(){return op}static get NAME(){return Zf}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),H.off(document,Yi),H.on(document,tp,t=>this._handleFocusin(t)),H.on(document,ep,t=>this._handleKeydown(t)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,H.off(document,Yi))}_handleFocusin(t){const{trapElement:e}=this._config;if(t.target===document||t.target===e||e.contains(t.target))return;const i=Y.focusableChildren(e);i.length===0?e.focus():this._lastTabNavDirection===$r?i[i.length-1].focus():i[0].focus()}_handleKeydown(t){t.key===np&&(this._lastTabNavDirection=t.shiftKey?$r:ip)}}const Br=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Hr=".sticky-top",ci="padding-right",zr="margin-right";class ao{constructor(){this._element=document.body}getWidth(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}hide(){const t=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,ci,e=>e+t),this._setElementAttributes(Br,ci,e=>e+t),this._setElementAttributes(Hr,zr,e=>e-t)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,ci),this._resetElementAttributes(Br,ci),this._resetElementAttributes(Hr,zr)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,e,i){const s=this.getWidth(),o=r=>{if(r!==this._element&&window.innerWidth>r.clientWidth+s)return;this._saveInitialAttribute(r,e);const a=window.getComputedStyle(r).getPropertyValue(e);r.style.setProperty(e,`${i(Number.parseFloat(a))}px`)};this._applyManipulationCallback(t,o)}_saveInitialAttribute(t,e){const i=t.style.getPropertyValue(e);i&&se.setDataAttribute(t,e,i)}_resetElementAttributes(t,e){const i=s=>{const o=se.getDataAttribute(s,e);if(o===null){s.style.removeProperty(e);return}se.removeDataAttribute(s,e),s.style.setProperty(e,o)};this._applyManipulationCallback(t,i)}_applyManipulationCallback(t,e){if(ie(t)){e(t);return}for(const i of Y.find(t,this._element))e(i)}}const rp="modal",ap="bs.modal",Rt=`.${ap}`,lp=".data-api",cp="Escape",up=`hide${Rt}`,hp=`hidePrevented${Rt}`,Mc=`hidden${Rt}`,kc=`show${Rt}`,dp=`shown${Rt}`,fp=`resize${Rt}`,pp=`click.dismiss${Rt}`,gp=`mousedown.dismiss${Rt}`,mp=`keydown.dismiss${Rt}`,_p=`click${Rt}${lp}`,Vr="modal-open",bp="fade",jr="show",ks="modal-static",yp=".modal.show",vp=".modal-dialog",Ep=".modal-body",xp='[data-bs-toggle="modal"]',wp={backdrop:!0,focus:!0,keyboard:!0},Ap={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class rn extends $t{constructor(t,e){super(t,e),this._dialog=Y.findOne(vp,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new ao,this._addEventListeners()}static get Default(){return wp}static get DefaultType(){return Ap}static get NAME(){return rp}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||this._isTransitioning||H.trigger(this._element,kc,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Vr),this._adjustDialog(),this._backdrop.show(()=>this._showElement(t)))}hide(){!this._isShown||this._isTransitioning||H.trigger(this._element,up).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(jr),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){H.off(window,Rt),H.off(this._dialog,Rt),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Oc({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Dc({trapElement:this._element})}_showElement(t){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const e=Y.findOne(Ep,this._dialog);e&&(e.scrollTop=0),Kn(this._element),this._element.classList.add(jr);const i=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,H.trigger(this._element,dp,{relatedTarget:t})};this._queueCallback(i,this._dialog,this._isAnimated())}_addEventListeners(){H.on(this._element,mp,t=>{if(t.key===cp){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),H.on(window,fp,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),H.on(this._element,gp,t=>{H.one(this._element,pp,e=>{if(!(this._element!==t.target||this._element!==e.target)){if(this._config.backdrop==="static"){this._triggerBackdropTransition();return}this._config.backdrop&&this.hide()}})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(Vr),this._resetAdjustments(),this._scrollBar.reset(),H.trigger(this._element,Mc)})}_isAnimated(){return this._element.classList.contains(bp)}_triggerBackdropTransition(){if(H.trigger(this._element,hp).defaultPrevented)return;const e=this._element.scrollHeight>document.documentElement.clientHeight,i=this._element.style.overflowY;i==="hidden"||this._element.classList.contains(ks)||(e||(this._element.style.overflowY="hidden"),this._element.classList.add(ks),this._queueCallback(()=>{this._element.classList.remove(ks),this._queueCallback(()=>{this._element.style.overflowY=i},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._scrollBar.getWidth(),i=e>0;if(i&&!t){const s=Pt()?"paddingLeft":"paddingRight";this._element.style[s]=`${e}px`}if(!i&&t){const s=Pt()?"paddingRight":"paddingLeft";this._element.style[s]=`${e}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,e){return this.each(function(){const i=rn.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof i[t]>"u")throw new TypeError(`No method named "${t}"`);i[t](e)}})}}H.on(document,_p,xp,function(n){const t=Y.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&n.preventDefault(),H.one(t,kc,s=>{s.defaultPrevented||H.one(t,Mc,()=>{fn(this)&&this.focus()})});const e=Y.findOne(yp);e&&rn.getInstance(e).hide(),rn.getOrCreateInstance(t).toggle(this)});os(rn);It(rn);const Sp="offcanvas",Cp="bs.offcanvas",re=`.${Cp}`,Lc=".data-api",Tp=`load${re}${Lc}`,Op="Escape",Wr="show",qr="showing",Yr="hiding",Dp="offcanvas-backdrop",Pc=".offcanvas.show",Mp=`show${re}`,kp=`shown${re}`,Lp=`hide${re}`,Ur=`hidePrevented${re}`,Rc=`hidden${re}`,Pp=`resize${re}`,Rp=`click${re}${Lc}`,Ip=`keydown.dismiss${re}`,Np='[data-bs-toggle="offcanvas"]',Fp={backdrop:!0,keyboard:!0,scroll:!1},$p={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class _e extends $t{constructor(t,e){super(t,e),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Fp}static get DefaultType(){return $p}static get NAME(){return Sp}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown||H.trigger(this._element,Mp,{relatedTarget:t}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new ao().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(qr);const i=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(Wr),this._element.classList.remove(qr),H.trigger(this._element,kp,{relatedTarget:t})};this._queueCallback(i,this._element,!0)}hide(){if(!this._isShown||H.trigger(this._element,Lp).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(Yr),this._backdrop.hide();const e=()=>{this._element.classList.remove(Wr,Yr),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new ao().reset(),H.trigger(this._element,Rc)};this._queueCallback(e,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const t=()=>{if(this._config.backdrop==="static"){H.trigger(this._element,Ur);return}this.hide()},e=!!this._config.backdrop;return new Oc({className:Dp,isVisible:e,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:e?t:null})}_initializeFocusTrap(){return new Dc({trapElement:this._element})}_addEventListeners(){H.on(this._element,Ip,t=>{if(t.key===Op){if(this._config.keyboard){this.hide();return}H.trigger(this._element,Ur)}})}static jQueryInterface(t){return this.each(function(){const e=_e.getOrCreateInstance(this,t);if(typeof t=="string"){if(e[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);e[t](this)}})}}H.on(document,Rp,Np,function(n){const t=Y.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&n.preventDefault(),me(this))return;H.one(t,Rc,()=>{fn(this)&&this.focus()});const e=Y.findOne(Pc);e&&e!==t&&_e.getInstance(e).hide(),_e.getOrCreateInstance(t).toggle(this)});H.on(window,Tp,()=>{for(const n of Y.find(Pc))_e.getOrCreateInstance(n).show()});H.on(window,Pp,()=>{for(const n of Y.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(n).position!=="fixed"&&_e.getOrCreateInstance(n).hide()});os(_e);It(_e);const Bp=/^aria-[\w-]*$/i,Ic={"*":["class","dir","id","lang","role",Bp],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},Hp=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),zp=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,Vp=(n,t)=>{const e=n.nodeName.toLowerCase();return t.includes(e)?Hp.has(e)?!!zp.test(n.nodeValue):!0:t.filter(i=>i instanceof RegExp).some(i=>i.test(e))};function jp(n,t,e){if(!n.length)return n;if(e&&typeof e=="function")return e(n);const s=new window.DOMParser().parseFromString(n,"text/html"),o=[].concat(...s.body.querySelectorAll("*"));for(const r of o){const a=r.nodeName.toLowerCase();if(!Object.keys(t).includes(a)){r.remove();continue}const l=[].concat(...r.attributes),c=[].concat(t["*"]||[],t[a]||[]);for(const u of l)Vp(u,c)||r.removeAttribute(u.nodeName)}return s.body.innerHTML}const Wp="TemplateFactory",qp={allowList:Ic,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"
"},Yp={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},Up={entry:"(string|element|function|null)",selector:"(string|element)"};class Kp extends Gn{constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return qp}static get DefaultType(){return Yp}static get NAME(){return Wp}getContent(){return Object.values(this._config.content).map(t=>this._resolvePossibleFunction(t)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(t){return this._checkContent(t),this._config.content={...this._config.content,...t},this}toHtml(){const t=document.createElement("div");t.innerHTML=this._maybeSanitize(this._config.template);for(const[s,o]of Object.entries(this._config.content))this._setContent(t,o,s);const e=t.children[0],i=this._resolvePossibleFunction(this._config.extraClass);return i&&e.classList.add(...i.split(" ")),e}_typeCheckConfig(t){super._typeCheckConfig(t),this._checkContent(t.content)}_checkContent(t){for(const[e,i]of Object.entries(t))super._typeCheckConfig({selector:e,entry:i},Up)}_setContent(t,e,i){const s=Y.findOne(i,t);if(s){if(e=this._resolvePossibleFunction(e),!e){s.remove();return}if(ie(e)){this._putElementInTemplate(ge(e),s);return}if(this._config.html){s.innerHTML=this._maybeSanitize(e);return}s.textContent=e}}_maybeSanitize(t){return this._config.sanitize?jp(t,this._config.allowList,this._config.sanitizeFn):t}_resolvePossibleFunction(t){return Et(t,[this])}_putElementInTemplate(t,e){if(this._config.html){e.innerHTML="",e.append(t);return}e.textContent=t.textContent}}const Gp="tooltip",Xp=new Set(["sanitize","allowList","sanitizeFn"]),Ls="fade",Jp="modal",ui="show",Zp=".tooltip-inner",Kr=`.${Jp}`,Gr="hide.bs.modal",_n="hover",Ps="focus",Qp="click",tg="manual",eg="hide",ng="hidden",ig="show",sg="shown",og="inserted",rg="click",ag="focusin",lg="focusout",cg="mouseenter",ug="mouseleave",hg={AUTO:"auto",TOP:"top",RIGHT:Pt()?"left":"right",BOTTOM:"bottom",LEFT:Pt()?"right":"left"},dg={allowList:Ic,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'',title:"",trigger:"hover focus"},fg={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};let ls=class Nc extends $t{constructor(t,e){if(typeof lc>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(t,e),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return dg}static get DefaultType(){return fg}static get NAME(){return Gp}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),H.off(this._element.closest(Kr),Gr,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!(this._isWithContent()&&this._isEnabled))return;const t=H.trigger(this._element,this.constructor.eventName(ig)),i=(hc(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(t.defaultPrevented||!i)return;this._disposePopper();const s=this._getTipElement();this._element.setAttribute("aria-describedby",s.getAttribute("id"));const{container:o}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(o.append(s),H.trigger(this._element,this.constructor.eventName(og))),this._popper=this._createPopper(s),s.classList.add(ui),"ontouchstart"in document.documentElement)for(const a of[].concat(...document.body.children))H.on(a,"mouseover",Wi);const r=()=>{H.trigger(this._element,this.constructor.eventName(sg)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(r,this.tip,this._isAnimated())}hide(){if(!this._isShown()||H.trigger(this._element,this.constructor.eventName(eg)).defaultPrevented)return;if(this._getTipElement().classList.remove(ui),"ontouchstart"in document.documentElement)for(const s of[].concat(...document.body.children))H.off(s,"mouseover",Wi);this._activeTrigger[Qp]=!1,this._activeTrigger[Ps]=!1,this._activeTrigger[_n]=!1,this._isHovered=null;const i=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),H.trigger(this._element,this.constructor.eventName(ng)))};this._queueCallback(i,this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(t){const e=this._getTemplateFactory(t).toHtml();if(!e)return null;e.classList.remove(Ls,ui),e.classList.add(`bs-${this.constructor.NAME}-auto`);const i=Zh(this.constructor.NAME).toString();return e.setAttribute("id",i),this._isAnimated()&&e.classList.add(Ls),e}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new Kp({...this._config,content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[Zp]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(t){return this.constructor.getOrCreateInstance(t.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(Ls)}_isShown(){return this.tip&&this.tip.classList.contains(ui)}_createPopper(t){const e=Et(this._config.placement,[this,t,this._element]),i=hg[e.toUpperCase()];return Vo(this._element,t,this._getPopperConfig(i))}_getOffset(){const{offset:t}=this._config;return typeof t=="string"?t.split(",").map(e=>Number.parseInt(e,10)):typeof t=="function"?e=>t(e,this._element):t}_resolvePossibleFunction(t){return Et(t,[this._element])}_getPopperConfig(t){const e={placement:t,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:i=>{this._getTipElement().setAttribute("data-popper-placement",i.state.placement)}}]};return{...e,...Et(this._config.popperConfig,[e])}}_setListeners(){const t=this._config.trigger.split(" ");for(const e of t)if(e==="click")H.on(this._element,this.constructor.eventName(rg),this._config.selector,i=>{this._initializeOnDelegatedTarget(i).toggle()});else if(e!==tg){const i=e===_n?this.constructor.eventName(cg):this.constructor.eventName(ag),s=e===_n?this.constructor.eventName(ug):this.constructor.eventName(lg);H.on(this._element,i,this._config.selector,o=>{const r=this._initializeOnDelegatedTarget(o);r._activeTrigger[o.type==="focusin"?Ps:_n]=!0,r._enter()}),H.on(this._element,s,this._config.selector,o=>{const r=this._initializeOnDelegatedTarget(o);r._activeTrigger[o.type==="focusout"?Ps:_n]=r._element.contains(o.relatedTarget),r._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},H.on(this._element.closest(Kr),Gr,this._hideModalHandler)}_fixTitle(){const t=this._element.getAttribute("title");t&&(!this._element.getAttribute("aria-label")&&!this._element.textContent.trim()&&this._element.setAttribute("aria-label",t),this._element.setAttribute("data-bs-original-title",t),this._element.removeAttribute("title"))}_enter(){if(this._isShown()||this._isHovered){this._isHovered=!0;return}this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show)}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(t,e){clearTimeout(this._timeout),this._timeout=setTimeout(t,e)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(t){const e=se.getDataAttributes(this._element);for(const i of Object.keys(e))Xp.has(i)&&delete e[i];return t={...e,...typeof t=="object"&&t?t:{}},t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t.container=t.container===!1?document.body:ge(t.container),typeof t.delay=="number"&&(t.delay={show:t.delay,hide:t.delay}),typeof t.title=="number"&&(t.title=t.title.toString()),typeof t.content=="number"&&(t.content=t.content.toString()),t}_getDelegateConfig(){const t={};for(const[e,i]of Object.entries(this._config))this.constructor.Default[e]!==i&&(t[e]=i);return t.selector=!1,t.trigger="manual",t}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(t){return this.each(function(){const e=Nc.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof e[t]>"u")throw new TypeError(`No method named "${t}"`);e[t]()}})}};It(ls);const pg="popover",gg=".popover-header",mg=".popover-body",_g={...ls.Default,content:"",offset:[0,8],placement:"right",template:'',trigger:"click"},bg={...ls.DefaultType,content:"(null|string|element|function)"};class Yo extends ls{static get Default(){return _g}static get DefaultType(){return bg}static get NAME(){return pg}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[gg]:this._getTitle(),[mg]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each(function(){const e=Yo.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof e[t]>"u")throw new TypeError(`No method named "${t}"`);e[t]()}})}}It(Yo);const yg="scrollspy",vg="bs.scrollspy",Uo=`.${vg}`,Eg=".data-api",xg=`activate${Uo}`,Xr=`click${Uo}`,wg=`load${Uo}${Eg}`,Ag="dropdown-item",Ye="active",Sg='[data-bs-spy="scroll"]',Rs="[href]",Cg=".nav, .list-group",Jr=".nav-link",Tg=".nav-item",Og=".list-group-item",Dg=`${Jr}, ${Tg} > ${Jr}, ${Og}`,Mg=".dropdown",kg=".dropdown-toggle",Lg={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},Pg={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class cs extends $t{constructor(t,e){super(t,e),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY==="visible"?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return Lg}static get DefaultType(){return Pg}static get NAME(){return yg}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const t of this._observableSections.values())this._observer.observe(t)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(t){return t.target=ge(t.target)||document.body,t.rootMargin=t.offset?`${t.offset}px 0px -30%`:t.rootMargin,typeof t.threshold=="string"&&(t.threshold=t.threshold.split(",").map(e=>Number.parseFloat(e))),t}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(H.off(this._config.target,Xr),H.on(this._config.target,Xr,Rs,t=>{const e=this._observableSections.get(t.target.hash);if(e){t.preventDefault();const i=this._rootElement||window,s=e.offsetTop-this._element.offsetTop;if(i.scrollTo){i.scrollTo({top:s,behavior:"smooth"});return}i.scrollTop=s}}))}_getNewObserver(){const t={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(e=>this._observerCallback(e),t)}_observerCallback(t){const e=r=>this._targetLinks.get(`#${r.target.id}`),i=r=>{this._previousScrollData.visibleEntryTop=r.target.offsetTop,this._process(e(r))},s=(this._rootElement||document.documentElement).scrollTop,o=s>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=s;for(const r of t){if(!r.isIntersecting){this._activeTarget=null,this._clearActiveClass(e(r));continue}const a=r.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(o&&a){if(i(r),!s)return;continue}!o&&!a&&i(r)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const t=Y.find(Rs,this._config.target);for(const e of t){if(!e.hash||me(e))continue;const i=Y.findOne(decodeURI(e.hash),this._element);fn(i)&&(this._targetLinks.set(decodeURI(e.hash),e),this._observableSections.set(e.hash,i))}}_process(t){this._activeTarget!==t&&(this._clearActiveClass(this._config.target),this._activeTarget=t,t.classList.add(Ye),this._activateParents(t),H.trigger(this._element,xg,{relatedTarget:t}))}_activateParents(t){if(t.classList.contains(Ag)){Y.findOne(kg,t.closest(Mg)).classList.add(Ye);return}for(const e of Y.parents(t,Cg))for(const i of Y.prev(e,Dg))i.classList.add(Ye)}_clearActiveClass(t){t.classList.remove(Ye);const e=Y.find(`${Rs}.${Ye}`,t);for(const i of e)i.classList.remove(Ye)}static jQueryInterface(t){return this.each(function(){const e=cs.getOrCreateInstance(this,t);if(typeof t=="string"){if(e[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);e[t]()}})}}H.on(window,wg,()=>{for(const n of Y.find(Sg))cs.getOrCreateInstance(n)});It(cs);const Rg="tab",Ig="bs.tab",Ve=`.${Ig}`,Ng=`hide${Ve}`,Fg=`hidden${Ve}`,$g=`show${Ve}`,Bg=`shown${Ve}`,Hg=`click${Ve}`,zg=`keydown${Ve}`,Vg=`load${Ve}`,jg="ArrowLeft",Zr="ArrowRight",Wg="ArrowUp",Qr="ArrowDown",Is="Home",ta="End",ke="active",ea="fade",Ns="show",qg="dropdown",Fc=".dropdown-toggle",Yg=".dropdown-menu",Fs=`:not(${Fc})`,Ug='.list-group, .nav, [role="tablist"]',Kg=".nav-item, .list-group-item",Gg=`.nav-link${Fs}, .list-group-item${Fs}, [role="tab"]${Fs}`,$c='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',$s=`${Gg}, ${$c}`,Xg=`.${ke}[data-bs-toggle="tab"], .${ke}[data-bs-toggle="pill"], .${ke}[data-bs-toggle="list"]`;class an extends $t{constructor(t){super(t),this._parent=this._element.closest(Ug),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),H.on(this._element,zg,e=>this._keydown(e)))}static get NAME(){return Rg}show(){const t=this._element;if(this._elemIsActive(t))return;const e=this._getActiveElem(),i=e?H.trigger(e,Ng,{relatedTarget:t}):null;H.trigger(t,$g,{relatedTarget:e}).defaultPrevented||i&&i.defaultPrevented||(this._deactivate(e,t),this._activate(t,e))}_activate(t,e){if(!t)return;t.classList.add(ke),this._activate(Y.getElementFromSelector(t));const i=()=>{if(t.getAttribute("role")!=="tab"){t.classList.add(Ns);return}t.removeAttribute("tabindex"),t.setAttribute("aria-selected",!0),this._toggleDropDown(t,!0),H.trigger(t,Bg,{relatedTarget:e})};this._queueCallback(i,t,t.classList.contains(ea))}_deactivate(t,e){if(!t)return;t.classList.remove(ke),t.blur(),this._deactivate(Y.getElementFromSelector(t));const i=()=>{if(t.getAttribute("role")!=="tab"){t.classList.remove(Ns);return}t.setAttribute("aria-selected",!1),t.setAttribute("tabindex","-1"),this._toggleDropDown(t,!1),H.trigger(t,Fg,{relatedTarget:e})};this._queueCallback(i,t,t.classList.contains(ea))}_keydown(t){if(![jg,Zr,Wg,Qr,Is,ta].includes(t.key))return;t.stopPropagation(),t.preventDefault();const e=this._getChildren().filter(s=>!me(s));let i;if([Is,ta].includes(t.key))i=e[t.key===Is?0:e.length-1];else{const s=[Zr,Qr].includes(t.key);i=jo(e,t.target,s,!0)}i&&(i.focus({preventScroll:!0}),an.getOrCreateInstance(i).show())}_getChildren(){return Y.find($s,this._parent)}_getActiveElem(){return this._getChildren().find(t=>this._elemIsActive(t))||null}_setInitialAttributes(t,e){this._setAttributeIfNotExists(t,"role","tablist");for(const i of e)this._setInitialAttributesOnChild(i)}_setInitialAttributesOnChild(t){t=this._getInnerElement(t);const e=this._elemIsActive(t),i=this._getOuterElement(t);t.setAttribute("aria-selected",e),i!==t&&this._setAttributeIfNotExists(i,"role","presentation"),e||t.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(t,"role","tab"),this._setInitialAttributesOnTargetPanel(t)}_setInitialAttributesOnTargetPanel(t){const e=Y.getElementFromSelector(t);e&&(this._setAttributeIfNotExists(e,"role","tabpanel"),t.id&&this._setAttributeIfNotExists(e,"aria-labelledby",`${t.id}`))}_toggleDropDown(t,e){const i=this._getOuterElement(t);if(!i.classList.contains(qg))return;const s=(o,r)=>{const a=Y.findOne(o,i);a&&a.classList.toggle(r,e)};s(Fc,ke),s(Yg,Ns),i.setAttribute("aria-expanded",e)}_setAttributeIfNotExists(t,e,i){t.hasAttribute(e)||t.setAttribute(e,i)}_elemIsActive(t){return t.classList.contains(ke)}_getInnerElement(t){return t.matches($s)?t:Y.findOne($s,t)}_getOuterElement(t){return t.closest(Kg)||t}static jQueryInterface(t){return this.each(function(){const e=an.getOrCreateInstance(this);if(typeof t=="string"){if(e[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);e[t]()}})}}H.on(document,Hg,$c,function(n){["A","AREA"].includes(this.tagName)&&n.preventDefault(),!me(this)&&an.getOrCreateInstance(this).show()});H.on(window,Vg,()=>{for(const n of Y.find(Xg))an.getOrCreateInstance(n)});It(an);const Jg="toast",Zg="bs.toast",xe=`.${Zg}`,Qg=`mouseover${xe}`,tm=`mouseout${xe}`,em=`focusin${xe}`,nm=`focusout${xe}`,im=`hide${xe}`,sm=`hidden${xe}`,om=`show${xe}`,rm=`shown${xe}`,am="fade",na="hide",hi="show",di="showing",lm={animation:"boolean",autohide:"boolean",delay:"number"},cm={animation:!0,autohide:!0,delay:5e3};class us extends $t{constructor(t,e){super(t,e),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return cm}static get DefaultType(){return lm}static get NAME(){return Jg}show(){if(H.trigger(this._element,om).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(am);const e=()=>{this._element.classList.remove(di),H.trigger(this._element,rm),this._maybeScheduleHide()};this._element.classList.remove(na),Kn(this._element),this._element.classList.add(hi,di),this._queueCallback(e,this._element,this._config.animation)}hide(){if(!this.isShown()||H.trigger(this._element,im).defaultPrevented)return;const e=()=>{this._element.classList.add(na),this._element.classList.remove(di,hi),H.trigger(this._element,sm)};this._element.classList.add(di),this._queueCallback(e,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(hi),super.dispose()}isShown(){return this._element.classList.contains(hi)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(t,e){switch(t.type){case"mouseover":case"mouseout":{this._hasMouseInteraction=e;break}case"focusin":case"focusout":{this._hasKeyboardInteraction=e;break}}if(e){this._clearTimeout();return}const i=t.relatedTarget;this._element===i||this._element.contains(i)||this._maybeScheduleHide()}_setListeners(){H.on(this._element,Qg,t=>this._onInteraction(t,!0)),H.on(this._element,tm,t=>this._onInteraction(t,!1)),H.on(this._element,em,t=>this._onInteraction(t,!0)),H.on(this._element,nm,t=>this._onInteraction(t,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each(function(){const e=us.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof e[t]>"u")throw new TypeError(`No method named "${t}"`);e[t](this)}})}}os(us);It(us);function Bc(n,t){return function(){return n.apply(t,arguments)}}const{toString:um}=Object.prototype,{getPrototypeOf:Ko}=Object,hs=(n=>t=>{const e=um.call(t);return n[e]||(n[e]=e.slice(8,-1).toLowerCase())})(Object.create(null)),Yt=n=>(n=n.toLowerCase(),t=>hs(t)===n),ds=n=>t=>typeof t===n,{isArray:gn}=Array,$n=ds("undefined");function hm(n){return n!==null&&!$n(n)&&n.constructor!==null&&!$n(n.constructor)&&kt(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const Hc=Yt("ArrayBuffer");function dm(n){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(n):t=n&&n.buffer&&Hc(n.buffer),t}const fm=ds("string"),kt=ds("function"),zc=ds("number"),fs=n=>n!==null&&typeof n=="object",pm=n=>n===!0||n===!1,ki=n=>{if(hs(n)!=="object")return!1;const t=Ko(n);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)},gm=Yt("Date"),mm=Yt("File"),_m=Yt("Blob"),bm=Yt("FileList"),ym=n=>fs(n)&&kt(n.pipe),vm=n=>{let t;return n&&(typeof FormData=="function"&&n instanceof FormData||kt(n.append)&&((t=hs(n))==="formdata"||t==="object"&&kt(n.toString)&&n.toString()==="[object FormData]"))},Em=Yt("URLSearchParams"),xm=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Zn(n,t,{allOwnKeys:e=!1}={}){if(n===null||typeof n>"u")return;let i,s;if(typeof n!="object"&&(n=[n]),gn(n))for(i=0,s=n.length;i0;)if(s=e[i],t===s.toLowerCase())return s;return null}const jc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Wc=n=>!$n(n)&&n!==jc;function lo(){const{caseless:n}=Wc(this)&&this||{},t={},e=(i,s)=>{const o=n&&Vc(t,s)||s;ki(t[o])&&ki(i)?t[o]=lo(t[o],i):ki(i)?t[o]=lo({},i):gn(i)?t[o]=i.slice():t[o]=i};for(let i=0,s=arguments.length;i(Zn(t,(s,o)=>{e&&kt(s)?n[o]=Bc(s,e):n[o]=s},{allOwnKeys:i}),n),Am=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),Sm=(n,t,e,i)=>{n.prototype=Object.create(t.prototype,i),n.prototype.constructor=n,Object.defineProperty(n,"super",{value:t.prototype}),e&&Object.assign(n.prototype,e)},Cm=(n,t,e,i)=>{let s,o,r;const a={};if(t=t||{},n==null)return t;do{for(s=Object.getOwnPropertyNames(n),o=s.length;o-- >0;)r=s[o],(!i||i(r,n,t))&&!a[r]&&(t[r]=n[r],a[r]=!0);n=e!==!1&&Ko(n)}while(n&&(!e||e(n,t))&&n!==Object.prototype);return t},Tm=(n,t,e)=>{n=String(n),(e===void 0||e>n.length)&&(e=n.length),e-=t.length;const i=n.indexOf(t,e);return i!==-1&&i===e},Om=n=>{if(!n)return null;if(gn(n))return n;let t=n.length;if(!zc(t))return null;const e=new Array(t);for(;t-- >0;)e[t]=n[t];return e},Dm=(n=>t=>n&&t instanceof n)(typeof Uint8Array<"u"&&Ko(Uint8Array)),Mm=(n,t)=>{const i=(n&&n[Symbol.iterator]).call(n);let s;for(;(s=i.next())&&!s.done;){const o=s.value;t.call(n,o[0],o[1])}},km=(n,t)=>{let e;const i=[];for(;(e=n.exec(t))!==null;)i.push(e);return i},Lm=Yt("HTMLFormElement"),Pm=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,i,s){return i.toUpperCase()+s}),ia=(({hasOwnProperty:n})=>(t,e)=>n.call(t,e))(Object.prototype),Rm=Yt("RegExp"),qc=(n,t)=>{const e=Object.getOwnPropertyDescriptors(n),i={};Zn(e,(s,o)=>{let r;(r=t(s,o,n))!==!1&&(i[o]=r||s)}),Object.defineProperties(n,i)},Im=n=>{qc(n,(t,e)=>{if(kt(n)&&["arguments","caller","callee"].indexOf(e)!==-1)return!1;const i=n[e];if(kt(i)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+e+"'")})}})},Nm=(n,t)=>{const e={},i=s=>{s.forEach(o=>{e[o]=!0})};return gn(n)?i(n):i(String(n).split(t)),e},Fm=()=>{},$m=(n,t)=>(n=+n,Number.isFinite(n)?n:t),Bs="abcdefghijklmnopqrstuvwxyz",sa="0123456789",Yc={DIGIT:sa,ALPHA:Bs,ALPHA_DIGIT:Bs+Bs.toUpperCase()+sa},Bm=(n=16,t=Yc.ALPHA_DIGIT)=>{let e="";const{length:i}=t;for(;n--;)e+=t[Math.random()*i|0];return e};function Hm(n){return!!(n&&kt(n.append)&&n[Symbol.toStringTag]==="FormData"&&n[Symbol.iterator])}const zm=n=>{const t=new Array(10),e=(i,s)=>{if(fs(i)){if(t.indexOf(i)>=0)return;if(!("toJSON"in i)){t[s]=i;const o=gn(i)?[]:{};return Zn(i,(r,a)=>{const l=e(r,s+1);!$n(l)&&(o[a]=l)}),t[s]=void 0,o}}return i};return e(n,0)},Vm=Yt("AsyncFunction"),jm=n=>n&&(fs(n)||kt(n))&&kt(n.then)&&kt(n.catch),R={isArray:gn,isArrayBuffer:Hc,isBuffer:hm,isFormData:vm,isArrayBufferView:dm,isString:fm,isNumber:zc,isBoolean:pm,isObject:fs,isPlainObject:ki,isUndefined:$n,isDate:gm,isFile:mm,isBlob:_m,isRegExp:Rm,isFunction:kt,isStream:ym,isURLSearchParams:Em,isTypedArray:Dm,isFileList:bm,forEach:Zn,merge:lo,extend:wm,trim:xm,stripBOM:Am,inherits:Sm,toFlatObject:Cm,kindOf:hs,kindOfTest:Yt,endsWith:Tm,toArray:Om,forEachEntry:Mm,matchAll:km,isHTMLForm:Lm,hasOwnProperty:ia,hasOwnProp:ia,reduceDescriptors:qc,freezeMethods:Im,toObjectSet:Nm,toCamelCase:Pm,noop:Fm,toFiniteNumber:$m,findKey:Vc,global:jc,isContextDefined:Wc,ALPHABET:Yc,generateString:Bm,isSpecCompliantForm:Hm,toJSONObject:zm,isAsyncFn:Vm,isThenable:jm};function Z(n,t,e,i,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=n,this.name="AxiosError",t&&(this.code=t),e&&(this.config=e),i&&(this.request=i),s&&(this.response=s)}R.inherits(Z,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:R.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Uc=Z.prototype,Kc={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(n=>{Kc[n]={value:n}});Object.defineProperties(Z,Kc);Object.defineProperty(Uc,"isAxiosError",{value:!0});Z.from=(n,t,e,i,s,o)=>{const r=Object.create(Uc);return R.toFlatObject(n,r,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),Z.call(r,n.message,t,e,i,s),r.cause=n,r.name=n.name,o&&Object.assign(r,o),r};const Wm=null;function co(n){return R.isPlainObject(n)||R.isArray(n)}function Gc(n){return R.endsWith(n,"[]")?n.slice(0,-2):n}function oa(n,t,e){return n?n.concat(t).map(function(s,o){return s=Gc(s),!e&&o?"["+s+"]":s}).join(e?".":""):t}function qm(n){return R.isArray(n)&&!n.some(co)}const Ym=R.toFlatObject(R,{},null,function(t){return/^is[A-Z]/.test(t)});function ps(n,t,e){if(!R.isObject(n))throw new TypeError("target must be an object");t=t||new FormData,e=R.toFlatObject(e,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,_){return!R.isUndefined(_[g])});const i=e.metaTokens,s=e.visitor||u,o=e.dots,r=e.indexes,l=(e.Blob||typeof Blob<"u"&&Blob)&&R.isSpecCompliantForm(t);if(!R.isFunction(s))throw new TypeError("visitor must be a function");function c(p){if(p===null)return"";if(R.isDate(p))return p.toISOString();if(!l&&R.isBlob(p))throw new Z("Blob is not supported. Use a Buffer instead.");return R.isArrayBuffer(p)||R.isTypedArray(p)?l&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function u(p,g,_){let b=p;if(p&&!_&&typeof p=="object"){if(R.endsWith(g,"{}"))g=i?g:g.slice(0,-2),p=JSON.stringify(p);else if(R.isArray(p)&&qm(p)||(R.isFileList(p)||R.endsWith(g,"[]"))&&(b=R.toArray(p)))return g=Gc(g),b.forEach(function(w,x){!(R.isUndefined(w)||w===null)&&t.append(r===!0?oa([g],x,o):r===null?g:g+"[]",c(w))}),!1}return co(p)?!0:(t.append(oa(_,g,o),c(p)),!1)}const h=[],d=Object.assign(Ym,{defaultVisitor:u,convertValue:c,isVisitable:co});function f(p,g){if(!R.isUndefined(p)){if(h.indexOf(p)!==-1)throw Error("Circular reference detected in "+g.join("."));h.push(p),R.forEach(p,function(b,v){(!(R.isUndefined(b)||b===null)&&s.call(t,b,R.isString(v)?v.trim():v,g,d))===!0&&f(b,g?g.concat(v):[v])}),h.pop()}}if(!R.isObject(n))throw new TypeError("data must be an object");return f(n),t}function ra(n){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(i){return t[i]})}function Go(n,t){this._pairs=[],n&&ps(n,this,t)}const Xc=Go.prototype;Xc.append=function(t,e){this._pairs.push([t,e])};Xc.toString=function(t){const e=t?function(i){return t.call(this,i,ra)}:ra;return this._pairs.map(function(s){return e(s[0])+"="+e(s[1])},"").join("&")};function Um(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Jc(n,t,e){if(!t)return n;const i=e&&e.encode||Um,s=e&&e.serialize;let o;if(s?o=s(t,e):o=R.isURLSearchParams(t)?t.toString():new Go(t,e).toString(i),o){const r=n.indexOf("#");r!==-1&&(n=n.slice(0,r)),n+=(n.indexOf("?")===-1?"?":"&")+o}return n}class aa{constructor(){this.handlers=[]}use(t,e,i){return this.handlers.push({fulfilled:t,rejected:e,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){R.forEach(this.handlers,function(i){i!==null&&t(i)})}}const Zc={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Km=typeof URLSearchParams<"u"?URLSearchParams:Go,Gm=typeof FormData<"u"?FormData:null,Xm=typeof Blob<"u"?Blob:null,Jm={isBrowser:!0,classes:{URLSearchParams:Km,FormData:Gm,Blob:Xm},protocols:["http","https","file","blob","url","data"]},Qc=typeof window<"u"&&typeof document<"u",Zm=(n=>Qc&&["ReactNative","NativeScript","NS"].indexOf(n)<0)(typeof navigator<"u"&&navigator.product),Qm=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",t_=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Qc,hasStandardBrowserEnv:Zm,hasStandardBrowserWebWorkerEnv:Qm},Symbol.toStringTag,{value:"Module"})),zt={...t_,...Jm};function e_(n,t){return ps(n,new zt.classes.URLSearchParams,Object.assign({visitor:function(e,i,s,o){return zt.isNode&&R.isBuffer(e)?(this.append(i,e.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function n_(n){return R.matchAll(/\w+|\[(\w*)]/g,n).map(t=>t[0]==="[]"?"":t[1]||t[0])}function i_(n){const t={},e=Object.keys(n);let i;const s=e.length;let o;for(i=0;i=e.length;return r=!r&&R.isArray(s)?s.length:r,l?(R.hasOwnProp(s,r)?s[r]=[s[r],i]:s[r]=i,!a):((!s[r]||!R.isObject(s[r]))&&(s[r]=[]),t(e,i,s[r],o)&&R.isArray(s[r])&&(s[r]=i_(s[r])),!a)}if(R.isFormData(n)&&R.isFunction(n.entries)){const e={};return R.forEachEntry(n,(i,s)=>{t(n_(i),s,e,0)}),e}return null}function s_(n,t,e){if(R.isString(n))try{return(t||JSON.parse)(n),R.trim(n)}catch(i){if(i.name!=="SyntaxError")throw i}return(e||JSON.stringify)(n)}const Qn={transitional:Zc,adapter:["xhr","http"],transformRequest:[function(t,e){const i=e.getContentType()||"",s=i.indexOf("application/json")>-1,o=R.isObject(t);if(o&&R.isHTMLForm(t)&&(t=new FormData(t)),R.isFormData(t))return s?JSON.stringify(tu(t)):t;if(R.isArrayBuffer(t)||R.isBuffer(t)||R.isStream(t)||R.isFile(t)||R.isBlob(t))return t;if(R.isArrayBufferView(t))return t.buffer;if(R.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(o){if(i.indexOf("application/x-www-form-urlencoded")>-1)return e_(t,this.formSerializer).toString();if((a=R.isFileList(t))||i.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return ps(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||s?(e.setContentType("application/json",!1),s_(t)):t}],transformResponse:[function(t){const e=this.transitional||Qn.transitional,i=e&&e.forcedJSONParsing,s=this.responseType==="json";if(t&&R.isString(t)&&(i&&!this.responseType||s)){const r=!(e&&e.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(a){if(r)throw a.name==="SyntaxError"?Z.from(a,Z.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:zt.classes.FormData,Blob:zt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};R.forEach(["delete","get","head","post","put","patch"],n=>{Qn.headers[n]={}});const o_=R.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),r_=n=>{const t={};let e,i,s;return n&&n.split(` +`).forEach(function(r){s=r.indexOf(":"),e=r.substring(0,s).trim().toLowerCase(),i=r.substring(s+1).trim(),!(!e||t[e]&&o_[e])&&(e==="set-cookie"?t[e]?t[e].push(i):t[e]=[i]:t[e]=t[e]?t[e]+", "+i:i)}),t},la=Symbol("internals");function bn(n){return n&&String(n).trim().toLowerCase()}function Li(n){return n===!1||n==null?n:R.isArray(n)?n.map(Li):String(n)}function a_(n){const t=Object.create(null),e=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=e.exec(n);)t[i[1]]=i[2];return t}const l_=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function Hs(n,t,e,i,s){if(R.isFunction(i))return i.call(this,t,e);if(s&&(t=e),!!R.isString(t)){if(R.isString(i))return t.indexOf(i)!==-1;if(R.isRegExp(i))return i.test(t)}}function c_(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,e,i)=>e.toUpperCase()+i)}function u_(n,t){const e=R.toCamelCase(" "+t);["get","set","has"].forEach(i=>{Object.defineProperty(n,i+e,{value:function(s,o,r){return this[i].call(this,t,s,o,r)},configurable:!0})})}class Lt{constructor(t){t&&this.set(t)}set(t,e,i){const s=this;function o(a,l,c){const u=bn(l);if(!u)throw new Error("header name must be a non-empty string");const h=R.findKey(s,u);(!h||s[h]===void 0||c===!0||c===void 0&&s[h]!==!1)&&(s[h||l]=Li(a))}const r=(a,l)=>R.forEach(a,(c,u)=>o(c,u,l));return R.isPlainObject(t)||t instanceof this.constructor?r(t,e):R.isString(t)&&(t=t.trim())&&!l_(t)?r(r_(t),e):t!=null&&o(e,t,i),this}get(t,e){if(t=bn(t),t){const i=R.findKey(this,t);if(i){const s=this[i];if(!e)return s;if(e===!0)return a_(s);if(R.isFunction(e))return e.call(this,s,i);if(R.isRegExp(e))return e.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=bn(t),t){const i=R.findKey(this,t);return!!(i&&this[i]!==void 0&&(!e||Hs(this,this[i],i,e)))}return!1}delete(t,e){const i=this;let s=!1;function o(r){if(r=bn(r),r){const a=R.findKey(i,r);a&&(!e||Hs(i,i[a],a,e))&&(delete i[a],s=!0)}}return R.isArray(t)?t.forEach(o):o(t),s}clear(t){const e=Object.keys(this);let i=e.length,s=!1;for(;i--;){const o=e[i];(!t||Hs(this,this[o],o,t,!0))&&(delete this[o],s=!0)}return s}normalize(t){const e=this,i={};return R.forEach(this,(s,o)=>{const r=R.findKey(i,o);if(r){e[r]=Li(s),delete e[o];return}const a=t?c_(o):String(o).trim();a!==o&&delete e[o],e[a]=Li(s),i[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return R.forEach(this,(i,s)=>{i!=null&&i!==!1&&(e[s]=t&&R.isArray(i)?i.join(", "):i)}),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,e])=>t+": "+e).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const i=new this(t);return e.forEach(s=>i.set(s)),i}static accessor(t){const i=(this[la]=this[la]={accessors:{}}).accessors,s=this.prototype;function o(r){const a=bn(r);i[a]||(u_(s,r),i[a]=!0)}return R.isArray(t)?t.forEach(o):o(t),this}}Lt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);R.reduceDescriptors(Lt.prototype,({value:n},t)=>{let e=t[0].toUpperCase()+t.slice(1);return{get:()=>n,set(i){this[e]=i}}});R.freezeMethods(Lt);function zs(n,t){const e=this||Qn,i=t||e,s=Lt.from(i.headers);let o=i.data;return R.forEach(n,function(a){o=a.call(e,o,s.normalize(),t?t.status:void 0)}),s.normalize(),o}function eu(n){return!!(n&&n.__CANCEL__)}function ti(n,t,e){Z.call(this,n??"canceled",Z.ERR_CANCELED,t,e),this.name="CanceledError"}R.inherits(ti,Z,{__CANCEL__:!0});function h_(n,t,e){const i=e.config.validateStatus;!e.status||!i||i(e.status)?n(e):t(new Z("Request failed with status code "+e.status,[Z.ERR_BAD_REQUEST,Z.ERR_BAD_RESPONSE][Math.floor(e.status/100)-4],e.config,e.request,e))}const d_=zt.hasStandardBrowserEnv?{write(n,t,e,i,s,o){const r=[n+"="+encodeURIComponent(t)];R.isNumber(e)&&r.push("expires="+new Date(e).toGMTString()),R.isString(i)&&r.push("path="+i),R.isString(s)&&r.push("domain="+s),o===!0&&r.push("secure"),document.cookie=r.join("; ")},read(n){const t=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(n){this.write(n,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function f_(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function p_(n,t){return t?n.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):n}function nu(n,t){return n&&!f_(t)?p_(n,t):t}const g_=zt.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),e=document.createElement("a");let i;function s(o){let r=o;return t&&(e.setAttribute("href",r),r=e.href),e.setAttribute("href",r),{href:e.href,protocol:e.protocol?e.protocol.replace(/:$/,""):"",host:e.host,search:e.search?e.search.replace(/^\?/,""):"",hash:e.hash?e.hash.replace(/^#/,""):"",hostname:e.hostname,port:e.port,pathname:e.pathname.charAt(0)==="/"?e.pathname:"/"+e.pathname}}return i=s(window.location.href),function(r){const a=R.isString(r)?s(r):r;return a.protocol===i.protocol&&a.host===i.host}}():function(){return function(){return!0}}();function m_(n){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return t&&t[1]||""}function __(n,t){n=n||10;const e=new Array(n),i=new Array(n);let s=0,o=0,r;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=i[o];r||(r=c),e[s]=l,i[s]=c;let h=o,d=0;for(;h!==s;)d+=e[h++],h=h%n;if(s=(s+1)%n,s===o&&(o=(o+1)%n),c-r{const o=s.loaded,r=s.lengthComputable?s.total:void 0,a=o-e,l=i(a),c=o<=r;e=o;const u={loaded:o,total:r,progress:r?o/r:void 0,bytes:a,rate:l||void 0,estimated:l&&r&&c?(r-o)/l:void 0,event:s};u[t?"download":"upload"]=!0,n(u)}}const b_=typeof XMLHttpRequest<"u",y_=b_&&function(n){return new Promise(function(e,i){let s=n.data;const o=Lt.from(n.headers).normalize();let{responseType:r,withXSRFToken:a}=n,l;function c(){n.cancelToken&&n.cancelToken.unsubscribe(l),n.signal&&n.signal.removeEventListener("abort",l)}let u;if(R.isFormData(s)){if(zt.hasStandardBrowserEnv||zt.hasStandardBrowserWebWorkerEnv)o.setContentType(!1);else if((u=o.getContentType())!==!1){const[g,..._]=u?u.split(";").map(b=>b.trim()).filter(Boolean):[];o.setContentType([g||"multipart/form-data",..._].join("; "))}}let h=new XMLHttpRequest;if(n.auth){const g=n.auth.username||"",_=n.auth.password?unescape(encodeURIComponent(n.auth.password)):"";o.set("Authorization","Basic "+btoa(g+":"+_))}const d=nu(n.baseURL,n.url);h.open(n.method.toUpperCase(),Jc(d,n.params,n.paramsSerializer),!0),h.timeout=n.timeout;function f(){if(!h)return;const g=Lt.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders()),b={data:!r||r==="text"||r==="json"?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:g,config:n,request:h};h_(function(w){e(w),c()},function(w){i(w),c()},b),h=null}if("onloadend"in h?h.onloadend=f:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.indexOf("file:")===0)||setTimeout(f)},h.onabort=function(){h&&(i(new Z("Request aborted",Z.ECONNABORTED,n,h)),h=null)},h.onerror=function(){i(new Z("Network Error",Z.ERR_NETWORK,n,h)),h=null},h.ontimeout=function(){let _=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const b=n.transitional||Zc;n.timeoutErrorMessage&&(_=n.timeoutErrorMessage),i(new Z(_,b.clarifyTimeoutError?Z.ETIMEDOUT:Z.ECONNABORTED,n,h)),h=null},zt.hasStandardBrowserEnv&&(a&&R.isFunction(a)&&(a=a(n)),a||a!==!1&&g_(d))){const g=n.xsrfHeaderName&&n.xsrfCookieName&&d_.read(n.xsrfCookieName);g&&o.set(n.xsrfHeaderName,g)}s===void 0&&o.setContentType(null),"setRequestHeader"in h&&R.forEach(o.toJSON(),function(_,b){h.setRequestHeader(b,_)}),R.isUndefined(n.withCredentials)||(h.withCredentials=!!n.withCredentials),r&&r!=="json"&&(h.responseType=n.responseType),typeof n.onDownloadProgress=="function"&&h.addEventListener("progress",ca(n.onDownloadProgress,!0)),typeof n.onUploadProgress=="function"&&h.upload&&h.upload.addEventListener("progress",ca(n.onUploadProgress)),(n.cancelToken||n.signal)&&(l=g=>{h&&(i(!g||g.type?new ti(null,n,h):g),h.abort(),h=null)},n.cancelToken&&n.cancelToken.subscribe(l),n.signal&&(n.signal.aborted?l():n.signal.addEventListener("abort",l)));const p=m_(d);if(p&&zt.protocols.indexOf(p)===-1){i(new Z("Unsupported protocol "+p+":",Z.ERR_BAD_REQUEST,n));return}h.send(s||null)})},uo={http:Wm,xhr:y_};R.forEach(uo,(n,t)=>{if(n){try{Object.defineProperty(n,"name",{value:t})}catch{}Object.defineProperty(n,"adapterName",{value:t})}});const ua=n=>`- ${n}`,v_=n=>R.isFunction(n)||n===null||n===!1,iu={getAdapter:n=>{n=R.isArray(n)?n:[n];const{length:t}=n;let e,i;const s={};for(let o=0;o`adapter ${a} `+(l===!1?"is not supported by the environment":"is not available in the build"));let r=t?o.length>1?`since : +`+o.map(ua).join(` +`):" "+ua(o[0]):"as no adapter specified";throw new Z("There is no suitable adapter to dispatch the request "+r,"ERR_NOT_SUPPORT")}return i},adapters:uo};function Vs(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new ti(null,n)}function ha(n){return Vs(n),n.headers=Lt.from(n.headers),n.data=zs.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),iu.getAdapter(n.adapter||Qn.adapter)(n).then(function(i){return Vs(n),i.data=zs.call(n,n.transformResponse,i),i.headers=Lt.from(i.headers),i},function(i){return eu(i)||(Vs(n),i&&i.response&&(i.response.data=zs.call(n,n.transformResponse,i.response),i.response.headers=Lt.from(i.response.headers))),Promise.reject(i)})}const da=n=>n instanceof Lt?{...n}:n;function ln(n,t){t=t||{};const e={};function i(c,u,h){return R.isPlainObject(c)&&R.isPlainObject(u)?R.merge.call({caseless:h},c,u):R.isPlainObject(u)?R.merge({},u):R.isArray(u)?u.slice():u}function s(c,u,h){if(R.isUndefined(u)){if(!R.isUndefined(c))return i(void 0,c,h)}else return i(c,u,h)}function o(c,u){if(!R.isUndefined(u))return i(void 0,u)}function r(c,u){if(R.isUndefined(u)){if(!R.isUndefined(c))return i(void 0,c)}else return i(void 0,u)}function a(c,u,h){if(h in t)return i(c,u);if(h in n)return i(void 0,c)}const l={url:o,method:o,data:o,baseURL:r,transformRequest:r,transformResponse:r,paramsSerializer:r,timeout:r,timeoutMessage:r,withCredentials:r,withXSRFToken:r,adapter:r,responseType:r,xsrfCookieName:r,xsrfHeaderName:r,onUploadProgress:r,onDownloadProgress:r,decompress:r,maxContentLength:r,maxBodyLength:r,beforeRedirect:r,transport:r,httpAgent:r,httpsAgent:r,cancelToken:r,socketPath:r,responseEncoding:r,validateStatus:a,headers:(c,u)=>s(da(c),da(u),!0)};return R.forEach(Object.keys(Object.assign({},n,t)),function(u){const h=l[u]||s,d=h(n[u],t[u],u);R.isUndefined(d)&&h!==a||(e[u]=d)}),e}const su="1.6.8",Xo={};["object","boolean","number","function","string","symbol"].forEach((n,t)=>{Xo[n]=function(i){return typeof i===n||"a"+(t<1?"n ":" ")+n}});const fa={};Xo.transitional=function(t,e,i){function s(o,r){return"[Axios v"+su+"] Transitional option '"+o+"'"+r+(i?". "+i:"")}return(o,r,a)=>{if(t===!1)throw new Z(s(r," has been removed"+(e?" in "+e:"")),Z.ERR_DEPRECATED);return e&&!fa[r]&&(fa[r]=!0,console.warn(s(r," has been deprecated since v"+e+" and will be removed in the near future"))),t?t(o,r,a):!0}};function E_(n,t,e){if(typeof n!="object")throw new Z("options must be an object",Z.ERR_BAD_OPTION_VALUE);const i=Object.keys(n);let s=i.length;for(;s-- >0;){const o=i[s],r=t[o];if(r){const a=n[o],l=a===void 0||r(a,o,n);if(l!==!0)throw new Z("option "+o+" must be "+l,Z.ERR_BAD_OPTION_VALUE);continue}if(e!==!0)throw new Z("Unknown option "+o,Z.ERR_BAD_OPTION)}}const ho={assertOptions:E_,validators:Xo},ce=ho.validators;class Re{constructor(t){this.defaults=t,this.interceptors={request:new aa,response:new aa}}async request(t,e){try{return await this._request(t,e)}catch(i){if(i instanceof Error){let s;Error.captureStackTrace?Error.captureStackTrace(s={}):s=new Error;const o=s.stack?s.stack.replace(/^.+\n/,""):"";i.stack?o&&!String(i.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(i.stack+=` +`+o):i.stack=o}throw i}}_request(t,e){typeof t=="string"?(e=e||{},e.url=t):e=t||{},e=ln(this.defaults,e);const{transitional:i,paramsSerializer:s,headers:o}=e;i!==void 0&&ho.assertOptions(i,{silentJSONParsing:ce.transitional(ce.boolean),forcedJSONParsing:ce.transitional(ce.boolean),clarifyTimeoutError:ce.transitional(ce.boolean)},!1),s!=null&&(R.isFunction(s)?e.paramsSerializer={serialize:s}:ho.assertOptions(s,{encode:ce.function,serialize:ce.function},!0)),e.method=(e.method||this.defaults.method||"get").toLowerCase();let r=o&&R.merge(o.common,o[e.method]);o&&R.forEach(["delete","get","head","post","put","patch","common"],p=>{delete o[p]}),e.headers=Lt.concat(r,o);const a=[];let l=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(e)===!1||(l=l&&g.synchronous,a.unshift(g.fulfilled,g.rejected))});const c=[];this.interceptors.response.forEach(function(g){c.push(g.fulfilled,g.rejected)});let u,h=0,d;if(!l){const p=[ha.bind(this),void 0];for(p.unshift.apply(p,a),p.push.apply(p,c),d=p.length,u=Promise.resolve(e);h{if(!i._listeners)return;let o=i._listeners.length;for(;o-- >0;)i._listeners[o](s);i._listeners=null}),this.promise.then=s=>{let o;const r=new Promise(a=>{i.subscribe(a),o=a}).then(s);return r.cancel=function(){i.unsubscribe(o)},r},t(function(o,r,a){i.reason||(i.reason=new ti(o,r,a),e(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);e!==-1&&this._listeners.splice(e,1)}static source(){let t;return{token:new Jo(function(s){t=s}),cancel:t}}}function x_(n){return function(e){return n.apply(null,e)}}function w_(n){return R.isObject(n)&&n.isAxiosError===!0}const fo={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(fo).forEach(([n,t])=>{fo[t]=n});function ou(n){const t=new Re(n),e=Bc(Re.prototype.request,t);return R.extend(e,Re.prototype,t,{allOwnKeys:!0}),R.extend(e,t,null,{allOwnKeys:!0}),e.create=function(s){return ou(ln(n,s))},e}const ht=ou(Qn);ht.Axios=Re;ht.CanceledError=ti;ht.CancelToken=Jo;ht.isCancel=eu;ht.VERSION=su;ht.toFormData=ps;ht.AxiosError=Z;ht.Cancel=ht.CanceledError;ht.all=function(t){return Promise.all(t)};ht.spread=x_;ht.isAxiosError=w_;ht.mergeConfig=ln;ht.AxiosHeaders=Lt;ht.formToJSON=n=>tu(R.isHTMLForm(n)?new FormData(n):n);ht.getAdapter=iu.getAdapter;ht.HttpStatusCode=fo;ht.default=ht;window.axios=ht;window.axios.defaults.headers.common["X-Requested-With"]="XMLHttpRequest";var ru={exports:{}};/*! @preserve * bootbox.js * version: 6.0.0 * author: Nick Payne * license: MIT * http://bootboxjs.com/ - */(function(n,t){(function(e,i){n.exports=i(zi())})(Hl,function e(i,s){let o={},r="6.0.0";o.VERSION=r;let a={en:{OK:"OK",CANCEL:"Cancel",CONFIRM:"OK"}},l={dialog:'',header:'',footer:'',closeButton:'',form:'
',button:'',option:'',promptMessage:'
',inputs:{text:'',textarea:'',email:'',select:'',checkbox:'
',radio:'
',date:'',time:'',number:'',password:'',range:''}},c={locale:"en",backdrop:"static",animate:!0,className:null,closeButton:!0,show:!0,container:"body",value:"",inputType:"text",errorMessage:null,swapButtonOrder:!1,centerVertical:!1,multiple:!1,scrollable:!1,reusable:!1,relatedTarget:null,size:null,id:null};o.locales=function(m){return m?a[m]:a},o.addLocale=function(m,E){return i.each(["OK","CANCEL","CONFIRM"],function(I,y){if(!E[y])throw new Error('Please supply a translation for "'+y+'"')}),a[m]={OK:E.OK,CANCEL:E.CANCEL,CONFIRM:E.CONFIRM},o},o.removeLocale=function(m){if(m!=="en")delete a[m];else throw new Error('"en" is used as the default and fallback locale and cannot be removed.');return o},o.setLocale=function(m){return o.setDefaults("locale",m)},o.setDefaults=function(){let m={};return arguments.length===2?m[arguments[0]]=arguments[1]:m=arguments[0],i.extend(c,m),o},o.hideAll=function(){return i(".bootbox").modal("hide"),o},o.init=function(m){return e(m||i)},o.dialog=function(m){if(i.fn.modal===s)throw new Error('"$.fn.modal" is not defined; please double check you have included the Bootstrap JavaScript library. See https://getbootstrap.com/docs/5.1/getting-started/introduction/ for more details.');if(m=_(m),i.fn.modal.Constructor.VERSION){m.fullBootstrapVersion=i.fn.modal.Constructor.VERSION;let D=m.fullBootstrapVersion.indexOf(".");m.bootstrap=m.fullBootstrapVersion.substring(0,D)}else m.bootstrap="2",m.fullBootstrapVersion="2.3.2",console.warn("Bootbox will *mostly* work with Bootstrap 2, but we do not officially support it. Please upgrade, if possible.");let E=i(l.dialog),I=E.find(".modal-dialog"),y=E.find(".modal-body"),O=i(l.header),S=i(l.footer),C=m.buttons,L={onEscape:m.onEscape};if(y.find(".bootbox-body").html(m.message),b(m.buttons)>0&&(v(C,function(D,B){let F=i(l.button);switch(F.data("bb-handler",D),F.addClass(B.className),D){case"ok":case"confirm":F.addClass("bootbox-accept");break;case"cancel":F.addClass("bootbox-cancel");break}F.html(B.label),B.id&&F.attr({id:B.id}),B.disabled===!0&&F.prop({disabled:!0}),S.append(F),L[D]=B.callback}),y.after(S)),m.animate===!0&&E.addClass("fade"),m.className&&E.addClass(m.className),m.id&&E.attr({id:m.id}),m.size)switch(m.fullBootstrapVersion.substring(0,3)<"3.1"&&console.warn('"size" requires Bootstrap 3.1.0 or higher. You appear to be using '+m.fullBootstrapVersion+". Please upgrade to use this option."),m.size){case"small":case"sm":I.addClass("modal-sm");break;case"large":case"lg":I.addClass("modal-lg");break;case"extra-large":case"xl":I.addClass("modal-xl"),m.fullBootstrapVersion.substring(0,3)<"4.2"&&console.warn('Using size "xl"/"extra-large" requires Bootstrap 4.2.0 or higher. You appear to be using '+m.fullBootstrapVersion+". Please upgrade to use this option.");break}if(m.scrollable&&(I.addClass("modal-dialog-scrollable"),m.fullBootstrapVersion.substring(0,3)<"4.3"&&console.warn('Using "scrollable" requires Bootstrap 4.3.0 or higher. You appear to be using '+m.fullBootstrapVersion+". Please upgrade to use this option.")),m.title||m.closeButton){if(m.title?O.find(".modal-title").html(m.title):O.addClass("border-0"),m.closeButton){let D=i(l.closeButton);m.bootstrap<5&&D.html("×"),m.bootstrap<4?O.prepend(D):O.append(D)}y.before(O)}if(m.centerVertical&&(I.addClass("modal-dialog-centered"),m.fullBootstrapVersion<"4.0.0"&&console.warn('"centerVertical" requires Bootstrap 4.0.0-beta.3 or higher. You appear to be using '+m.fullBootstrapVersion+". Please upgrade to use this option.")),m.reusable||(E.one("hide.bs.modal",{dialog:E},A),E.one("hidden.bs.modal",{dialog:E},x)),m.onHide)if(i.isFunction(m.onHide))E.on("hide.bs.modal",m.onHide);else throw new Error('Argument supplied to "onHide" must be a function');if(m.onHidden)if(i.isFunction(m.onHidden))E.on("hidden.bs.modal",m.onHidden);else throw new Error('Argument supplied to "onHidden" must be a function');if(m.onShow)if(i.isFunction(m.onShow))E.on("show.bs.modal",m.onShow);else throw new Error('Argument supplied to "onShow" must be a function');if(E.one("shown.bs.modal",{dialog:E},w),m.onShown)if(i.isFunction(m.onShown))E.on("shown.bs.modal",m.onShown);else throw new Error('Argument supplied to "onShown" must be a function');if(m.backdrop===!0){let D=!1;E.on("mousedown",".modal-content",function(B){B.stopPropagation(),D=!0}),E.on("click.dismiss.bs.modal",function(B){D||B.target!==B.currentTarget||E.trigger("escape.close.bb")})}return E.on("escape.close.bb",function(D){L.onEscape&&M(D,E,L.onEscape)}),E.on("click",".modal-footer button:not(.disabled)",function(D){let B=i(this).data("bb-handler");B!==s&&M(D,E,L[B])}),E.on("click",".bootbox-close-button",function(D){M(D,E,L.onEscape)}),E.on("keyup",function(D){D.which===27&&E.trigger("escape.close.bb")}),i(m.container).append(E),E.modal({backdrop:m.backdrop,keyboard:!1,show:!1}),m.show&&E.modal("show",m.relatedTarget),E},o.alert=function(){let m;if(m=d("alert",["ok"],["message","callback"],arguments),m.callback&&!i.isFunction(m.callback))throw new Error('alert requires the "callback" property to be a function when provided');return m.buttons.ok.callback=m.onEscape=function(){return i.isFunction(m.callback)?m.callback.call(this):!0},o.dialog(m)},o.confirm=function(){let m;if(m=d("confirm",["cancel","confirm"],["message","callback"],arguments),!i.isFunction(m.callback))throw new Error("confirm requires a callback");return m.buttons.cancel.callback=m.onEscape=function(){return m.callback.call(this,!1)},m.buttons.confirm.callback=function(){return m.callback.call(this,!0)},o.dialog(m)},o.prompt=function(){let m,E,I,y,O,S;if(I=i(l.form),m=d("prompt",["cancel","confirm"],["title","callback"],arguments),m.value||(m.value=c.value),m.inputType||(m.inputType=c.inputType),O=m.show===s?c.show:m.show,m.show=!1,m.buttons.cancel.callback=m.onEscape=function(){return m.callback.call(this,null)},m.buttons.confirm.callback=function(){let C;if(m.inputType==="checkbox")C=y.find("input:checked").map(function(){return i(this).val()}).get();else if(m.inputType==="radio")C=y.find("input:checked").val();else{let L=y[0];if(m.errorMessage&&L.setCustomValidity(""),L.checkValidity&&!L.checkValidity())return m.errorMessage&&L.setCustomValidity(m.errorMessage),L.reportValidity&&L.reportValidity(),!1;m.inputType==="select"&&m.multiple===!0?C=y.find("option:selected").map(function(){return i(this).val()}).get():C=y.val()}return m.callback.call(this,C)},!m.title)throw new Error("prompt requires a title");if(!i.isFunction(m.callback))throw new Error("prompt requires a callback");if(!l.inputs[m.inputType])throw new Error("Invalid prompt type");switch(y=i(l.inputs[m.inputType]),m.inputType){case"text":case"textarea":case"email":case"password":y.val(m.value),m.placeholder&&y.attr("placeholder",m.placeholder),m.pattern&&y.attr("pattern",m.pattern),m.maxlength&&y.attr("maxlength",m.maxlength),m.required&&y.prop({required:!0}),m.rows&&!isNaN(parseInt(m.rows))&&m.inputType==="textarea"&&y.attr({rows:m.rows});break;case"date":case"time":case"number":case"range":if(y.val(m.value),m.placeholder&&y.attr("placeholder",m.placeholder),m.pattern?y.attr("pattern",m.pattern):m.inputType==="date"?y.attr("pattern","d{4}-d{2}-d{2}"):m.inputType==="time"&&y.attr("pattern","d{2}:d{2}"),m.required&&y.prop({required:!0}),m.inputType!=="date"&&m.step)if(m.step==="any"||!isNaN(m.step)&&parseFloat(m.step)>0)y.attr("step",m.step);else throw new Error('"step" must be a valid positive number or the value "any". See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-step for more information.');P(m.inputType,m.min,m.max)&&(m.min!==s&&y.attr("min",m.min),m.max!==s&&y.attr("max",m.max));break;case"select":let C={};if(S=m.inputOptions||[],!i.isArray(S))throw new Error("Please pass an array of input options");if(!S.length)throw new Error('prompt with "inputType" set to "select" requires at least one option');m.required&&y.prop({required:!0}),m.multiple&&y.prop({multiple:!0}),v(S,function(B,F){let W=y;if(F.value===s||F.text===s)throw new Error('each option needs a "value" property and a "text" property');F.group&&(C[F.group]||(C[F.group]=i("").attr("label",F.group)),W=C[F.group]);let T=i(l.option);T.attr("value",F.value).text(F.text),W.append(T)}),v(C,function(B,F){y.append(F)}),y.val(m.value),m.bootstrap<5&&y.removeClass("form-select").addClass("form-control");break;case"checkbox":let L=i.isArray(m.value)?m.value:[m.value];if(S=m.inputOptions||[],!S.length)throw new Error('prompt with "inputType" set to "checkbox" requires at least one option');y=i('
'),v(S,function(B,F){if(F.value===s||F.text===s)throw new Error('each option needs a "value" property and a "text" property');let W=i(l.inputs[m.inputType]);W.find("input").attr("value",F.value),W.find("label").append(` + */(function(n,t){(function(e,i){n.exports=i(Vi())})(Fl,function e(i,s){let o={},r="6.0.0";o.VERSION=r;let a={en:{OK:"OK",CANCEL:"Cancel",CONFIRM:"OK"}},l={dialog:'',header:'',footer:'',closeButton:'',form:'
',button:'',option:'',promptMessage:'
',inputs:{text:'',textarea:'',email:'',select:'',checkbox:'
',radio:'
',date:'',time:'',number:'',password:'',range:''}},c={locale:"en",backdrop:"static",animate:!0,className:null,closeButton:!0,show:!0,container:"body",value:"",inputType:"text",errorMessage:null,swapButtonOrder:!1,centerVertical:!1,multiple:!1,scrollable:!1,reusable:!1,relatedTarget:null,size:null,id:null};o.locales=function(m){return m?a[m]:a},o.addLocale=function(m,E){return i.each(["OK","CANCEL","CONFIRM"],function(I,y){if(!E[y])throw new Error('Please supply a translation for "'+y+'"')}),a[m]={OK:E.OK,CANCEL:E.CANCEL,CONFIRM:E.CONFIRM},o},o.removeLocale=function(m){if(m!=="en")delete a[m];else throw new Error('"en" is used as the default and fallback locale and cannot be removed.');return o},o.setLocale=function(m){return o.setDefaults("locale",m)},o.setDefaults=function(){let m={};return arguments.length===2?m[arguments[0]]=arguments[1]:m=arguments[0],i.extend(c,m),o},o.hideAll=function(){return i(".bootbox").modal("hide"),o},o.init=function(m){return e(m||i)},o.dialog=function(m){if(i.fn.modal===s)throw new Error('"$.fn.modal" is not defined; please double check you have included the Bootstrap JavaScript library. See https://getbootstrap.com/docs/5.1/getting-started/introduction/ for more details.');if(m=_(m),i.fn.modal.Constructor.VERSION){m.fullBootstrapVersion=i.fn.modal.Constructor.VERSION;let D=m.fullBootstrapVersion.indexOf(".");m.bootstrap=m.fullBootstrapVersion.substring(0,D)}else m.bootstrap="2",m.fullBootstrapVersion="2.3.2",console.warn("Bootbox will *mostly* work with Bootstrap 2, but we do not officially support it. Please upgrade, if possible.");let E=i(l.dialog),I=E.find(".modal-dialog"),y=E.find(".modal-body"),O=i(l.header),S=i(l.footer),C=m.buttons,L={onEscape:m.onEscape};if(y.find(".bootbox-body").html(m.message),b(m.buttons)>0&&(v(C,function(D,B){let F=i(l.button);switch(F.data("bb-handler",D),F.addClass(B.className),D){case"ok":case"confirm":F.addClass("bootbox-accept");break;case"cancel":F.addClass("bootbox-cancel");break}F.html(B.label),B.id&&F.attr({id:B.id}),B.disabled===!0&&F.prop({disabled:!0}),S.append(F),L[D]=B.callback}),y.after(S)),m.animate===!0&&E.addClass("fade"),m.className&&E.addClass(m.className),m.id&&E.attr({id:m.id}),m.size)switch(m.fullBootstrapVersion.substring(0,3)<"3.1"&&console.warn('"size" requires Bootstrap 3.1.0 or higher. You appear to be using '+m.fullBootstrapVersion+". Please upgrade to use this option."),m.size){case"small":case"sm":I.addClass("modal-sm");break;case"large":case"lg":I.addClass("modal-lg");break;case"extra-large":case"xl":I.addClass("modal-xl"),m.fullBootstrapVersion.substring(0,3)<"4.2"&&console.warn('Using size "xl"/"extra-large" requires Bootstrap 4.2.0 or higher. You appear to be using '+m.fullBootstrapVersion+". Please upgrade to use this option.");break}if(m.scrollable&&(I.addClass("modal-dialog-scrollable"),m.fullBootstrapVersion.substring(0,3)<"4.3"&&console.warn('Using "scrollable" requires Bootstrap 4.3.0 or higher. You appear to be using '+m.fullBootstrapVersion+". Please upgrade to use this option.")),m.title||m.closeButton){if(m.title?O.find(".modal-title").html(m.title):O.addClass("border-0"),m.closeButton){let D=i(l.closeButton);m.bootstrap<5&&D.html("×"),m.bootstrap<4?O.prepend(D):O.append(D)}y.before(O)}if(m.centerVertical&&(I.addClass("modal-dialog-centered"),m.fullBootstrapVersion<"4.0.0"&&console.warn('"centerVertical" requires Bootstrap 4.0.0-beta.3 or higher. You appear to be using '+m.fullBootstrapVersion+". Please upgrade to use this option.")),m.reusable||(E.one("hide.bs.modal",{dialog:E},A),E.one("hidden.bs.modal",{dialog:E},x)),m.onHide)if(i.isFunction(m.onHide))E.on("hide.bs.modal",m.onHide);else throw new Error('Argument supplied to "onHide" must be a function');if(m.onHidden)if(i.isFunction(m.onHidden))E.on("hidden.bs.modal",m.onHidden);else throw new Error('Argument supplied to "onHidden" must be a function');if(m.onShow)if(i.isFunction(m.onShow))E.on("show.bs.modal",m.onShow);else throw new Error('Argument supplied to "onShow" must be a function');if(E.one("shown.bs.modal",{dialog:E},w),m.onShown)if(i.isFunction(m.onShown))E.on("shown.bs.modal",m.onShown);else throw new Error('Argument supplied to "onShown" must be a function');if(m.backdrop===!0){let D=!1;E.on("mousedown",".modal-content",function(B){B.stopPropagation(),D=!0}),E.on("click.dismiss.bs.modal",function(B){D||B.target!==B.currentTarget||E.trigger("escape.close.bb")})}return E.on("escape.close.bb",function(D){L.onEscape&&M(D,E,L.onEscape)}),E.on("click",".modal-footer button:not(.disabled)",function(D){let B=i(this).data("bb-handler");B!==s&&M(D,E,L[B])}),E.on("click",".bootbox-close-button",function(D){M(D,E,L.onEscape)}),E.on("keyup",function(D){D.which===27&&E.trigger("escape.close.bb")}),i(m.container).append(E),E.modal({backdrop:m.backdrop,keyboard:!1,show:!1}),m.show&&E.modal("show",m.relatedTarget),E},o.alert=function(){let m;if(m=d("alert",["ok"],["message","callback"],arguments),m.callback&&!i.isFunction(m.callback))throw new Error('alert requires the "callback" property to be a function when provided');return m.buttons.ok.callback=m.onEscape=function(){return i.isFunction(m.callback)?m.callback.call(this):!0},o.dialog(m)},o.confirm=function(){let m;if(m=d("confirm",["cancel","confirm"],["message","callback"],arguments),!i.isFunction(m.callback))throw new Error("confirm requires a callback");return m.buttons.cancel.callback=m.onEscape=function(){return m.callback.call(this,!1)},m.buttons.confirm.callback=function(){return m.callback.call(this,!0)},o.dialog(m)},o.prompt=function(){let m,E,I,y,O,S;if(I=i(l.form),m=d("prompt",["cancel","confirm"],["title","callback"],arguments),m.value||(m.value=c.value),m.inputType||(m.inputType=c.inputType),O=m.show===s?c.show:m.show,m.show=!1,m.buttons.cancel.callback=m.onEscape=function(){return m.callback.call(this,null)},m.buttons.confirm.callback=function(){let C;if(m.inputType==="checkbox")C=y.find("input:checked").map(function(){return i(this).val()}).get();else if(m.inputType==="radio")C=y.find("input:checked").val();else{let L=y[0];if(m.errorMessage&&L.setCustomValidity(""),L.checkValidity&&!L.checkValidity())return m.errorMessage&&L.setCustomValidity(m.errorMessage),L.reportValidity&&L.reportValidity(),!1;m.inputType==="select"&&m.multiple===!0?C=y.find("option:selected").map(function(){return i(this).val()}).get():C=y.val()}return m.callback.call(this,C)},!m.title)throw new Error("prompt requires a title");if(!i.isFunction(m.callback))throw new Error("prompt requires a callback");if(!l.inputs[m.inputType])throw new Error("Invalid prompt type");switch(y=i(l.inputs[m.inputType]),m.inputType){case"text":case"textarea":case"email":case"password":y.val(m.value),m.placeholder&&y.attr("placeholder",m.placeholder),m.pattern&&y.attr("pattern",m.pattern),m.maxlength&&y.attr("maxlength",m.maxlength),m.required&&y.prop({required:!0}),m.rows&&!isNaN(parseInt(m.rows))&&m.inputType==="textarea"&&y.attr({rows:m.rows});break;case"date":case"time":case"number":case"range":if(y.val(m.value),m.placeholder&&y.attr("placeholder",m.placeholder),m.pattern?y.attr("pattern",m.pattern):m.inputType==="date"?y.attr("pattern","d{4}-d{2}-d{2}"):m.inputType==="time"&&y.attr("pattern","d{2}:d{2}"),m.required&&y.prop({required:!0}),m.inputType!=="date"&&m.step)if(m.step==="any"||!isNaN(m.step)&&parseFloat(m.step)>0)y.attr("step",m.step);else throw new Error('"step" must be a valid positive number or the value "any". See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-step for more information.');P(m.inputType,m.min,m.max)&&(m.min!==s&&y.attr("min",m.min),m.max!==s&&y.attr("max",m.max));break;case"select":let C={};if(S=m.inputOptions||[],!i.isArray(S))throw new Error("Please pass an array of input options");if(!S.length)throw new Error('prompt with "inputType" set to "select" requires at least one option');m.required&&y.prop({required:!0}),m.multiple&&y.prop({multiple:!0}),v(S,function(B,F){let W=y;if(F.value===s||F.text===s)throw new Error('each option needs a "value" property and a "text" property');F.group&&(C[F.group]||(C[F.group]=i("").attr("label",F.group)),W=C[F.group]);let T=i(l.option);T.attr("value",F.value).text(F.text),W.append(T)}),v(C,function(B,F){y.append(F)}),y.val(m.value),m.bootstrap<5&&y.removeClass("form-select").addClass("form-control");break;case"checkbox":let L=i.isArray(m.value)?m.value:[m.value];if(S=m.inputOptions||[],!S.length)throw new Error('prompt with "inputType" set to "checkbox" requires at least one option');y=i('
'),v(S,function(B,F){if(F.value===s||F.text===s)throw new Error('each option needs a "value" property and a "text" property');let W=i(l.inputs[m.inputType]);W.find("input").attr("value",F.value),W.find("label").append(` `+F.text),v(L,function(T,V){V===F.value&&W.find("input").prop("checked",!0)}),y.append(W)});break;case"radio":if(m.value!==s&&i.isArray(m.value))throw new Error('prompt with "inputType" set to "radio" requires a single, non-array value for "value"');if(S=m.inputOptions||[],!S.length)throw new Error('prompt with "inputType" set to "radio" requires at least one option');y=i('
');let D=!0;v(S,function(B,F){if(F.value===s||F.text===s)throw new Error('each option needs a "value" property and a "text" property');let W=i(l.inputs[m.inputType]);W.find("input").attr("value",F.value),W.find("label").append(` -`+F.text),m.value!==s&&F.value===m.value&&(W.find("input").prop("checked",!0),D=!1),y.append(W)}),D&&y.find('input[type="radio"]').first().prop("checked",!0);break}if(I.append(y),I.on("submit",function(C){C.preventDefault(),C.stopPropagation(),E.find(".bootbox-accept").trigger("click")}),i.trim(m.message)!==""){let C=i(l.promptMessage).html(m.message);I.prepend(C),m.message=I}else m.message=I;return E=o.dialog(m),E.off("shown.bs.modal",w),E.on("shown.bs.modal",function(){y.focus()}),O===!0&&E.modal("show"),E};function u(m,E){let I=m.length,y={};if(I<1||I>2)throw new Error("Invalid argument length");return I===2||typeof m[0]=="string"?(y[E[0]]=m[0],y[E[1]]=m[1]):y=m[0],y}function h(m,E,I){return i.extend(!0,{},m,u(E,I))}function d(m,E,I,y){let O;y&&y[0]&&(O=y[0].locale||c.locale,(y[0].swapButtonOrder||c.swapButtonOrder)&&(E=E.reverse()));let S={className:"bootbox-"+m,buttons:p(E,O)};return f(h(S,y,I),E)}function f(m,E){let I={};return v(E,function(y,O){I[O]=!0}),v(m.buttons,function(y){if(I[y]===s)throw new Error('button key "'+y+'" is not allowed (options are '+E.join(" ")+")")}),m}function p(m,E){let I={};for(let y=0,O=m.length;y2)throw new Error("Invalid argument length");return I===2||typeof m[0]=="string"?(y[E[0]]=m[0],y[E[1]]=m[1]):y=m[0],y}function h(m,E,I){return i.extend(!0,{},m,u(E,I))}function d(m,E,I,y){let O;y&&y[0]&&(O=y[0].locale||c.locale,(y[0].swapButtonOrder||c.swapButtonOrder)&&(E=E.reverse()));let S={className:"bootbox-"+m,buttons:p(E,O)};return f(h(S,y,I),E)}function f(m,E){let I={};return v(E,function(y,O){I[O]=!0}),v(m.buttons,function(y){if(I[y]===s)throw new Error('button key "'+y+'" is not allowed (options are '+E.join(" ")+")")}),m}function p(m,E){let I={};for(let y=0,O=m.length;y0&&(y.splice(V-1,2),V-=2)}y=y.join("/")}if((G||lt)&&nt){for(S=y.split("/"),V=S.length;V>0;V-=1){if(C=S.slice(0,V).join("/"),G){for(j=G.length;j>0;j-=1)if(L=nt[G.slice(0,j).join("/")],L&&(L=L[C],L)){D=L,F=V;break}}if(D)break;!W&<&<[C]&&(W=lt[C],T=V)}!D&&W&&(D=W,F=T),D&&(S.splice(0,F,D),y=S.join("/"))}return y}function M(y,O){return function(){var S=v.call(arguments,0);return typeof S[0]!="string"&&S.length===1&&S.push(null),u.apply(l,S.concat([y,O]))}}function P(y){return function(O){return A(O,y)}}function N(y){return function(O){f[y]=O}}function k(y){if(x(p,y)){var O=p[y];delete p[y],_[y]=!0,c.apply(l,O)}if(!x(f,y)&&!x(_,y))throw new Error("No "+y);return f[y]}function m(y){var O,S=y?y.indexOf("!"):-1;return S>-1&&(O=y.substring(0,S),y=y.substring(S+1,y.length)),[O,y]}function E(y){return y?m(y):[]}h=function(y,O){var S,C=m(y),L=C[0],D=O[1];return y=C[1],L&&(L=A(L,D),S=k(L)),L?S&&S.normalize?y=S.normalize(y,P(D)):y=A(y,D):(y=A(y,D),C=m(y),L=C[0],y=C[1],L&&(S=k(L))),{f:L?L+"!"+y:y,n:y,pr:L,p:S}};function I(y){return function(){return g&&g.config&&g.config[y]||{}}}d={require:function(y){return M(y)},exports:function(y){var O=f[y];return typeof O<"u"?O:f[y]={}},module:function(y){return{id:y,uri:"",exports:f[y],config:I(y)}}},c=function(y,O,S,C){var L,D,B,F,W,T,V=[],j=typeof S,q;if(C=C||y,T=E(C),j==="undefined"||j==="function"){for(O=!O.length&&S.length?["require","exports","module"]:O,W=0;W0&&(A.call(arguments,u.prototype.constructor),P=h.prototype.constructor),P.apply(this,arguments)}h.displayName=u.displayName;function g(){this.constructor=p}p.prototype=new g;for(var _=0;_":">",'"':""","'":"'","/":"/"};return typeof u!="string"?u:String(u).replace(/[&<>"'\/\\]/g,function(d){return h[d]})},r.__cache={};var c=0;return r.GetUniqueElementId=function(u){var h=u.getAttribute("data-select2-id");return h!=null||(u.id?h="select2-data-"+u.id:h="select2-data-"+(++c).toString()+"-"+r.generateChars(4),u.setAttribute("data-select2-id",h)),h},r.StoreData=function(u,h,d){var f=r.GetUniqueElementId(u);r.__cache[f]||(r.__cache[f]={}),r.__cache[f][h]=d},r.GetData=function(u,h){var d=r.GetUniqueElementId(u);return h?r.__cache[d]&&r.__cache[d][h]!=null?r.__cache[d][h]:o(u).data(h):r.__cache[d]},r.RemoveData=function(u){var h=r.GetUniqueElementId(u);r.__cache[h]!=null&&delete r.__cache[h],u.removeAttribute("data-select2-id")},r.copyNonInternalCssClasses=function(u,h){var d=u.getAttribute("class").trim().split(/\s+/);d=d.filter(function(g){return g.indexOf("select2-")===0});var f=h.getAttribute("class").trim().split(/\s+/);f=f.filter(function(g){return g.indexOf("select2-")!==0});var p=d.concat(f);u.setAttribute("class",p.join(" "))},r}),s.define("select2/results",["jquery","./utils"],function(o,r){function a(l,c,u){this.$element=l,this.data=u,this.options=c,a.__super__.constructor.call(this)}return r.Extend(a,r.Observable),a.prototype.render=function(){var l=o('
    ');return this.options.get("multiple")&&l.attr("aria-multiselectable","true"),this.$results=l,l},a.prototype.clear=function(){this.$results.empty()},a.prototype.displayMessage=function(l){var c=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var u=o(''),h=this.options.get("translations").get(l.message);u.append(c(h(l.args))),u[0].className+=" select2-results__message",this.$results.append(u)},a.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},a.prototype.append=function(l){this.hideLoading();var c=[];if(l.results==null||l.results.length===0){this.$results.children().length===0&&this.trigger("results:message",{message:"noResults"});return}l.results=this.sort(l.results);for(var u=0;u0?c.first().trigger("mouseenter"):l.first().trigger("mouseenter"),this.ensureHighlightVisible()},a.prototype.setClasses=function(){var l=this;this.data.current(function(c){var u=c.map(function(d){return d.id.toString()}),h=l.$results.find(".select2-results__option--selectable");h.each(function(){var d=o(this),f=r.GetData(this,"data"),p=""+f.id;f.element!=null&&f.element.selected||f.element==null&&u.indexOf(p)>-1?(this.classList.add("select2-results__option--selected"),d.attr("aria-selected","true")):(this.classList.remove("select2-results__option--selected"),d.attr("aria-selected","false"))})})},a.prototype.showLoading=function(l){this.hideLoading();var c=this.options.get("translations").get("searching"),u={disabled:!0,loading:!0,text:c(l)},h=this.option(u);h.className+=" loading-results",this.$results.prepend(h)},a.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},a.prototype.option=function(l){var c=document.createElement("li");c.classList.add("select2-results__option"),c.classList.add("select2-results__option--selectable");var u={role:"option"},h=window.Element.prototype.matches||window.Element.prototype.msMatchesSelector||window.Element.prototype.webkitMatchesSelector;(l.element!=null&&h.call(l.element,":disabled")||l.element==null&&l.disabled)&&(u["aria-disabled"]="true",c.classList.remove("select2-results__option--selectable"),c.classList.add("select2-results__option--disabled")),l.id==null&&c.classList.remove("select2-results__option--selectable"),l._resultId!=null&&(c.id=l._resultId),l.title&&(c.title=l.title),l.children&&(u.role="group",u["aria-label"]=l.text,c.classList.remove("select2-results__option--selectable"),c.classList.add("select2-results__option--group"));for(var d in u){var f=u[d];c.setAttribute(d,f)}if(l.children){var p=o(c),g=document.createElement("strong");g.className="select2-results__group",this.template(l,g);for(var _=[],b=0;b",{class:"select2-results__options select2-results__options--nested",role:"none"});x.append(_),p.append(g),p.append(x)}else this.template(l,c);return r.StoreData(c,"data",l),c},a.prototype.bind=function(l,c){var u=this,h=l.id+"-results";this.$results.attr("id",h),l.on("results:all",function(d){u.clear(),u.append(d.data),l.isOpen()&&(u.setClasses(),u.highlightFirstItem())}),l.on("results:append",function(d){u.append(d.data),l.isOpen()&&u.setClasses()}),l.on("query",function(d){u.hideMessages(),u.showLoading(d)}),l.on("select",function(){l.isOpen()&&(u.setClasses(),u.options.get("scrollAfterSelect")&&u.highlightFirstItem())}),l.on("unselect",function(){l.isOpen()&&(u.setClasses(),u.options.get("scrollAfterSelect")&&u.highlightFirstItem())}),l.on("open",function(){u.$results.attr("aria-expanded","true"),u.$results.attr("aria-hidden","false"),u.setClasses(),u.ensureHighlightVisible()}),l.on("close",function(){u.$results.attr("aria-expanded","false"),u.$results.attr("aria-hidden","true"),u.$results.removeAttr("aria-activedescendant")}),l.on("results:toggle",function(){var d=u.getHighlightedResults();d.length!==0&&d.trigger("mouseup")}),l.on("results:select",function(){var d=u.getHighlightedResults();if(d.length!==0){var f=r.GetData(d[0],"data");d.hasClass("select2-results__option--selected")?u.trigger("close",{}):u.trigger("select",{data:f})}}),l.on("results:previous",function(){var d=u.getHighlightedResults(),f=u.$results.find(".select2-results__option--selectable"),p=f.index(d);if(!(p<=0)){var g=p-1;d.length===0&&(g=0);var _=f.eq(g);_.trigger("mouseenter");var b=u.$results.offset().top,v=_.offset().top,w=u.$results.scrollTop()+(v-b);g===0?u.$results.scrollTop(0):v-b<0&&u.$results.scrollTop(w)}}),l.on("results:next",function(){var d=u.getHighlightedResults(),f=u.$results.find(".select2-results__option--selectable"),p=f.index(d),g=p+1;if(!(g>=f.length)){var _=f.eq(g);_.trigger("mouseenter");var b=u.$results.offset().top+u.$results.outerHeight(!1),v=_.offset().top+_.outerHeight(!1),w=u.$results.scrollTop()+v-b;g===0?u.$results.scrollTop(0):v>b&&u.$results.scrollTop(w)}}),l.on("results:focus",function(d){d.element[0].classList.add("select2-results__option--highlighted"),d.element[0].setAttribute("aria-selected","true")}),l.on("results:message",function(d){u.displayMessage(d)}),o.fn.mousewheel&&this.$results.on("mousewheel",function(d){var f=u.$results.scrollTop(),p=u.$results.get(0).scrollHeight-f+d.deltaY,g=d.deltaY>0&&f-d.deltaY<=0,_=d.deltaY<0&&p<=u.$results.height();g?(u.$results.scrollTop(0),d.preventDefault(),d.stopPropagation()):_&&(u.$results.scrollTop(u.$results.get(0).scrollHeight-u.$results.height()),d.preventDefault(),d.stopPropagation())}),this.$results.on("mouseup",".select2-results__option--selectable",function(d){var f=o(this),p=r.GetData(this,"data");if(f.hasClass("select2-results__option--selected")){u.options.get("multiple")?u.trigger("unselect",{originalEvent:d,data:p}):u.trigger("close",{});return}u.trigger("select",{originalEvent:d,data:p})}),this.$results.on("mouseenter",".select2-results__option--selectable",function(d){var f=r.GetData(this,"data");u.getHighlightedResults().removeClass("select2-results__option--highlighted").attr("aria-selected","false"),u.trigger("results:focus",{data:f,element:o(this)})})},a.prototype.getHighlightedResults=function(){var l=this.$results.find(".select2-results__option--highlighted");return l},a.prototype.destroy=function(){this.$results.remove()},a.prototype.ensureHighlightVisible=function(){var l=this.getHighlightedResults();if(l.length!==0){var c=this.$results.find(".select2-results__option--selectable"),u=c.index(l),h=this.$results.offset().top,d=l.offset().top,f=this.$results.scrollTop()+(d-h),p=d-h;f-=l.outerHeight(!1)*2,u<=2?this.$results.scrollTop(0):(p>this.$results.outerHeight()||p<0)&&this.$results.scrollTop(f)}},a.prototype.template=function(l,c){var u=this.options.get("templateResult"),h=this.options.get("escapeMarkup"),d=u(l,c);d==null?c.style.display="none":typeof d=="string"?c.innerHTML=h(d):o(c).append(d)},a}),s.define("select2/keys",[],function(){var o={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46};return o}),s.define("select2/selection/base",["jquery","../utils","../keys"],function(o,r,a){function l(c,u){this.$element=c,this.options=u,l.__super__.constructor.call(this)}return r.Extend(l,r.Observable),l.prototype.render=function(){var c=o('');return this._tabindex=0,r.GetData(this.$element[0],"old-tabindex")!=null?this._tabindex=r.GetData(this.$element[0],"old-tabindex"):this.$element.attr("tabindex")!=null&&(this._tabindex=this.$element.attr("tabindex")),c.attr("title",this.$element.attr("title")),c.attr("tabindex",this._tabindex),c.attr("aria-disabled","false"),this.$selection=c,c},l.prototype.bind=function(c,u){var h=this,d=c.id+"-results";this.container=c,this.$selection.on("focus",function(f){h.trigger("focus",f)}),this.$selection.on("blur",function(f){h._handleBlur(f)}),this.$selection.on("keydown",function(f){h.trigger("keypress",f),f.which===a.SPACE&&f.preventDefault()}),c.on("results:focus",function(f){h.$selection.attr("aria-activedescendant",f.data._resultId)}),c.on("selection:update",function(f){h.update(f.data)}),c.on("open",function(){h.$selection.attr("aria-expanded","true"),h.$selection.attr("aria-owns",d),h._attachCloseHandler(c)}),c.on("close",function(){h.$selection.attr("aria-expanded","false"),h.$selection.removeAttr("aria-activedescendant"),h.$selection.removeAttr("aria-owns"),h.$selection.trigger("focus"),h._detachCloseHandler(c)}),c.on("enable",function(){h.$selection.attr("tabindex",h._tabindex),h.$selection.attr("aria-disabled","false")}),c.on("disable",function(){h.$selection.attr("tabindex","-1"),h.$selection.attr("aria-disabled","true")})},l.prototype._handleBlur=function(c){var u=this;window.setTimeout(function(){document.activeElement==u.$selection[0]||o.contains(u.$selection[0],document.activeElement)||u.trigger("blur",c)},1)},l.prototype._attachCloseHandler=function(c){o(document.body).on("mousedown.select2."+c.id,function(u){var h=o(u.target),d=h.closest(".select2"),f=o(".select2.select2-container--open");f.each(function(){if(this!=d[0]){var p=r.GetData(this,"element");p.select2("close")}})})},l.prototype._detachCloseHandler=function(c){o(document.body).off("mousedown.select2."+c.id)},l.prototype.position=function(c,u){var h=u.find(".selection");h.append(c)},l.prototype.destroy=function(){this._detachCloseHandler(this.container)},l.prototype.update=function(c){throw new Error("The `update` method must be defined in child classes.")},l.prototype.isEnabled=function(){return!this.isDisabled()},l.prototype.isDisabled=function(){return this.options.get("disabled")},l}),s.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(o,r,a,l){function c(){c.__super__.constructor.apply(this,arguments)}return a.Extend(c,r),c.prototype.render=function(){var u=c.__super__.render.call(this);return u[0].classList.add("select2-selection--single"),u.html(''),u},c.prototype.bind=function(u,h){var d=this;c.__super__.bind.apply(this,arguments);var f=u.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",f).attr("role","textbox").attr("aria-readonly","true"),this.$selection.attr("aria-labelledby",f),this.$selection.attr("aria-controls",f),this.$selection.on("mousedown",function(p){p.which===1&&d.trigger("toggle",{originalEvent:p})}),this.$selection.on("focus",function(p){}),this.$selection.on("blur",function(p){}),u.on("focus",function(p){u.isOpen()||d.$selection.trigger("focus")})},c.prototype.clear=function(){var u=this.$selection.find(".select2-selection__rendered");u.empty(),u.removeAttr("title")},c.prototype.display=function(u,h){var d=this.options.get("templateSelection"),f=this.options.get("escapeMarkup");return f(d(u,h))},c.prototype.selectionContainer=function(){return o("")},c.prototype.update=function(u){if(u.length===0){this.clear();return}var h=u[0],d=this.$selection.find(".select2-selection__rendered"),f=this.display(h,d);d.empty().append(f);var p=h.title||h.text;p?d.attr("title",p):d.removeAttr("title")},c}),s.define("select2/selection/multiple",["jquery","./base","../utils"],function(o,r,a){function l(c,u){l.__super__.constructor.apply(this,arguments)}return a.Extend(l,r),l.prototype.render=function(){var c=l.__super__.render.call(this);return c[0].classList.add("select2-selection--multiple"),c.html('
      '),c},l.prototype.bind=function(c,u){var h=this;l.__super__.bind.apply(this,arguments);var d=c.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",d),this.$selection.on("click",function(f){h.trigger("toggle",{originalEvent:f})}),this.$selection.on("click",".select2-selection__choice__remove",function(f){if(!h.isDisabled()){var p=o(this),g=p.parent(),_=a.GetData(g[0],"data");h.trigger("unselect",{originalEvent:f,data:_})}}),this.$selection.on("keydown",".select2-selection__choice__remove",function(f){h.isDisabled()||f.stopPropagation()})},l.prototype.clear=function(){var c=this.$selection.find(".select2-selection__rendered");c.empty(),c.removeAttr("title")},l.prototype.display=function(c,u){var h=this.options.get("templateSelection"),d=this.options.get("escapeMarkup");return d(h(c,u))},l.prototype.selectionContainer=function(){var c=o('
    • ');return c},l.prototype.update=function(c){if(this.clear(),c.length!==0){for(var u=[],h=this.$selection.find(".select2-selection__rendered").attr("id")+"-choice-",d=0;d1;if(c||l)return r.call(this,a);this.clear();var u=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(u)},o}),s.define("select2/selection/allowClear",["jquery","../keys","../utils"],function(o,r,a){function l(){}return l.prototype.bind=function(c,u,h){var d=this;c.call(this,u,h),this.placeholder==null&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",function(f){d._handleClear(f)}),u.on("keypress",function(f){d._handleKeyboardClear(f,u)})},l.prototype._handleClear=function(c,u){if(!this.isDisabled()){var h=this.$selection.find(".select2-selection__clear");if(h.length!==0){u.stopPropagation();var d=a.GetData(h[0],"data"),f=this.$element.val();this.$element.val(this.placeholder.id);var p={data:d};if(this.trigger("clear",p),p.prevented){this.$element.val(f);return}for(var g=0;g0||u.length===0)){var h=this.$selection.find(".select2-selection__rendered").attr("id"),d=this.options.get("translations").get("removeAllItems"),f=o('');f.attr("title",d()),f.attr("aria-label",d()),f.attr("aria-describedby",h),a.StoreData(f[0],"data",u),this.$selection.prepend(f),this.$selection[0].classList.add("select2-selection--clearable")}},l}),s.define("select2/selection/search",["jquery","../utils","../keys"],function(o,r,a){function l(c,u,h){c.call(this,u,h)}return l.prototype.render=function(c){var u=this.options.get("translations").get("search"),h=o('');this.$searchContainer=h,this.$search=h.find("textarea"),this.$search.prop("autocomplete",this.options.get("autocomplete")),this.$search.attr("aria-label",u());var d=c.call(this);return this._transferTabIndex(),d.append(this.$searchContainer),d},l.prototype.bind=function(c,u,h){var d=this,f=u.id+"-results",p=u.id+"-container";c.call(this,u,h),d.$search.attr("aria-describedby",p),u.on("open",function(){d.$search.attr("aria-controls",f),d.$search.trigger("focus")}),u.on("close",function(){d.$search.val(""),d.resizeSearch(),d.$search.removeAttr("aria-controls"),d.$search.removeAttr("aria-activedescendant"),d.$search.trigger("focus")}),u.on("enable",function(){d.$search.prop("disabled",!1),d._transferTabIndex()}),u.on("disable",function(){d.$search.prop("disabled",!0)}),u.on("focus",function(b){d.$search.trigger("focus")}),u.on("results:focus",function(b){b.data._resultId?d.$search.attr("aria-activedescendant",b.data._resultId):d.$search.removeAttr("aria-activedescendant")}),this.$selection.on("focusin",".select2-search--inline",function(b){d.trigger("focus",b)}),this.$selection.on("focusout",".select2-search--inline",function(b){d._handleBlur(b)}),this.$selection.on("keydown",".select2-search--inline",function(b){b.stopPropagation(),d.trigger("keypress",b),d._keyUpPrevented=b.isDefaultPrevented();var v=b.which;if(v===a.BACKSPACE&&d.$search.val()===""){var w=d.$selection.find(".select2-selection__choice").last();if(w.length>0){var x=r.GetData(w[0],"data");d.searchRemoveChoice(x),b.preventDefault()}}}),this.$selection.on("click",".select2-search--inline",function(b){d.$search.val()&&b.stopPropagation()});var g=document.documentMode,_=g&&g<=11;this.$selection.on("input.searchcheck",".select2-search--inline",function(b){if(_){d.$selection.off("input.search input.searchcheck");return}d.$selection.off("keyup.search")}),this.$selection.on("keyup.search input.search",".select2-search--inline",function(b){if(_&&b.type==="input"){d.$selection.off("input.search input.searchcheck");return}var v=b.which;v==a.SHIFT||v==a.CTRL||v==a.ALT||v!=a.TAB&&d.handleSearch(b)})},l.prototype._transferTabIndex=function(c){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},l.prototype.createPlaceholder=function(c,u){this.$search.attr("placeholder",u.text)},l.prototype.update=function(c,u){var h=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),c.call(this,u),this.resizeSearch(),h&&this.$search.trigger("focus")},l.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var c=this.$search.val();this.trigger("query",{term:c})}this._keyUpPrevented=!1},l.prototype.searchRemoveChoice=function(c,u){this.trigger("unselect",{data:u}),this.$search.val(u.text),this.handleSearch()},l.prototype.resizeSearch=function(){this.$search.css("width","25px");var c="100%";if(this.$search.attr("placeholder")===""){var u=this.$search.val().length+1;c=u*.75+"em"}this.$search.css("width",c)},l}),s.define("select2/selection/selectionCss",["../utils"],function(o){function r(){}return r.prototype.render=function(a){var l=a.call(this),c=this.options.get("selectionCssClass")||"";return c.indexOf(":all:")!==-1&&(c=c.replace(":all:",""),o.copyNonInternalCssClasses(l[0],this.$element[0])),l.addClass(c),l},r}),s.define("select2/selection/eventRelay",["jquery"],function(o){function r(){}return r.prototype.bind=function(a,l,c){var u=this,h=["open","opening","close","closing","select","selecting","unselect","unselecting","clear","clearing"],d=["opening","closing","selecting","unselecting","clearing"];a.call(this,l,c),l.on("*",function(f,p){if(h.indexOf(f)!==-1){p=p||{};var g=o.Event("select2:"+f,{params:p});u.$element.trigger(g),d.indexOf(f)!==-1&&(p.prevented=g.isDefaultPrevented())}})},r}),s.define("select2/translation",["jquery","require"],function(o,r){function a(l){this.dict=l||{}}return a.prototype.all=function(){return this.dict},a.prototype.get=function(l){return this.dict[l]},a.prototype.extend=function(l){this.dict=o.extend({},l.all(),this.dict)},a._cache={},a.loadPath=function(l){if(!(l in a._cache)){var c=r(l);a._cache[l]=c}return new a(a._cache[l])},a}),s.define("select2/diacritics",[],function(){var o={"Ⓐ":"A",A:"A",À:"A",Á:"A",Â:"A",Ầ:"A",Ấ:"A",Ẫ:"A",Ẩ:"A",Ã:"A",Ā:"A",Ă:"A",Ằ:"A",Ắ:"A",Ẵ:"A",Ẳ:"A",Ȧ:"A",Ǡ:"A",Ä:"A",Ǟ:"A",Ả:"A",Å:"A",Ǻ:"A",Ǎ:"A",Ȁ:"A",Ȃ:"A",Ạ:"A",Ậ:"A",Ặ:"A",Ḁ:"A",Ą:"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA",Æ:"AE",Ǽ:"AE",Ǣ:"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B",B:"B",Ḃ:"B",Ḅ:"B",Ḇ:"B","Ƀ":"B",Ƃ:"B",Ɓ:"B","Ⓒ":"C",C:"C",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",Ç:"C",Ḉ:"C",Ƈ:"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D",D:"D",Ḋ:"D",Ď:"D",Ḍ:"D",Ḑ:"D",Ḓ:"D",Ḏ:"D",Đ:"D",Ƌ:"D",Ɗ:"D",Ɖ:"D","Ꝺ":"D",DZ:"DZ",DŽ:"DZ",Dz:"Dz",Dž:"Dz","Ⓔ":"E",E:"E",È:"E",É:"E",Ê:"E",Ề:"E",Ế:"E",Ễ:"E",Ể:"E",Ẽ:"E",Ē:"E",Ḕ:"E",Ḗ:"E",Ĕ:"E",Ė:"E",Ë:"E",Ẻ:"E",Ě:"E",Ȅ:"E",Ȇ:"E",Ẹ:"E",Ệ:"E",Ȩ:"E",Ḝ:"E",Ę:"E",Ḙ:"E",Ḛ:"E",Ɛ:"E",Ǝ:"E","Ⓕ":"F",F:"F",Ḟ:"F",Ƒ:"F","Ꝼ":"F","Ⓖ":"G",G:"G",Ǵ:"G",Ĝ:"G",Ḡ:"G",Ğ:"G",Ġ:"G",Ǧ:"G",Ģ:"G",Ǥ:"G",Ɠ:"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H",H:"H",Ĥ:"H",Ḣ:"H",Ḧ:"H",Ȟ:"H",Ḥ:"H",Ḩ:"H",Ḫ:"H",Ħ:"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I",I:"I",Ì:"I",Í:"I",Î:"I",Ĩ:"I",Ī:"I",Ĭ:"I",İ:"I",Ï:"I",Ḯ:"I",Ỉ:"I",Ǐ:"I",Ȉ:"I",Ȋ:"I",Ị:"I",Į:"I",Ḭ:"I",Ɨ:"I","Ⓙ":"J",J:"J",Ĵ:"J","Ɉ":"J","Ⓚ":"K",K:"K",Ḱ:"K",Ǩ:"K",Ḳ:"K",Ķ:"K",Ḵ:"K",Ƙ:"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L",L:"L",Ŀ:"L",Ĺ:"L",Ľ:"L",Ḷ:"L",Ḹ:"L",Ļ:"L",Ḽ:"L",Ḻ:"L",Ł:"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L",LJ:"LJ",Lj:"Lj","Ⓜ":"M",M:"M",Ḿ:"M",Ṁ:"M",Ṃ:"M","Ɱ":"M",Ɯ:"M","Ⓝ":"N",N:"N",Ǹ:"N",Ń:"N",Ñ:"N",Ṅ:"N",Ň:"N",Ṇ:"N",Ņ:"N",Ṋ:"N",Ṉ:"N","Ƞ":"N",Ɲ:"N","Ꞑ":"N","Ꞥ":"N",NJ:"NJ",Nj:"Nj","Ⓞ":"O",O:"O",Ò:"O",Ó:"O",Ô:"O",Ồ:"O",Ố:"O",Ỗ:"O",Ổ:"O",Õ:"O",Ṍ:"O",Ȭ:"O",Ṏ:"O",Ō:"O",Ṑ:"O",Ṓ:"O",Ŏ:"O",Ȯ:"O",Ȱ:"O",Ö:"O",Ȫ:"O",Ỏ:"O",Ő:"O",Ǒ:"O",Ȍ:"O",Ȏ:"O",Ơ:"O",Ờ:"O",Ớ:"O",Ỡ:"O",Ở:"O",Ợ:"O",Ọ:"O",Ộ:"O",Ǫ:"O",Ǭ:"O",Ø:"O",Ǿ:"O",Ɔ:"O",Ɵ:"O","Ꝋ":"O","Ꝍ":"O",Œ:"OE",Ƣ:"OI","Ꝏ":"OO",Ȣ:"OU","Ⓟ":"P",P:"P",Ṕ:"P",Ṗ:"P",Ƥ:"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q",Q:"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R",R:"R",Ŕ:"R",Ṙ:"R",Ř:"R",Ȑ:"R",Ȓ:"R",Ṛ:"R",Ṝ:"R",Ŗ:"R",Ṟ:"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S",S:"S","ẞ":"S",Ś:"S",Ṥ:"S",Ŝ:"S",Ṡ:"S",Š:"S",Ṧ:"S",Ṣ:"S",Ṩ:"S",Ș:"S",Ş:"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T",T:"T",Ṫ:"T",Ť:"T",Ṭ:"T",Ț:"T",Ţ:"T",Ṱ:"T",Ṯ:"T",Ŧ:"T",Ƭ:"T",Ʈ:"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U",U:"U",Ù:"U",Ú:"U",Û:"U",Ũ:"U",Ṹ:"U",Ū:"U",Ṻ:"U",Ŭ:"U",Ü:"U",Ǜ:"U",Ǘ:"U",Ǖ:"U",Ǚ:"U",Ủ:"U",Ů:"U",Ű:"U",Ǔ:"U",Ȕ:"U",Ȗ:"U",Ư:"U",Ừ:"U",Ứ:"U",Ữ:"U",Ử:"U",Ự:"U",Ụ:"U",Ṳ:"U",Ų:"U",Ṷ:"U",Ṵ:"U","Ʉ":"U","Ⓥ":"V",V:"V",Ṽ:"V",Ṿ:"V",Ʋ:"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W",W:"W",Ẁ:"W",Ẃ:"W",Ŵ:"W",Ẇ:"W",Ẅ:"W",Ẉ:"W","Ⱳ":"W","Ⓧ":"X",X:"X",Ẋ:"X",Ẍ:"X","Ⓨ":"Y",Y:"Y",Ỳ:"Y",Ý:"Y",Ŷ:"Y",Ỹ:"Y",Ȳ:"Y",Ẏ:"Y",Ÿ:"Y",Ỷ:"Y",Ỵ:"Y",Ƴ:"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z",Z:"Z",Ź:"Z",Ẑ:"Z",Ż:"Z",Ž:"Z",Ẓ:"Z",Ẕ:"Z",Ƶ:"Z",Ȥ:"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a",a:"a",ẚ:"a",à:"a",á:"a",â:"a",ầ:"a",ấ:"a",ẫ:"a",ẩ:"a",ã:"a",ā:"a",ă:"a",ằ:"a",ắ:"a",ẵ:"a",ẳ:"a",ȧ:"a",ǡ:"a",ä:"a",ǟ:"a",ả:"a",å:"a",ǻ:"a",ǎ:"a",ȁ:"a",ȃ:"a",ạ:"a",ậ:"a",ặ:"a",ḁ:"a",ą:"a","ⱥ":"a",ɐ:"a","ꜳ":"aa",æ:"ae",ǽ:"ae",ǣ:"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b",b:"b",ḃ:"b",ḅ:"b",ḇ:"b",ƀ:"b",ƃ:"b",ɓ:"b","ⓒ":"c",c:"c",ć:"c",ĉ:"c",ċ:"c",č:"c",ç:"c",ḉ:"c",ƈ:"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d",d:"d",ḋ:"d",ď:"d",ḍ:"d",ḑ:"d",ḓ:"d",ḏ:"d",đ:"d",ƌ:"d",ɖ:"d",ɗ:"d","ꝺ":"d",dz:"dz",dž:"dz","ⓔ":"e",e:"e",è:"e",é:"e",ê:"e",ề:"e",ế:"e",ễ:"e",ể:"e",ẽ:"e",ē:"e",ḕ:"e",ḗ:"e",ĕ:"e",ė:"e",ë:"e",ẻ:"e",ě:"e",ȅ:"e",ȇ:"e",ẹ:"e",ệ:"e",ȩ:"e",ḝ:"e",ę:"e",ḙ:"e",ḛ:"e","ɇ":"e",ɛ:"e",ǝ:"e","ⓕ":"f",f:"f",ḟ:"f",ƒ:"f","ꝼ":"f","ⓖ":"g",g:"g",ǵ:"g",ĝ:"g",ḡ:"g",ğ:"g",ġ:"g",ǧ:"g",ģ:"g",ǥ:"g",ɠ:"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h",h:"h",ĥ:"h",ḣ:"h",ḧ:"h",ȟ:"h",ḥ:"h",ḩ:"h",ḫ:"h",ẖ:"h",ħ:"h","ⱨ":"h","ⱶ":"h",ɥ:"h",ƕ:"hv","ⓘ":"i",i:"i",ì:"i",í:"i",î:"i",ĩ:"i",ī:"i",ĭ:"i",ï:"i",ḯ:"i",ỉ:"i",ǐ:"i",ȉ:"i",ȋ:"i",ị:"i",į:"i",ḭ:"i",ɨ:"i",ı:"i","ⓙ":"j",j:"j",ĵ:"j",ǰ:"j","ɉ":"j","ⓚ":"k",k:"k",ḱ:"k",ǩ:"k",ḳ:"k",ķ:"k",ḵ:"k",ƙ:"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l",l:"l",ŀ:"l",ĺ:"l",ľ:"l",ḷ:"l",ḹ:"l",ļ:"l",ḽ:"l",ḻ:"l",ſ:"l",ł:"l",ƚ:"l",ɫ:"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l",lj:"lj","ⓜ":"m",m:"m",ḿ:"m",ṁ:"m",ṃ:"m",ɱ:"m",ɯ:"m","ⓝ":"n",n:"n",ǹ:"n",ń:"n",ñ:"n",ṅ:"n",ň:"n",ṇ:"n",ņ:"n",ṋ:"n",ṉ:"n",ƞ:"n",ɲ:"n",ʼn:"n","ꞑ":"n","ꞥ":"n",nj:"nj","ⓞ":"o",o:"o",ò:"o",ó:"o",ô:"o",ồ:"o",ố:"o",ỗ:"o",ổ:"o",õ:"o",ṍ:"o",ȭ:"o",ṏ:"o",ō:"o",ṑ:"o",ṓ:"o",ŏ:"o",ȯ:"o",ȱ:"o",ö:"o",ȫ:"o",ỏ:"o",ő:"o",ǒ:"o",ȍ:"o",ȏ:"o",ơ:"o",ờ:"o",ớ:"o",ỡ:"o",ở:"o",ợ:"o",ọ:"o",ộ:"o",ǫ:"o",ǭ:"o",ø:"o",ǿ:"o",ɔ:"o","ꝋ":"o","ꝍ":"o",ɵ:"o",œ:"oe",ƣ:"oi",ȣ:"ou","ꝏ":"oo","ⓟ":"p",p:"p",ṕ:"p",ṗ:"p",ƥ:"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q",q:"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r",r:"r",ŕ:"r",ṙ:"r",ř:"r",ȑ:"r",ȓ:"r",ṛ:"r",ṝ:"r",ŗ:"r",ṟ:"r","ɍ":"r",ɽ:"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s",s:"s",ß:"s",ś:"s",ṥ:"s",ŝ:"s",ṡ:"s",š:"s",ṧ:"s",ṣ:"s",ṩ:"s",ș:"s",ş:"s","ȿ":"s","ꞩ":"s","ꞅ":"s",ẛ:"s","ⓣ":"t",t:"t",ṫ:"t",ẗ:"t",ť:"t",ṭ:"t",ț:"t",ţ:"t",ṱ:"t",ṯ:"t",ŧ:"t",ƭ:"t",ʈ:"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u",u:"u",ù:"u",ú:"u",û:"u",ũ:"u",ṹ:"u",ū:"u",ṻ:"u",ŭ:"u",ü:"u",ǜ:"u",ǘ:"u",ǖ:"u",ǚ:"u",ủ:"u",ů:"u",ű:"u",ǔ:"u",ȕ:"u",ȗ:"u",ư:"u",ừ:"u",ứ:"u",ữ:"u",ử:"u",ự:"u",ụ:"u",ṳ:"u",ų:"u",ṷ:"u",ṵ:"u",ʉ:"u","ⓥ":"v",v:"v",ṽ:"v",ṿ:"v",ʋ:"v","ꝟ":"v",ʌ:"v","ꝡ":"vy","ⓦ":"w",w:"w",ẁ:"w",ẃ:"w",ŵ:"w",ẇ:"w",ẅ:"w",ẘ:"w",ẉ:"w","ⱳ":"w","ⓧ":"x",x:"x",ẋ:"x",ẍ:"x","ⓨ":"y",y:"y",ỳ:"y",ý:"y",ŷ:"y",ỹ:"y",ȳ:"y",ẏ:"y",ÿ:"y",ỷ:"y",ẙ:"y",ỵ:"y",ƴ:"y","ɏ":"y","ỿ":"y","ⓩ":"z",z:"z",ź:"z",ẑ:"z",ż:"z",ž:"z",ẓ:"z",ẕ:"z",ƶ:"z",ȥ:"z","ɀ":"z","ⱬ":"z","ꝣ":"z",Ά:"Α",Έ:"Ε",Ή:"Η",Ί:"Ι",Ϊ:"Ι",Ό:"Ο",Ύ:"Υ",Ϋ:"Υ",Ώ:"Ω",ά:"α",έ:"ε",ή:"η",ί:"ι",ϊ:"ι",ΐ:"ι",ό:"ο",ύ:"υ",ϋ:"υ",ΰ:"υ",ώ:"ω",ς:"σ","’":"'"};return o}),s.define("select2/data/base",["../utils"],function(o){function r(a,l){r.__super__.constructor.call(this)}return o.Extend(r,o.Observable),r.prototype.current=function(a){throw new Error("The `current` method must be defined in child classes.")},r.prototype.query=function(a,l){throw new Error("The `query` method must be defined in child classes.")},r.prototype.bind=function(a,l){},r.prototype.destroy=function(){},r.prototype.generateResultId=function(a,l){var c=a.id+"-result-";return c+=o.generateChars(4),l.id!=null?c+="-"+l.id.toString():c+="-"+o.generateChars(4),c},r}),s.define("select2/data/select",["./base","../utils","jquery"],function(o,r,a){function l(c,u){this.$element=c,this.options=u,l.__super__.constructor.call(this)}return r.Extend(l,o),l.prototype.current=function(c){var u=this,h=Array.prototype.map.call(this.$element[0].querySelectorAll(":checked"),function(d){return u.item(a(d))});c(h)},l.prototype.select=function(c){var u=this;if(c.selected=!0,c.element!=null&&c.element.tagName.toLowerCase()==="option"){c.element.selected=!0,this.$element.trigger("input").trigger("change");return}if(this.$element.prop("multiple"))this.current(function(d){var f=[];c=[c],c.push.apply(c,d);for(var p=0;p=0){var b=h.filter(p(_)),v=this.item(b),w=a.extend(!0,{},_,v),x=this.option(w);b.replaceWith(x);continue}var A=this.option(_);if(_.children){var M=this.convertToOptions(_.children);A.append(M)}f.push(A)}return f},l}),s.define("select2/data/ajax",["./array","../utils","jquery"],function(o,r,a){function l(c,u){this.ajaxOptions=this._applyDefaults(u.get("ajax")),this.ajaxOptions.processResults!=null&&(this.processResults=this.ajaxOptions.processResults),l.__super__.constructor.call(this,c,u)}return r.Extend(l,o),l.prototype._applyDefaults=function(c){var u={data:function(h){return a.extend({},h,{q:h.term})},transport:function(h,d,f){var p=a.ajax(h);return p.then(d),p.fail(f),p}};return a.extend({},u,c,!0)},l.prototype.processResults=function(c){return c},l.prototype.query=function(c,u){var h=this;this._request!=null&&(typeof this._request.abort=="function"&&this._request.abort(),this._request=null);var d=a.extend({type:"GET"},this.ajaxOptions);typeof d.url=="function"&&(d.url=d.url.call(this.$element,c)),typeof d.data=="function"&&(d.data=d.data.call(this.$element,c));function f(){var p=d.transport(d,function(g){var _=h.processResults(g,c);h.options.get("debug")&&window.console&&console.error&&(!_||!_.results||!Array.isArray(_.results))&&console.error("Select2: The AJAX results did not return an array in the `results` key of the response."),u(_)},function(){"status"in p&&(p.status===0||p.status==="0")||h.trigger("results:message",{message:"errorLoading"})});h._request=p}this.ajaxOptions.delay&&c.term!=null?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(f,this.ajaxOptions.delay)):f()},l}),s.define("select2/data/tags",["jquery"],function(o){function r(a,l,c){var u=c.get("tags"),h=c.get("createTag");h!==void 0&&(this.createTag=h);var d=c.get("insertTag");if(d!==void 0&&(this.insertTag=d),a.call(this,l,c),Array.isArray(u))for(var f=0;f0&&a.term.length>this.maximumInputLength){this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:a.term,params:a}});return}r.call(this,a,l)},o}),s.define("select2/data/maximumSelectionLength",[],function(){function o(r,a,l){this.maximumSelectionLength=l.get("maximumSelectionLength"),r.call(this,a,l)}return o.prototype.bind=function(r,a,l){var c=this;r.call(this,a,l),a.on("select",function(){c._checkIfMaximumSelected()})},o.prototype.query=function(r,a,l){var c=this;this._checkIfMaximumSelected(function(){r.call(c,a,l)})},o.prototype._checkIfMaximumSelected=function(r,a){var l=this;this.current(function(c){var u=c!=null?c.length:0;if(l.maximumSelectionLength>0&&u>=l.maximumSelectionLength){l.trigger("results:message",{message:"maximumSelected",args:{maximum:l.maximumSelectionLength}});return}a&&a()})},o}),s.define("select2/dropdown",["jquery","./utils"],function(o,r){function a(l,c){this.$element=l,this.options=c,a.__super__.constructor.call(this)}return r.Extend(a,r.Observable),a.prototype.render=function(){var l=o('');return l.attr("dir",this.options.get("dir")),this.$dropdown=l,l},a.prototype.bind=function(){},a.prototype.position=function(l,c){},a.prototype.destroy=function(){this.$dropdown.remove()},a}),s.define("select2/dropdown/search",["jquery"],function(o){function r(){}return r.prototype.render=function(a){var l=a.call(this),c=this.options.get("translations").get("search"),u=o('');return this.$searchContainer=u,this.$search=u.find("input"),this.$search.prop("autocomplete",this.options.get("autocomplete")),this.$search.attr("aria-label",c()),l.prepend(u),l},r.prototype.bind=function(a,l,c){var u=this,h=l.id+"-results";a.call(this,l,c),this.$search.on("keydown",function(d){u.trigger("keypress",d),u._keyUpPrevented=d.isDefaultPrevented()}),this.$search.on("input",function(d){o(this).off("keyup")}),this.$search.on("keyup input",function(d){u.handleSearch(d)}),l.on("open",function(){u.$search.attr("tabindex",0),u.$search.attr("aria-controls",h),u.$search.trigger("focus"),window.setTimeout(function(){u.$search.trigger("focus")},0)}),l.on("close",function(){u.$search.attr("tabindex",-1),u.$search.removeAttr("aria-controls"),u.$search.removeAttr("aria-activedescendant"),u.$search.val(""),u.$search.trigger("blur")}),l.on("focus",function(){l.isOpen()||u.$search.trigger("focus")}),l.on("results:all",function(d){if(d.query.term==null||d.query.term===""){var f=u.showSearch(d);f?u.$searchContainer[0].classList.remove("select2-search--hide"):u.$searchContainer[0].classList.add("select2-search--hide")}}),l.on("results:focus",function(d){d.data._resultId?u.$search.attr("aria-activedescendant",d.data._resultId):u.$search.removeAttr("aria-activedescendant")})},r.prototype.handleSearch=function(a){if(!this._keyUpPrevented){var l=this.$search.val();this.trigger("query",{term:l})}this._keyUpPrevented=!1},r.prototype.showSearch=function(a,l){return!0},r}),s.define("select2/dropdown/hidePlaceholder",[],function(){function o(r,a,l,c){this.placeholder=this.normalizePlaceholder(l.get("placeholder")),r.call(this,a,l,c)}return o.prototype.append=function(r,a){a.results=this.removePlaceholder(a.results),r.call(this,a)},o.prototype.normalizePlaceholder=function(r,a){return typeof a=="string"&&(a={id:"",text:a}),a},o.prototype.removePlaceholder=function(r,a){for(var l=a.slice(0),c=a.length-1;c>=0;c--){var u=a[c];this.placeholder.id===u.id&&l.splice(c,1)}return l},o}),s.define("select2/dropdown/infiniteScroll",["jquery"],function(o){function r(a,l,c,u){this.lastParams={},a.call(this,l,c,u),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return r.prototype.append=function(a,l){this.$loadingMore.remove(),this.loading=!1,a.call(this,l),this.showLoadingMore(l)&&(this.$results.append(this.$loadingMore),this.loadMoreIfNeeded())},r.prototype.bind=function(a,l,c){var u=this;a.call(this,l,c),l.on("query",function(h){u.lastParams=h,u.loading=!0}),l.on("query:append",function(h){u.lastParams=h,u.loading=!0}),this.$results.on("scroll",this.loadMoreIfNeeded.bind(this))},r.prototype.loadMoreIfNeeded=function(){var a=o.contains(document.documentElement,this.$loadingMore[0]);if(!(this.loading||!a)){var l=this.$results.offset().top+this.$results.outerHeight(!1),c=this.$loadingMore.offset().top+this.$loadingMore.outerHeight(!1);l+50>=c&&this.loadMore()}},r.prototype.loadMore=function(){this.loading=!0;var a=o.extend({},{page:1},this.lastParams);a.page++,this.trigger("query:append",a)},r.prototype.showLoadingMore=function(a,l){return l.pagination&&l.pagination.more},r.prototype.createLoadingMore=function(){var a=o('
    • '),l=this.options.get("translations").get("loadingMore");return a.html(l(this.lastParams)),a},r}),s.define("select2/dropdown/attachBody",["jquery","../utils"],function(o,r){function a(l,c,u){this.$dropdownParent=o(u.get("dropdownParent")||document.body),l.call(this,c,u)}return a.prototype.bind=function(l,c,u){var h=this;l.call(this,c,u),c.on("open",function(){h._showDropdown(),h._attachPositioningHandler(c),h._bindContainerResultHandlers(c)}),c.on("close",function(){h._hideDropdown(),h._detachPositioningHandler(c)}),this.$dropdownContainer.on("mousedown",function(d){d.stopPropagation()})},a.prototype.destroy=function(l){l.call(this),this.$dropdownContainer.remove()},a.prototype.position=function(l,c,u){c.attr("class",u.attr("class")),c[0].classList.remove("select2"),c[0].classList.add("select2-container--open"),c.css({position:"absolute",top:-999999}),this.$container=u},a.prototype.render=function(l){var c=o(""),u=l.call(this);return c.append(u),this.$dropdownContainer=c,c},a.prototype._hideDropdown=function(l){this.$dropdownContainer.detach()},a.prototype._bindContainerResultHandlers=function(l,c){if(!this._containerResultsHandlersBound){var u=this;c.on("results:all",function(){u._positionDropdown(),u._resizeDropdown()}),c.on("results:append",function(){u._positionDropdown(),u._resizeDropdown()}),c.on("results:message",function(){u._positionDropdown(),u._resizeDropdown()}),c.on("select",function(){u._positionDropdown(),u._resizeDropdown()}),c.on("unselect",function(){u._positionDropdown(),u._resizeDropdown()}),this._containerResultsHandlersBound=!0}},a.prototype._attachPositioningHandler=function(l,c){var u=this,h="scroll.select2."+c.id,d="resize.select2."+c.id,f="orientationchange.select2."+c.id,p=this.$container.parents().filter(r.hasScroll);p.each(function(){r.StoreData(this,"select2-scroll-position",{x:o(this).scrollLeft(),y:o(this).scrollTop()})}),p.on(h,function(g){var _=r.GetData(this,"select2-scroll-position");o(this).scrollTop(_.y)}),o(window).on(h+" "+d+" "+f,function(g){u._positionDropdown(),u._resizeDropdown()})},a.prototype._detachPositioningHandler=function(l,c){var u="scroll.select2."+c.id,h="resize.select2."+c.id,d="orientationchange.select2."+c.id,f=this.$container.parents().filter(r.hasScroll);f.off(u),o(window).off(u+" "+h+" "+d)},a.prototype._positionDropdown=function(){var l=o(window),c=this.$dropdown[0].classList.contains("select2-dropdown--above"),u=this.$dropdown[0].classList.contains("select2-dropdown--below"),h=null,d=this.$container.offset();d.bottom=d.top+this.$container.outerHeight(!1);var f={height:this.$container.outerHeight(!1)};f.top=d.top,f.bottom=d.top+f.height;var p={height:this.$dropdown.outerHeight(!1)},g={top:l.scrollTop(),bottom:l.scrollTop()+l.height()},_=g.topd.bottom+p.height,v={left:d.left,top:f.bottom},w=this.$dropdownParent;w.css("position")==="static"&&(w=w.offsetParent());var x={top:0,left:0};(o.contains(document.body,w[0])||w[0].isConnected)&&(x=w.offset()),v.top-=x.top,v.left-=x.left,!c&&!u&&(h="below"),!b&&_&&!c?h="above":!_&&b&&c&&(h="below"),(h=="above"||c&&h!=="below")&&(v.top=f.top-x.top-p.height),h!=null&&(this.$dropdown[0].classList.remove("select2-dropdown--below"),this.$dropdown[0].classList.remove("select2-dropdown--above"),this.$dropdown[0].classList.add("select2-dropdown--"+h),this.$container[0].classList.remove("select2-container--below"),this.$container[0].classList.remove("select2-container--above"),this.$container[0].classList.add("select2-container--"+h)),this.$dropdownContainer.css(v)},a.prototype._resizeDropdown=function(){var l={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(l.minWidth=l.width,l.position="relative",l.width="auto"),this.$dropdown.css(l)},a.prototype._showDropdown=function(l){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},a}),s.define("select2/dropdown/minimumResultsForSearch",[],function(){function o(a){for(var l=0,c=0;c0){var c=l.first(),u=o.GetData(c[0],"data"),h=u.element;if(h&&h.getAttribute&&h.getAttribute("data-select2-tag")==="true"){c.trigger("mouseenter");return}}a.call(this)},r}),s.define("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(o){var r=o.input.length-o.maximum,a="Please delete "+r+" character";return r!=1&&(a+="s"),a},inputTooShort:function(o){var r=o.minimum-o.input.length,a="Please enter "+r+" or more characters";return a},loadingMore:function(){return"Loading more results…"},maximumSelected:function(o){var r="You can only select "+o.maximum+" item";return o.maximum!=1&&(r+="s"),r},noResults:function(){return"No results found"},searching:function(){return"Searching…"},removeAllItems:function(){return"Remove all items"},removeItem:function(){return"Remove item"},search:function(){return"Search"}}}),s.define("select2/defaults",["jquery","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/selectionCss","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./dropdown/dropdownCss","./dropdown/tagsSearchHighlight","./i18n/en"],function(o,r,a,l,c,u,h,d,f,p,g,_,b,v,w,x,A,M,P,N,k,m,E,I,y,O,S,C,L,D,B){function F(){this.reset()}F.prototype.apply=function(T){if(T=o.extend(!0,{},this.defaults,T),T.dataAdapter==null&&(T.ajax!=null?T.dataAdapter=w:T.data!=null?T.dataAdapter=v:T.dataAdapter=b,T.minimumInputLength>0&&(T.dataAdapter=p.Decorate(T.dataAdapter,M)),T.maximumInputLength>0&&(T.dataAdapter=p.Decorate(T.dataAdapter,P)),T.maximumSelectionLength>0&&(T.dataAdapter=p.Decorate(T.dataAdapter,N)),T.tags&&(T.dataAdapter=p.Decorate(T.dataAdapter,x)),(T.tokenSeparators!=null||T.tokenizer!=null)&&(T.dataAdapter=p.Decorate(T.dataAdapter,A))),T.resultsAdapter==null&&(T.resultsAdapter=r,T.ajax!=null&&(T.resultsAdapter=p.Decorate(T.resultsAdapter,I)),T.placeholder!=null&&(T.resultsAdapter=p.Decorate(T.resultsAdapter,E)),T.selectOnClose&&(T.resultsAdapter=p.Decorate(T.resultsAdapter,S)),T.tags&&(T.resultsAdapter=p.Decorate(T.resultsAdapter,D))),T.dropdownAdapter==null){if(T.multiple)T.dropdownAdapter=k;else{var V=p.Decorate(k,m);T.dropdownAdapter=V}T.minimumResultsForSearch!==0&&(T.dropdownAdapter=p.Decorate(T.dropdownAdapter,O)),T.closeOnSelect&&(T.dropdownAdapter=p.Decorate(T.dropdownAdapter,C)),T.dropdownCssClass!=null&&(T.dropdownAdapter=p.Decorate(T.dropdownAdapter,L)),T.dropdownAdapter=p.Decorate(T.dropdownAdapter,y)}T.selectionAdapter==null&&(T.multiple?T.selectionAdapter=l:T.selectionAdapter=a,T.placeholder!=null&&(T.selectionAdapter=p.Decorate(T.selectionAdapter,c)),T.allowClear&&(T.selectionAdapter=p.Decorate(T.selectionAdapter,u)),T.multiple&&(T.selectionAdapter=p.Decorate(T.selectionAdapter,h)),T.selectionCssClass!=null&&(T.selectionAdapter=p.Decorate(T.selectionAdapter,d)),T.selectionAdapter=p.Decorate(T.selectionAdapter,f)),T.language=this._resolveLanguage(T.language),T.language.push("en");for(var j=[],q=0;q0){for(var U=o.extend(!0,{},q),G=q.children.length-1;G>=0;G--){var nt=q.children[G],lt=V(j,nt);lt==null&&U.children.splice(G,1)}return U.children.length>0?U:V(j,U)}var ut=T(q.text).toUpperCase(),pt=T(j.term).toUpperCase();return ut.indexOf(pt)>-1?q:null}this.defaults={amdLanguageBase:"./i18n/",autocomplete:"off",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:p.escapeMarkup,language:{},matcher:V,minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,scrollAfterSelect:!1,sorter:function(j){return j},templateResult:function(j){return j.text},templateSelection:function(j){return j.text},theme:"default",width:"resolve"}},F.prototype.applyFromElement=function(T,V){var j=T.language,q=this.defaults.language,U=V.prop("lang"),G=V.closest("[lang]").prop("lang"),nt=Array.prototype.concat.call(this._resolveLanguage(U),this._resolveLanguage(j),this._resolveLanguage(q),this._resolveLanguage(G));return T.language=nt,T},F.prototype._resolveLanguage=function(T){if(!T)return[];if(o.isEmptyObject(T))return[];if(o.isPlainObject(T))return[T];var V;Array.isArray(T)?V=T:V=[T];for(var j=[],q=0;q0){var U=V[q].split("-"),G=U[0];j.push(G)}return j},F.prototype._processTranslations=function(T,V){for(var j=new g,q=0;q-1||(o.isPlainObject(this.options[x])?o.extend(this.options[x],w[x]):this.options[x]=w[x]);return this},l.prototype.get=function(c){return this.options[c]},l.prototype.set=function(c,u){this.options[c]=u},l}),s.define("select2/core",["jquery","./options","./utils","./keys"],function(o,r,a,l){var c=function(u,h){a.GetData(u[0],"select2")!=null&&a.GetData(u[0],"select2").destroy(),this.$element=u,this.id=this._generateId(u),h=h||{},this.options=new r(h,u),c.__super__.constructor.call(this);var d=u.attr("tabindex")||0;a.StoreData(u[0],"old-tabindex",d),u.attr("tabindex","-1");var f=this.options.get("dataAdapter");this.dataAdapter=new f(u,this.options);var p=this.render();this._placeContainer(p);var g=this.options.get("selectionAdapter");this.selection=new g(u,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,p);var _=this.options.get("dropdownAdapter");this.dropdown=new _(u,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,p);var b=this.options.get("resultsAdapter");this.results=new b(u,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var v=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(w){v.trigger("selection:update",{data:w})}),u[0].classList.add("select2-hidden-accessible"),u.attr("aria-hidden","true"),this._syncAttributes(),a.StoreData(u[0],"select2",this),u.data("select2",this)};return a.Extend(c,a.Observable),c.prototype._generateId=function(u){var h="";return u.attr("id")!=null?h=u.attr("id"):u.attr("name")!=null?h=u.attr("name")+"-"+a.generateChars(2):h=a.generateChars(4),h=h.replace(/(:|\.|\[|\]|,)/g,""),h="select2-"+h,h},c.prototype._placeContainer=function(u){u.insertAfter(this.$element);var h=this._resolveWidth(this.$element,this.options.get("width"));h!=null&&u.css("width",h)},c.prototype._resolveWidth=function(u,h){var d=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if(h=="resolve"){var f=this._resolveWidth(u,"style");return f??this._resolveWidth(u,"element")}if(h=="element"){var p=u.outerWidth(!1);return p<=0?"auto":p+"px"}if(h=="style"){var g=u.attr("style");if(typeof g!="string")return null;for(var _=g.split(";"),b=0,v=_.length;b=1)return x[1]}return null}if(h=="computedstyle"){var A=window.getComputedStyle(u[0]);return A.width}return h},c.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},c.prototype._registerDomEvents=function(){var u=this;this.$element.on("change.select2",function(){u.dataAdapter.current(function(h){u.trigger("selection:update",{data:h})})}),this.$element.on("focus.select2",function(h){u.trigger("focus",h)}),this._syncA=a.bind(this._syncAttributes,this),this._syncS=a.bind(this._syncSubtree,this),this._observer=new window.MutationObserver(function(h){u._syncA(),u._syncS(h)}),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})},c.prototype._registerDataEvents=function(){var u=this;this.dataAdapter.on("*",function(h,d){u.trigger(h,d)})},c.prototype._registerSelectionEvents=function(){var u=this,h=["toggle","focus"];this.selection.on("toggle",function(){u.toggleDropdown()}),this.selection.on("focus",function(d){u.focus(d)}),this.selection.on("*",function(d,f){h.indexOf(d)===-1&&u.trigger(d,f)})},c.prototype._registerDropdownEvents=function(){var u=this;this.dropdown.on("*",function(h,d){u.trigger(h,d)})},c.prototype._registerResultsEvents=function(){var u=this;this.results.on("*",function(h,d){u.trigger(h,d)})},c.prototype._registerEvents=function(){var u=this;this.on("open",function(){u.$container[0].classList.add("select2-container--open")}),this.on("close",function(){u.$container[0].classList.remove("select2-container--open")}),this.on("enable",function(){u.$container[0].classList.remove("select2-container--disabled")}),this.on("disable",function(){u.$container[0].classList.add("select2-container--disabled")}),this.on("blur",function(){u.$container[0].classList.remove("select2-container--focus")}),this.on("query",function(h){u.isOpen()||u.trigger("open",{}),this.dataAdapter.query(h,function(d){u.trigger("results:all",{data:d,query:h})})}),this.on("query:append",function(h){this.dataAdapter.query(h,function(d){u.trigger("results:append",{data:d,query:h})})}),this.on("keypress",function(h){var d=h.which;u.isOpen()?d===l.ESC||d===l.UP&&h.altKey?(u.close(h),h.preventDefault()):d===l.ENTER||d===l.TAB?(u.trigger("results:select",{}),h.preventDefault()):d===l.SPACE&&h.ctrlKey?(u.trigger("results:toggle",{}),h.preventDefault()):d===l.UP?(u.trigger("results:previous",{}),h.preventDefault()):d===l.DOWN&&(u.trigger("results:next",{}),h.preventDefault()):(d===l.ENTER||d===l.SPACE||d===l.DOWN&&h.altKey)&&(u.open(),h.preventDefault())})},c.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.isDisabled()?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},c.prototype._isChangeMutation=function(u){var h=this;if(u.addedNodes&&u.addedNodes.length>0)for(var d=0;d0)return!0;if(Array.isArray(u))return u.some(function(p){return h._isChangeMutation(p)})}return!1},c.prototype._syncSubtree=function(u){var h=this._isChangeMutation(u),d=this;h&&this.dataAdapter.current(function(f){d.trigger("selection:update",{data:f})})},c.prototype.trigger=function(u,h){var d=c.__super__.trigger,f={open:"opening",close:"closing",select:"selecting",unselect:"unselecting",clear:"clearing"};if(h===void 0&&(h={}),u in f){var p=f[u],g={prevented:!1,name:u,args:h};if(d.call(this,p,g),g.prevented){h.prevented=!0;return}}d.call(this,u,h)},c.prototype.toggleDropdown=function(){this.isDisabled()||(this.isOpen()?this.close():this.open())},c.prototype.open=function(){this.isOpen()||this.isDisabled()||this.trigger("query",{})},c.prototype.close=function(u){this.isOpen()&&this.trigger("close",{originalEvent:u})},c.prototype.isEnabled=function(){return!this.isDisabled()},c.prototype.isDisabled=function(){return this.options.get("disabled")},c.prototype.isOpen=function(){return this.$container[0].classList.contains("select2-container--open")},c.prototype.hasFocus=function(){return this.$container[0].classList.contains("select2-container--focus")},c.prototype.focus=function(u){this.hasFocus()||(this.$container[0].classList.add("select2-container--focus"),this.trigger("focus",{}))},c.prototype.enable=function(u){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'),(u==null||u.length===0)&&(u=[!0]);var h=!u[0];this.$element.prop("disabled",h)},c.prototype.data=function(){this.options.get("debug")&&arguments.length>0&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var u=[];return this.dataAdapter.current(function(h){u=h}),u},c.prototype.val=function(u){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),u==null||u.length===0)return this.$element.val();var h=u[0];Array.isArray(h)&&(h=h.map(function(d){return d.toString()})),this.$element.val(h).trigger("input").trigger("change")},c.prototype.destroy=function(){a.RemoveData(this.$container[0]),this.$container.remove(),this._observer.disconnect(),this._observer=null,this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",a.GetData(this.$element[0],"old-tabindex")),this.$element[0].classList.remove("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),a.RemoveData(this.$element[0]),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},c.prototype.render=function(){var u=o('');return u.attr("dir",this.options.get("dir")),this.$container=u,this.$container[0].classList.add("select2-container--"+this.options.get("theme")),a.StoreData(u[0],"element",this.$element),u},c}),s.define("jquery-mousewheel",["jquery"],function(o){return o}),s.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults","./select2/utils"],function(o,r,a,l,c){if(o.fn.select2==null){var u=["open","close","destroy"];o.fn.select2=function(h){if(h=h||{},typeof h=="object")return this.each(function(){var p=o.extend(!0,{},h);new a(o(this),p)}),this;if(typeof h=="string"){var d,f=Array.prototype.slice.call(arguments,1);return this.each(function(){var p=c.GetData(this,"select2");p==null&&window.console&&console.error&&console.error("The select2('"+h+"') method was called on an element that is not using Select2."),d=p[h].apply(p,f)}),u.indexOf(h)>-1?this:d}else throw new Error("Invalid arguments for Select2: "+h)}}return o.fn.select2.defaults==null&&(o.fn.select2.defaults=l),a}),{define:s.define,require:s.require}}(),i=e.require("jquery.select2");return t.fn.select2.amd=e,i})})(uu);var L_=uu.exports;const P_=es(L_);var hu={exports:{}};(function(n,t){(function(e,i){n.exports=i()})(Hl,function(){var e=1e3,i=6e4,s=36e5,o="millisecond",r="second",a="minute",l="hour",c="day",u="week",h="month",d="quarter",f="year",p="date",g="Invalid Date",_=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(O){var S=["th","st","nd","rd"],C=O%100;return"["+O+(S[(C-20)%10]||S[C]||S[0])+"]"}},w=function(O,S,C){var L=String(O);return!L||L.length>=S?O:""+Array(S+1-L.length).join(C)+O},x={s:w,z:function(O){var S=-O.utcOffset(),C=Math.abs(S),L=Math.floor(C/60),D=C%60;return(S<=0?"+":"-")+w(L,2,"0")+":"+w(D,2,"0")},m:function O(S,C){if(S.date()1)return O(F[0])}else{var W=S.name;M[W]=S,D=W}return!L&&D&&(A=D),D||!L&&A},m=function(O,S){if(N(O))return O.clone();var C=typeof S=="object"?S:{};return C.date=O,C.args=arguments,new I(C)},E=x;E.l=k,E.i=N,E.w=function(O,S){return m(O,{locale:S.$L,utc:S.$u,x:S.$x,$offset:S.$offset})};var I=function(){function O(C){this.$L=k(C.locale,null,!0),this.parse(C),this.$x=this.$x||C.x||{},this[P]=!0}var S=O.prototype;return S.parse=function(C){this.$d=function(L){var D=L.date,B=L.utc;if(D===null)return new Date(NaN);if(E.u(D))return new Date;if(D instanceof Date)return new Date(D);if(typeof D=="string"&&!/Z$/i.test(D)){var F=D.match(_);if(F){var W=F[2]-1||0,T=(F[7]||"0").substring(0,3);return B?new Date(Date.UTC(F[1],W,F[3]||1,F[4]||0,F[5]||0,F[6]||0,T)):new Date(F[1],W,F[3]||1,F[4]||0,F[5]||0,F[6]||0,T)}}return new Date(D)}(C),this.init()},S.init=function(){var C=this.$d;this.$y=C.getFullYear(),this.$M=C.getMonth(),this.$D=C.getDate(),this.$W=C.getDay(),this.$H=C.getHours(),this.$m=C.getMinutes(),this.$s=C.getSeconds(),this.$ms=C.getMilliseconds()},S.$utils=function(){return E},S.isValid=function(){return this.$d.toString()!==g},S.isSame=function(C,L){var D=m(C);return this.startOf(L)<=D&&D<=this.endOf(L)},S.isAfter=function(C,L){return m(C)=0;E--)v(e(m[E]),k)}function v(k,m,E){var I=E&&E.force?E.force:!1;return k&&(I||e(":focus",k).length===0)?(k[m.hideMethod]({duration:m.hideDuration,easing:m.hideEasing,complete:function(){N(k)}}),!0):!1}function w(k){return i=e("
      ").attr("id",k.containerId).addClass(k.positionClass),i.appendTo(e(k.target)),i}function x(){return{tapToDismiss:!0,toastClass:"toast",containerId:"toast-container",debug:!1,showMethod:"fadeIn",showDuration:300,showEasing:"swing",onShown:void 0,hideMethod:"fadeOut",hideDuration:1e3,hideEasing:"swing",onHidden:void 0,closeMethod:!1,closeDuration:!1,closeEasing:!1,closeOnHover:!0,extendedTimeOut:1e3,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},iconClass:"toast-info",positionClass:"toast-top-right",timeOut:5e3,titleClass:"toast-title",messageClass:"toast-message",escapeHtml:!1,target:"body",closeHtml:'',closeClass:"toast-close-button",newestOnTop:!0,preventDuplicates:!1,progressBar:!1,progressClass:"toast-progress",rtl:!1}}function A(k){s&&s(k)}function M(k){var m=P(),E=k.iconClass||m.iconClass;if(typeof k.optionsOverride<"u"&&(m=e.extend(m,k.optionsOverride),E=k.optionsOverride.iconClass||E),Yt(m,k))return;o++,i=u(m,!0);var I=null,y=e("
      "),O=e("
      "),S=e("
      "),C=e("
      "),L=e(m.closeHtml),D={intervalId:null,hideEta:null,maxHideTime:null},B={toastId:o,state:"visible",startTime:new Date,options:m,map:k};return W(),j(),V(),A(B),m.debug&&console&&console.log(B),y;function F(J){return J==null&&(J=""),J.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function W(){q(),G(),nt(),lt(),ut(),pt(),U(),T()}function T(){var J="";switch(k.iconClass){case"toast-success":case"toast-info":J="polite";break;default:J="assertive"}y.attr("aria-live",J)}function V(){m.closeOnHover&&y.hover(xs,Es),!m.onclick&&m.tapToDismiss&&y.click(wt),m.closeButton&&L&&L.click(function(J){J.stopPropagation?J.stopPropagation():J.cancelBubble!==void 0&&J.cancelBubble!==!0&&(J.cancelBubble=!0),m.onCloseClick&&m.onCloseClick(J),wt(!0)}),m.onclick&&y.click(function(J){m.onclick(J),wt()})}function j(){y.hide(),y[m.showMethod]({duration:m.showDuration,easing:m.showEasing,complete:m.onShown}),m.timeOut>0&&(I=setTimeout(wt,m.timeOut),D.maxHideTime=parseFloat(m.timeOut),D.hideEta=new Date().getTime()+D.maxHideTime,m.progressBar&&(D.intervalId=setInterval(ni,10)))}function q(){k.iconClass&&y.addClass(m.toastClass).addClass(E)}function U(){m.newestOnTop?i.prepend(y):i.append(y)}function G(){if(k.title){var J=k.title;m.escapeHtml&&(J=F(k.title)),O.append(J).addClass(m.titleClass),y.append(O)}}function nt(){if(k.message){var J=k.message;m.escapeHtml&&(J=F(k.message)),S.append(J).addClass(m.messageClass),y.append(S)}}function lt(){m.closeButton&&(L.addClass(m.closeClass).attr("role","button"),y.prepend(L))}function ut(){m.progressBar&&(C.addClass(m.progressClass),y.prepend(C))}function pt(){m.rtl&&y.addClass("rtl")}function Yt(J,je){if(J.preventDuplicates){if(je.message===l)return!0;l=je.message}return!1}function wt(J){var je=J&&m.closeMethod!==!1?m.closeMethod:m.hideMethod,ws=J&&m.closeDuration!==!1?m.closeDuration:m.hideDuration,Ut=J&&m.closeEasing!==!1?m.closeEasing:m.hideEasing;if(!(e(":focus",y).length&&!J))return clearTimeout(D.intervalId),y[je]({duration:ws,easing:Ut,complete:function(){N(y),clearTimeout(I),m.onHidden&&B.state!=="hidden"&&m.onHidden(),B.state="hidden",B.endTime=new Date,A(B)}})}function Es(){(m.timeOut>0||m.extendedTimeOut>0)&&(I=setTimeout(wt,m.extendedTimeOut),D.maxHideTime=parseFloat(m.extendedTimeOut),D.hideEta=new Date().getTime()+D.maxHideTime)}function xs(){clearTimeout(I),D.hideEta=0,y.stop(!0,!0)[m.showMethod]({duration:m.showDuration,easing:m.showEasing})}function ni(){var J=(D.hideEta-new Date().getTime())/D.maxHideTime*100;C.width(J+"%")}}function P(){return e.extend({},x(),a.options)}function N(k){i||(i=u()),!k.is(":visible")&&(k.remove(),k=null,i.children().length===0&&(i.remove(),l=void 0))}}()})})(function(t,e){n.exports?n.exports=e(zi()):window.toastr=e(window.jQuery)})})(du);var N_=du.exports;const F_=es(N_);/*! + */var o,r,a;(function(l){var c,u,h,d,f={},p={},g={},_={},b=Object.prototype.hasOwnProperty,v=[].slice,w=/\.js$/;function x(y,O){return b.call(y,O)}function A(y,O){var S,C,L,D,B,F,W,T,V,j,q,U,G=O&&O.split("/"),nt=g.map,lt=nt&&nt["*"]||{};if(y){for(y=y.split("/"),B=y.length-1,g.nodeIdCompat&&w.test(y[B])&&(y[B]=y[B].replace(w,"")),y[0].charAt(0)==="."&&G&&(U=G.slice(0,G.length-1),y=U.concat(y)),V=0;V0&&(y.splice(V-1,2),V-=2)}y=y.join("/")}if((G||lt)&&nt){for(S=y.split("/"),V=S.length;V>0;V-=1){if(C=S.slice(0,V).join("/"),G){for(j=G.length;j>0;j-=1)if(L=nt[G.slice(0,j).join("/")],L&&(L=L[C],L)){D=L,F=V;break}}if(D)break;!W&<&<[C]&&(W=lt[C],T=V)}!D&&W&&(D=W,F=T),D&&(S.splice(0,F,D),y=S.join("/"))}return y}function M(y,O){return function(){var S=v.call(arguments,0);return typeof S[0]!="string"&&S.length===1&&S.push(null),u.apply(l,S.concat([y,O]))}}function P(y){return function(O){return A(O,y)}}function N(y){return function(O){f[y]=O}}function k(y){if(x(p,y)){var O=p[y];delete p[y],_[y]=!0,c.apply(l,O)}if(!x(f,y)&&!x(_,y))throw new Error("No "+y);return f[y]}function m(y){var O,S=y?y.indexOf("!"):-1;return S>-1&&(O=y.substring(0,S),y=y.substring(S+1,y.length)),[O,y]}function E(y){return y?m(y):[]}h=function(y,O){var S,C=m(y),L=C[0],D=O[1];return y=C[1],L&&(L=A(L,D),S=k(L)),L?S&&S.normalize?y=S.normalize(y,P(D)):y=A(y,D):(y=A(y,D),C=m(y),L=C[0],y=C[1],L&&(S=k(L))),{f:L?L+"!"+y:y,n:y,pr:L,p:S}};function I(y){return function(){return g&&g.config&&g.config[y]||{}}}d={require:function(y){return M(y)},exports:function(y){var O=f[y];return typeof O<"u"?O:f[y]={}},module:function(y){return{id:y,uri:"",exports:f[y],config:I(y)}}},c=function(y,O,S,C){var L,D,B,F,W,T,V=[],j=typeof S,q;if(C=C||y,T=E(C),j==="undefined"||j==="function"){for(O=!O.length&&S.length?["require","exports","module"]:O,W=0;W0&&(A.call(arguments,u.prototype.constructor),P=h.prototype.constructor),P.apply(this,arguments)}h.displayName=u.displayName;function g(){this.constructor=p}p.prototype=new g;for(var _=0;_":">",'"':""","'":"'","/":"/"};return typeof u!="string"?u:String(u).replace(/[&<>"'\/\\]/g,function(d){return h[d]})},r.__cache={};var c=0;return r.GetUniqueElementId=function(u){var h=u.getAttribute("data-select2-id");return h!=null||(u.id?h="select2-data-"+u.id:h="select2-data-"+(++c).toString()+"-"+r.generateChars(4),u.setAttribute("data-select2-id",h)),h},r.StoreData=function(u,h,d){var f=r.GetUniqueElementId(u);r.__cache[f]||(r.__cache[f]={}),r.__cache[f][h]=d},r.GetData=function(u,h){var d=r.GetUniqueElementId(u);return h?r.__cache[d]&&r.__cache[d][h]!=null?r.__cache[d][h]:o(u).data(h):r.__cache[d]},r.RemoveData=function(u){var h=r.GetUniqueElementId(u);r.__cache[h]!=null&&delete r.__cache[h],u.removeAttribute("data-select2-id")},r.copyNonInternalCssClasses=function(u,h){var d=u.getAttribute("class").trim().split(/\s+/);d=d.filter(function(g){return g.indexOf("select2-")===0});var f=h.getAttribute("class").trim().split(/\s+/);f=f.filter(function(g){return g.indexOf("select2-")!==0});var p=d.concat(f);u.setAttribute("class",p.join(" "))},r}),s.define("select2/results",["jquery","./utils"],function(o,r){function a(l,c,u){this.$element=l,this.data=u,this.options=c,a.__super__.constructor.call(this)}return r.Extend(a,r.Observable),a.prototype.render=function(){var l=o('
        ');return this.options.get("multiple")&&l.attr("aria-multiselectable","true"),this.$results=l,l},a.prototype.clear=function(){this.$results.empty()},a.prototype.displayMessage=function(l){var c=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var u=o(''),h=this.options.get("translations").get(l.message);u.append(c(h(l.args))),u[0].className+=" select2-results__message",this.$results.append(u)},a.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},a.prototype.append=function(l){this.hideLoading();var c=[];if(l.results==null||l.results.length===0){this.$results.children().length===0&&this.trigger("results:message",{message:"noResults"});return}l.results=this.sort(l.results);for(var u=0;u0?c.first().trigger("mouseenter"):l.first().trigger("mouseenter"),this.ensureHighlightVisible()},a.prototype.setClasses=function(){var l=this;this.data.current(function(c){var u=c.map(function(d){return d.id.toString()}),h=l.$results.find(".select2-results__option--selectable");h.each(function(){var d=o(this),f=r.GetData(this,"data"),p=""+f.id;f.element!=null&&f.element.selected||f.element==null&&u.indexOf(p)>-1?(this.classList.add("select2-results__option--selected"),d.attr("aria-selected","true")):(this.classList.remove("select2-results__option--selected"),d.attr("aria-selected","false"))})})},a.prototype.showLoading=function(l){this.hideLoading();var c=this.options.get("translations").get("searching"),u={disabled:!0,loading:!0,text:c(l)},h=this.option(u);h.className+=" loading-results",this.$results.prepend(h)},a.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},a.prototype.option=function(l){var c=document.createElement("li");c.classList.add("select2-results__option"),c.classList.add("select2-results__option--selectable");var u={role:"option"},h=window.Element.prototype.matches||window.Element.prototype.msMatchesSelector||window.Element.prototype.webkitMatchesSelector;(l.element!=null&&h.call(l.element,":disabled")||l.element==null&&l.disabled)&&(u["aria-disabled"]="true",c.classList.remove("select2-results__option--selectable"),c.classList.add("select2-results__option--disabled")),l.id==null&&c.classList.remove("select2-results__option--selectable"),l._resultId!=null&&(c.id=l._resultId),l.title&&(c.title=l.title),l.children&&(u.role="group",u["aria-label"]=l.text,c.classList.remove("select2-results__option--selectable"),c.classList.add("select2-results__option--group"));for(var d in u){var f=u[d];c.setAttribute(d,f)}if(l.children){var p=o(c),g=document.createElement("strong");g.className="select2-results__group",this.template(l,g);for(var _=[],b=0;b",{class:"select2-results__options select2-results__options--nested",role:"none"});x.append(_),p.append(g),p.append(x)}else this.template(l,c);return r.StoreData(c,"data",l),c},a.prototype.bind=function(l,c){var u=this,h=l.id+"-results";this.$results.attr("id",h),l.on("results:all",function(d){u.clear(),u.append(d.data),l.isOpen()&&(u.setClasses(),u.highlightFirstItem())}),l.on("results:append",function(d){u.append(d.data),l.isOpen()&&u.setClasses()}),l.on("query",function(d){u.hideMessages(),u.showLoading(d)}),l.on("select",function(){l.isOpen()&&(u.setClasses(),u.options.get("scrollAfterSelect")&&u.highlightFirstItem())}),l.on("unselect",function(){l.isOpen()&&(u.setClasses(),u.options.get("scrollAfterSelect")&&u.highlightFirstItem())}),l.on("open",function(){u.$results.attr("aria-expanded","true"),u.$results.attr("aria-hidden","false"),u.setClasses(),u.ensureHighlightVisible()}),l.on("close",function(){u.$results.attr("aria-expanded","false"),u.$results.attr("aria-hidden","true"),u.$results.removeAttr("aria-activedescendant")}),l.on("results:toggle",function(){var d=u.getHighlightedResults();d.length!==0&&d.trigger("mouseup")}),l.on("results:select",function(){var d=u.getHighlightedResults();if(d.length!==0){var f=r.GetData(d[0],"data");d.hasClass("select2-results__option--selected")?u.trigger("close",{}):u.trigger("select",{data:f})}}),l.on("results:previous",function(){var d=u.getHighlightedResults(),f=u.$results.find(".select2-results__option--selectable"),p=f.index(d);if(!(p<=0)){var g=p-1;d.length===0&&(g=0);var _=f.eq(g);_.trigger("mouseenter");var b=u.$results.offset().top,v=_.offset().top,w=u.$results.scrollTop()+(v-b);g===0?u.$results.scrollTop(0):v-b<0&&u.$results.scrollTop(w)}}),l.on("results:next",function(){var d=u.getHighlightedResults(),f=u.$results.find(".select2-results__option--selectable"),p=f.index(d),g=p+1;if(!(g>=f.length)){var _=f.eq(g);_.trigger("mouseenter");var b=u.$results.offset().top+u.$results.outerHeight(!1),v=_.offset().top+_.outerHeight(!1),w=u.$results.scrollTop()+v-b;g===0?u.$results.scrollTop(0):v>b&&u.$results.scrollTop(w)}}),l.on("results:focus",function(d){d.element[0].classList.add("select2-results__option--highlighted"),d.element[0].setAttribute("aria-selected","true")}),l.on("results:message",function(d){u.displayMessage(d)}),o.fn.mousewheel&&this.$results.on("mousewheel",function(d){var f=u.$results.scrollTop(),p=u.$results.get(0).scrollHeight-f+d.deltaY,g=d.deltaY>0&&f-d.deltaY<=0,_=d.deltaY<0&&p<=u.$results.height();g?(u.$results.scrollTop(0),d.preventDefault(),d.stopPropagation()):_&&(u.$results.scrollTop(u.$results.get(0).scrollHeight-u.$results.height()),d.preventDefault(),d.stopPropagation())}),this.$results.on("mouseup",".select2-results__option--selectable",function(d){var f=o(this),p=r.GetData(this,"data");if(f.hasClass("select2-results__option--selected")){u.options.get("multiple")?u.trigger("unselect",{originalEvent:d,data:p}):u.trigger("close",{});return}u.trigger("select",{originalEvent:d,data:p})}),this.$results.on("mouseenter",".select2-results__option--selectable",function(d){var f=r.GetData(this,"data");u.getHighlightedResults().removeClass("select2-results__option--highlighted").attr("aria-selected","false"),u.trigger("results:focus",{data:f,element:o(this)})})},a.prototype.getHighlightedResults=function(){var l=this.$results.find(".select2-results__option--highlighted");return l},a.prototype.destroy=function(){this.$results.remove()},a.prototype.ensureHighlightVisible=function(){var l=this.getHighlightedResults();if(l.length!==0){var c=this.$results.find(".select2-results__option--selectable"),u=c.index(l),h=this.$results.offset().top,d=l.offset().top,f=this.$results.scrollTop()+(d-h),p=d-h;f-=l.outerHeight(!1)*2,u<=2?this.$results.scrollTop(0):(p>this.$results.outerHeight()||p<0)&&this.$results.scrollTop(f)}},a.prototype.template=function(l,c){var u=this.options.get("templateResult"),h=this.options.get("escapeMarkup"),d=u(l,c);d==null?c.style.display="none":typeof d=="string"?c.innerHTML=h(d):o(c).append(d)},a}),s.define("select2/keys",[],function(){var o={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46};return o}),s.define("select2/selection/base",["jquery","../utils","../keys"],function(o,r,a){function l(c,u){this.$element=c,this.options=u,l.__super__.constructor.call(this)}return r.Extend(l,r.Observable),l.prototype.render=function(){var c=o('');return this._tabindex=0,r.GetData(this.$element[0],"old-tabindex")!=null?this._tabindex=r.GetData(this.$element[0],"old-tabindex"):this.$element.attr("tabindex")!=null&&(this._tabindex=this.$element.attr("tabindex")),c.attr("title",this.$element.attr("title")),c.attr("tabindex",this._tabindex),c.attr("aria-disabled","false"),this.$selection=c,c},l.prototype.bind=function(c,u){var h=this,d=c.id+"-results";this.container=c,this.$selection.on("focus",function(f){h.trigger("focus",f)}),this.$selection.on("blur",function(f){h._handleBlur(f)}),this.$selection.on("keydown",function(f){h.trigger("keypress",f),f.which===a.SPACE&&f.preventDefault()}),c.on("results:focus",function(f){h.$selection.attr("aria-activedescendant",f.data._resultId)}),c.on("selection:update",function(f){h.update(f.data)}),c.on("open",function(){h.$selection.attr("aria-expanded","true"),h.$selection.attr("aria-owns",d),h._attachCloseHandler(c)}),c.on("close",function(){h.$selection.attr("aria-expanded","false"),h.$selection.removeAttr("aria-activedescendant"),h.$selection.removeAttr("aria-owns"),h.$selection.trigger("focus"),h._detachCloseHandler(c)}),c.on("enable",function(){h.$selection.attr("tabindex",h._tabindex),h.$selection.attr("aria-disabled","false")}),c.on("disable",function(){h.$selection.attr("tabindex","-1"),h.$selection.attr("aria-disabled","true")})},l.prototype._handleBlur=function(c){var u=this;window.setTimeout(function(){document.activeElement==u.$selection[0]||o.contains(u.$selection[0],document.activeElement)||u.trigger("blur",c)},1)},l.prototype._attachCloseHandler=function(c){o(document.body).on("mousedown.select2."+c.id,function(u){var h=o(u.target),d=h.closest(".select2"),f=o(".select2.select2-container--open");f.each(function(){if(this!=d[0]){var p=r.GetData(this,"element");p.select2("close")}})})},l.prototype._detachCloseHandler=function(c){o(document.body).off("mousedown.select2."+c.id)},l.prototype.position=function(c,u){var h=u.find(".selection");h.append(c)},l.prototype.destroy=function(){this._detachCloseHandler(this.container)},l.prototype.update=function(c){throw new Error("The `update` method must be defined in child classes.")},l.prototype.isEnabled=function(){return!this.isDisabled()},l.prototype.isDisabled=function(){return this.options.get("disabled")},l}),s.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(o,r,a,l){function c(){c.__super__.constructor.apply(this,arguments)}return a.Extend(c,r),c.prototype.render=function(){var u=c.__super__.render.call(this);return u[0].classList.add("select2-selection--single"),u.html(''),u},c.prototype.bind=function(u,h){var d=this;c.__super__.bind.apply(this,arguments);var f=u.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",f).attr("role","textbox").attr("aria-readonly","true"),this.$selection.attr("aria-labelledby",f),this.$selection.attr("aria-controls",f),this.$selection.on("mousedown",function(p){p.which===1&&d.trigger("toggle",{originalEvent:p})}),this.$selection.on("focus",function(p){}),this.$selection.on("blur",function(p){}),u.on("focus",function(p){u.isOpen()||d.$selection.trigger("focus")})},c.prototype.clear=function(){var u=this.$selection.find(".select2-selection__rendered");u.empty(),u.removeAttr("title")},c.prototype.display=function(u,h){var d=this.options.get("templateSelection"),f=this.options.get("escapeMarkup");return f(d(u,h))},c.prototype.selectionContainer=function(){return o("")},c.prototype.update=function(u){if(u.length===0){this.clear();return}var h=u[0],d=this.$selection.find(".select2-selection__rendered"),f=this.display(h,d);d.empty().append(f);var p=h.title||h.text;p?d.attr("title",p):d.removeAttr("title")},c}),s.define("select2/selection/multiple",["jquery","./base","../utils"],function(o,r,a){function l(c,u){l.__super__.constructor.apply(this,arguments)}return a.Extend(l,r),l.prototype.render=function(){var c=l.__super__.render.call(this);return c[0].classList.add("select2-selection--multiple"),c.html('
          '),c},l.prototype.bind=function(c,u){var h=this;l.__super__.bind.apply(this,arguments);var d=c.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",d),this.$selection.on("click",function(f){h.trigger("toggle",{originalEvent:f})}),this.$selection.on("click",".select2-selection__choice__remove",function(f){if(!h.isDisabled()){var p=o(this),g=p.parent(),_=a.GetData(g[0],"data");h.trigger("unselect",{originalEvent:f,data:_})}}),this.$selection.on("keydown",".select2-selection__choice__remove",function(f){h.isDisabled()||f.stopPropagation()})},l.prototype.clear=function(){var c=this.$selection.find(".select2-selection__rendered");c.empty(),c.removeAttr("title")},l.prototype.display=function(c,u){var h=this.options.get("templateSelection"),d=this.options.get("escapeMarkup");return d(h(c,u))},l.prototype.selectionContainer=function(){var c=o('
        • ');return c},l.prototype.update=function(c){if(this.clear(),c.length!==0){for(var u=[],h=this.$selection.find(".select2-selection__rendered").attr("id")+"-choice-",d=0;d1;if(c||l)return r.call(this,a);this.clear();var u=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(u)},o}),s.define("select2/selection/allowClear",["jquery","../keys","../utils"],function(o,r,a){function l(){}return l.prototype.bind=function(c,u,h){var d=this;c.call(this,u,h),this.placeholder==null&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",function(f){d._handleClear(f)}),u.on("keypress",function(f){d._handleKeyboardClear(f,u)})},l.prototype._handleClear=function(c,u){if(!this.isDisabled()){var h=this.$selection.find(".select2-selection__clear");if(h.length!==0){u.stopPropagation();var d=a.GetData(h[0],"data"),f=this.$element.val();this.$element.val(this.placeholder.id);var p={data:d};if(this.trigger("clear",p),p.prevented){this.$element.val(f);return}for(var g=0;g0||u.length===0)){var h=this.$selection.find(".select2-selection__rendered").attr("id"),d=this.options.get("translations").get("removeAllItems"),f=o('');f.attr("title",d()),f.attr("aria-label",d()),f.attr("aria-describedby",h),a.StoreData(f[0],"data",u),this.$selection.prepend(f),this.$selection[0].classList.add("select2-selection--clearable")}},l}),s.define("select2/selection/search",["jquery","../utils","../keys"],function(o,r,a){function l(c,u,h){c.call(this,u,h)}return l.prototype.render=function(c){var u=this.options.get("translations").get("search"),h=o('');this.$searchContainer=h,this.$search=h.find("textarea"),this.$search.prop("autocomplete",this.options.get("autocomplete")),this.$search.attr("aria-label",u());var d=c.call(this);return this._transferTabIndex(),d.append(this.$searchContainer),d},l.prototype.bind=function(c,u,h){var d=this,f=u.id+"-results",p=u.id+"-container";c.call(this,u,h),d.$search.attr("aria-describedby",p),u.on("open",function(){d.$search.attr("aria-controls",f),d.$search.trigger("focus")}),u.on("close",function(){d.$search.val(""),d.resizeSearch(),d.$search.removeAttr("aria-controls"),d.$search.removeAttr("aria-activedescendant"),d.$search.trigger("focus")}),u.on("enable",function(){d.$search.prop("disabled",!1),d._transferTabIndex()}),u.on("disable",function(){d.$search.prop("disabled",!0)}),u.on("focus",function(b){d.$search.trigger("focus")}),u.on("results:focus",function(b){b.data._resultId?d.$search.attr("aria-activedescendant",b.data._resultId):d.$search.removeAttr("aria-activedescendant")}),this.$selection.on("focusin",".select2-search--inline",function(b){d.trigger("focus",b)}),this.$selection.on("focusout",".select2-search--inline",function(b){d._handleBlur(b)}),this.$selection.on("keydown",".select2-search--inline",function(b){b.stopPropagation(),d.trigger("keypress",b),d._keyUpPrevented=b.isDefaultPrevented();var v=b.which;if(v===a.BACKSPACE&&d.$search.val()===""){var w=d.$selection.find(".select2-selection__choice").last();if(w.length>0){var x=r.GetData(w[0],"data");d.searchRemoveChoice(x),b.preventDefault()}}}),this.$selection.on("click",".select2-search--inline",function(b){d.$search.val()&&b.stopPropagation()});var g=document.documentMode,_=g&&g<=11;this.$selection.on("input.searchcheck",".select2-search--inline",function(b){if(_){d.$selection.off("input.search input.searchcheck");return}d.$selection.off("keyup.search")}),this.$selection.on("keyup.search input.search",".select2-search--inline",function(b){if(_&&b.type==="input"){d.$selection.off("input.search input.searchcheck");return}var v=b.which;v==a.SHIFT||v==a.CTRL||v==a.ALT||v!=a.TAB&&d.handleSearch(b)})},l.prototype._transferTabIndex=function(c){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},l.prototype.createPlaceholder=function(c,u){this.$search.attr("placeholder",u.text)},l.prototype.update=function(c,u){var h=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),c.call(this,u),this.resizeSearch(),h&&this.$search.trigger("focus")},l.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var c=this.$search.val();this.trigger("query",{term:c})}this._keyUpPrevented=!1},l.prototype.searchRemoveChoice=function(c,u){this.trigger("unselect",{data:u}),this.$search.val(u.text),this.handleSearch()},l.prototype.resizeSearch=function(){this.$search.css("width","25px");var c="100%";if(this.$search.attr("placeholder")===""){var u=this.$search.val().length+1;c=u*.75+"em"}this.$search.css("width",c)},l}),s.define("select2/selection/selectionCss",["../utils"],function(o){function r(){}return r.prototype.render=function(a){var l=a.call(this),c=this.options.get("selectionCssClass")||"";return c.indexOf(":all:")!==-1&&(c=c.replace(":all:",""),o.copyNonInternalCssClasses(l[0],this.$element[0])),l.addClass(c),l},r}),s.define("select2/selection/eventRelay",["jquery"],function(o){function r(){}return r.prototype.bind=function(a,l,c){var u=this,h=["open","opening","close","closing","select","selecting","unselect","unselecting","clear","clearing"],d=["opening","closing","selecting","unselecting","clearing"];a.call(this,l,c),l.on("*",function(f,p){if(h.indexOf(f)!==-1){p=p||{};var g=o.Event("select2:"+f,{params:p});u.$element.trigger(g),d.indexOf(f)!==-1&&(p.prevented=g.isDefaultPrevented())}})},r}),s.define("select2/translation",["jquery","require"],function(o,r){function a(l){this.dict=l||{}}return a.prototype.all=function(){return this.dict},a.prototype.get=function(l){return this.dict[l]},a.prototype.extend=function(l){this.dict=o.extend({},l.all(),this.dict)},a._cache={},a.loadPath=function(l){if(!(l in a._cache)){var c=r(l);a._cache[l]=c}return new a(a._cache[l])},a}),s.define("select2/diacritics",[],function(){var o={"Ⓐ":"A",A:"A",À:"A",Á:"A",Â:"A",Ầ:"A",Ấ:"A",Ẫ:"A",Ẩ:"A",Ã:"A",Ā:"A",Ă:"A",Ằ:"A",Ắ:"A",Ẵ:"A",Ẳ:"A",Ȧ:"A",Ǡ:"A",Ä:"A",Ǟ:"A",Ả:"A",Å:"A",Ǻ:"A",Ǎ:"A",Ȁ:"A",Ȃ:"A",Ạ:"A",Ậ:"A",Ặ:"A",Ḁ:"A",Ą:"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA",Æ:"AE",Ǽ:"AE",Ǣ:"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B",B:"B",Ḃ:"B",Ḅ:"B",Ḇ:"B","Ƀ":"B",Ƃ:"B",Ɓ:"B","Ⓒ":"C",C:"C",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",Ç:"C",Ḉ:"C",Ƈ:"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D",D:"D",Ḋ:"D",Ď:"D",Ḍ:"D",Ḑ:"D",Ḓ:"D",Ḏ:"D",Đ:"D",Ƌ:"D",Ɗ:"D",Ɖ:"D","Ꝺ":"D",DZ:"DZ",DŽ:"DZ",Dz:"Dz",Dž:"Dz","Ⓔ":"E",E:"E",È:"E",É:"E",Ê:"E",Ề:"E",Ế:"E",Ễ:"E",Ể:"E",Ẽ:"E",Ē:"E",Ḕ:"E",Ḗ:"E",Ĕ:"E",Ė:"E",Ë:"E",Ẻ:"E",Ě:"E",Ȅ:"E",Ȇ:"E",Ẹ:"E",Ệ:"E",Ȩ:"E",Ḝ:"E",Ę:"E",Ḙ:"E",Ḛ:"E",Ɛ:"E",Ǝ:"E","Ⓕ":"F",F:"F",Ḟ:"F",Ƒ:"F","Ꝼ":"F","Ⓖ":"G",G:"G",Ǵ:"G",Ĝ:"G",Ḡ:"G",Ğ:"G",Ġ:"G",Ǧ:"G",Ģ:"G",Ǥ:"G",Ɠ:"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H",H:"H",Ĥ:"H",Ḣ:"H",Ḧ:"H",Ȟ:"H",Ḥ:"H",Ḩ:"H",Ḫ:"H",Ħ:"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I",I:"I",Ì:"I",Í:"I",Î:"I",Ĩ:"I",Ī:"I",Ĭ:"I",İ:"I",Ï:"I",Ḯ:"I",Ỉ:"I",Ǐ:"I",Ȉ:"I",Ȋ:"I",Ị:"I",Į:"I",Ḭ:"I",Ɨ:"I","Ⓙ":"J",J:"J",Ĵ:"J","Ɉ":"J","Ⓚ":"K",K:"K",Ḱ:"K",Ǩ:"K",Ḳ:"K",Ķ:"K",Ḵ:"K",Ƙ:"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L",L:"L",Ŀ:"L",Ĺ:"L",Ľ:"L",Ḷ:"L",Ḹ:"L",Ļ:"L",Ḽ:"L",Ḻ:"L",Ł:"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L",LJ:"LJ",Lj:"Lj","Ⓜ":"M",M:"M",Ḿ:"M",Ṁ:"M",Ṃ:"M","Ɱ":"M",Ɯ:"M","Ⓝ":"N",N:"N",Ǹ:"N",Ń:"N",Ñ:"N",Ṅ:"N",Ň:"N",Ṇ:"N",Ņ:"N",Ṋ:"N",Ṉ:"N","Ƞ":"N",Ɲ:"N","Ꞑ":"N","Ꞥ":"N",NJ:"NJ",Nj:"Nj","Ⓞ":"O",O:"O",Ò:"O",Ó:"O",Ô:"O",Ồ:"O",Ố:"O",Ỗ:"O",Ổ:"O",Õ:"O",Ṍ:"O",Ȭ:"O",Ṏ:"O",Ō:"O",Ṑ:"O",Ṓ:"O",Ŏ:"O",Ȯ:"O",Ȱ:"O",Ö:"O",Ȫ:"O",Ỏ:"O",Ő:"O",Ǒ:"O",Ȍ:"O",Ȏ:"O",Ơ:"O",Ờ:"O",Ớ:"O",Ỡ:"O",Ở:"O",Ợ:"O",Ọ:"O",Ộ:"O",Ǫ:"O",Ǭ:"O",Ø:"O",Ǿ:"O",Ɔ:"O",Ɵ:"O","Ꝋ":"O","Ꝍ":"O",Œ:"OE",Ƣ:"OI","Ꝏ":"OO",Ȣ:"OU","Ⓟ":"P",P:"P",Ṕ:"P",Ṗ:"P",Ƥ:"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q",Q:"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R",R:"R",Ŕ:"R",Ṙ:"R",Ř:"R",Ȑ:"R",Ȓ:"R",Ṛ:"R",Ṝ:"R",Ŗ:"R",Ṟ:"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S",S:"S","ẞ":"S",Ś:"S",Ṥ:"S",Ŝ:"S",Ṡ:"S",Š:"S",Ṧ:"S",Ṣ:"S",Ṩ:"S",Ș:"S",Ş:"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T",T:"T",Ṫ:"T",Ť:"T",Ṭ:"T",Ț:"T",Ţ:"T",Ṱ:"T",Ṯ:"T",Ŧ:"T",Ƭ:"T",Ʈ:"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U",U:"U",Ù:"U",Ú:"U",Û:"U",Ũ:"U",Ṹ:"U",Ū:"U",Ṻ:"U",Ŭ:"U",Ü:"U",Ǜ:"U",Ǘ:"U",Ǖ:"U",Ǚ:"U",Ủ:"U",Ů:"U",Ű:"U",Ǔ:"U",Ȕ:"U",Ȗ:"U",Ư:"U",Ừ:"U",Ứ:"U",Ữ:"U",Ử:"U",Ự:"U",Ụ:"U",Ṳ:"U",Ų:"U",Ṷ:"U",Ṵ:"U","Ʉ":"U","Ⓥ":"V",V:"V",Ṽ:"V",Ṿ:"V",Ʋ:"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W",W:"W",Ẁ:"W",Ẃ:"W",Ŵ:"W",Ẇ:"W",Ẅ:"W",Ẉ:"W","Ⱳ":"W","Ⓧ":"X",X:"X",Ẋ:"X",Ẍ:"X","Ⓨ":"Y",Y:"Y",Ỳ:"Y",Ý:"Y",Ŷ:"Y",Ỹ:"Y",Ȳ:"Y",Ẏ:"Y",Ÿ:"Y",Ỷ:"Y",Ỵ:"Y",Ƴ:"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z",Z:"Z",Ź:"Z",Ẑ:"Z",Ż:"Z",Ž:"Z",Ẓ:"Z",Ẕ:"Z",Ƶ:"Z",Ȥ:"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a",a:"a",ẚ:"a",à:"a",á:"a",â:"a",ầ:"a",ấ:"a",ẫ:"a",ẩ:"a",ã:"a",ā:"a",ă:"a",ằ:"a",ắ:"a",ẵ:"a",ẳ:"a",ȧ:"a",ǡ:"a",ä:"a",ǟ:"a",ả:"a",å:"a",ǻ:"a",ǎ:"a",ȁ:"a",ȃ:"a",ạ:"a",ậ:"a",ặ:"a",ḁ:"a",ą:"a","ⱥ":"a",ɐ:"a","ꜳ":"aa",æ:"ae",ǽ:"ae",ǣ:"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b",b:"b",ḃ:"b",ḅ:"b",ḇ:"b",ƀ:"b",ƃ:"b",ɓ:"b","ⓒ":"c",c:"c",ć:"c",ĉ:"c",ċ:"c",č:"c",ç:"c",ḉ:"c",ƈ:"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d",d:"d",ḋ:"d",ď:"d",ḍ:"d",ḑ:"d",ḓ:"d",ḏ:"d",đ:"d",ƌ:"d",ɖ:"d",ɗ:"d","ꝺ":"d",dz:"dz",dž:"dz","ⓔ":"e",e:"e",è:"e",é:"e",ê:"e",ề:"e",ế:"e",ễ:"e",ể:"e",ẽ:"e",ē:"e",ḕ:"e",ḗ:"e",ĕ:"e",ė:"e",ë:"e",ẻ:"e",ě:"e",ȅ:"e",ȇ:"e",ẹ:"e",ệ:"e",ȩ:"e",ḝ:"e",ę:"e",ḙ:"e",ḛ:"e","ɇ":"e",ɛ:"e",ǝ:"e","ⓕ":"f",f:"f",ḟ:"f",ƒ:"f","ꝼ":"f","ⓖ":"g",g:"g",ǵ:"g",ĝ:"g",ḡ:"g",ğ:"g",ġ:"g",ǧ:"g",ģ:"g",ǥ:"g",ɠ:"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h",h:"h",ĥ:"h",ḣ:"h",ḧ:"h",ȟ:"h",ḥ:"h",ḩ:"h",ḫ:"h",ẖ:"h",ħ:"h","ⱨ":"h","ⱶ":"h",ɥ:"h",ƕ:"hv","ⓘ":"i",i:"i",ì:"i",í:"i",î:"i",ĩ:"i",ī:"i",ĭ:"i",ï:"i",ḯ:"i",ỉ:"i",ǐ:"i",ȉ:"i",ȋ:"i",ị:"i",į:"i",ḭ:"i",ɨ:"i",ı:"i","ⓙ":"j",j:"j",ĵ:"j",ǰ:"j","ɉ":"j","ⓚ":"k",k:"k",ḱ:"k",ǩ:"k",ḳ:"k",ķ:"k",ḵ:"k",ƙ:"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l",l:"l",ŀ:"l",ĺ:"l",ľ:"l",ḷ:"l",ḹ:"l",ļ:"l",ḽ:"l",ḻ:"l",ſ:"l",ł:"l",ƚ:"l",ɫ:"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l",lj:"lj","ⓜ":"m",m:"m",ḿ:"m",ṁ:"m",ṃ:"m",ɱ:"m",ɯ:"m","ⓝ":"n",n:"n",ǹ:"n",ń:"n",ñ:"n",ṅ:"n",ň:"n",ṇ:"n",ņ:"n",ṋ:"n",ṉ:"n",ƞ:"n",ɲ:"n",ʼn:"n","ꞑ":"n","ꞥ":"n",nj:"nj","ⓞ":"o",o:"o",ò:"o",ó:"o",ô:"o",ồ:"o",ố:"o",ỗ:"o",ổ:"o",õ:"o",ṍ:"o",ȭ:"o",ṏ:"o",ō:"o",ṑ:"o",ṓ:"o",ŏ:"o",ȯ:"o",ȱ:"o",ö:"o",ȫ:"o",ỏ:"o",ő:"o",ǒ:"o",ȍ:"o",ȏ:"o",ơ:"o",ờ:"o",ớ:"o",ỡ:"o",ở:"o",ợ:"o",ọ:"o",ộ:"o",ǫ:"o",ǭ:"o",ø:"o",ǿ:"o",ɔ:"o","ꝋ":"o","ꝍ":"o",ɵ:"o",œ:"oe",ƣ:"oi",ȣ:"ou","ꝏ":"oo","ⓟ":"p",p:"p",ṕ:"p",ṗ:"p",ƥ:"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q",q:"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r",r:"r",ŕ:"r",ṙ:"r",ř:"r",ȑ:"r",ȓ:"r",ṛ:"r",ṝ:"r",ŗ:"r",ṟ:"r","ɍ":"r",ɽ:"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s",s:"s",ß:"s",ś:"s",ṥ:"s",ŝ:"s",ṡ:"s",š:"s",ṧ:"s",ṣ:"s",ṩ:"s",ș:"s",ş:"s","ȿ":"s","ꞩ":"s","ꞅ":"s",ẛ:"s","ⓣ":"t",t:"t",ṫ:"t",ẗ:"t",ť:"t",ṭ:"t",ț:"t",ţ:"t",ṱ:"t",ṯ:"t",ŧ:"t",ƭ:"t",ʈ:"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u",u:"u",ù:"u",ú:"u",û:"u",ũ:"u",ṹ:"u",ū:"u",ṻ:"u",ŭ:"u",ü:"u",ǜ:"u",ǘ:"u",ǖ:"u",ǚ:"u",ủ:"u",ů:"u",ű:"u",ǔ:"u",ȕ:"u",ȗ:"u",ư:"u",ừ:"u",ứ:"u",ữ:"u",ử:"u",ự:"u",ụ:"u",ṳ:"u",ų:"u",ṷ:"u",ṵ:"u",ʉ:"u","ⓥ":"v",v:"v",ṽ:"v",ṿ:"v",ʋ:"v","ꝟ":"v",ʌ:"v","ꝡ":"vy","ⓦ":"w",w:"w",ẁ:"w",ẃ:"w",ŵ:"w",ẇ:"w",ẅ:"w",ẘ:"w",ẉ:"w","ⱳ":"w","ⓧ":"x",x:"x",ẋ:"x",ẍ:"x","ⓨ":"y",y:"y",ỳ:"y",ý:"y",ŷ:"y",ỹ:"y",ȳ:"y",ẏ:"y",ÿ:"y",ỷ:"y",ẙ:"y",ỵ:"y",ƴ:"y","ɏ":"y","ỿ":"y","ⓩ":"z",z:"z",ź:"z",ẑ:"z",ż:"z",ž:"z",ẓ:"z",ẕ:"z",ƶ:"z",ȥ:"z","ɀ":"z","ⱬ":"z","ꝣ":"z",Ά:"Α",Έ:"Ε",Ή:"Η",Ί:"Ι",Ϊ:"Ι",Ό:"Ο",Ύ:"Υ",Ϋ:"Υ",Ώ:"Ω",ά:"α",έ:"ε",ή:"η",ί:"ι",ϊ:"ι",ΐ:"ι",ό:"ο",ύ:"υ",ϋ:"υ",ΰ:"υ",ώ:"ω",ς:"σ","’":"'"};return o}),s.define("select2/data/base",["../utils"],function(o){function r(a,l){r.__super__.constructor.call(this)}return o.Extend(r,o.Observable),r.prototype.current=function(a){throw new Error("The `current` method must be defined in child classes.")},r.prototype.query=function(a,l){throw new Error("The `query` method must be defined in child classes.")},r.prototype.bind=function(a,l){},r.prototype.destroy=function(){},r.prototype.generateResultId=function(a,l){var c=a.id+"-result-";return c+=o.generateChars(4),l.id!=null?c+="-"+l.id.toString():c+="-"+o.generateChars(4),c},r}),s.define("select2/data/select",["./base","../utils","jquery"],function(o,r,a){function l(c,u){this.$element=c,this.options=u,l.__super__.constructor.call(this)}return r.Extend(l,o),l.prototype.current=function(c){var u=this,h=Array.prototype.map.call(this.$element[0].querySelectorAll(":checked"),function(d){return u.item(a(d))});c(h)},l.prototype.select=function(c){var u=this;if(c.selected=!0,c.element!=null&&c.element.tagName.toLowerCase()==="option"){c.element.selected=!0,this.$element.trigger("input").trigger("change");return}if(this.$element.prop("multiple"))this.current(function(d){var f=[];c=[c],c.push.apply(c,d);for(var p=0;p=0){var b=h.filter(p(_)),v=this.item(b),w=a.extend(!0,{},_,v),x=this.option(w);b.replaceWith(x);continue}var A=this.option(_);if(_.children){var M=this.convertToOptions(_.children);A.append(M)}f.push(A)}return f},l}),s.define("select2/data/ajax",["./array","../utils","jquery"],function(o,r,a){function l(c,u){this.ajaxOptions=this._applyDefaults(u.get("ajax")),this.ajaxOptions.processResults!=null&&(this.processResults=this.ajaxOptions.processResults),l.__super__.constructor.call(this,c,u)}return r.Extend(l,o),l.prototype._applyDefaults=function(c){var u={data:function(h){return a.extend({},h,{q:h.term})},transport:function(h,d,f){var p=a.ajax(h);return p.then(d),p.fail(f),p}};return a.extend({},u,c,!0)},l.prototype.processResults=function(c){return c},l.prototype.query=function(c,u){var h=this;this._request!=null&&(typeof this._request.abort=="function"&&this._request.abort(),this._request=null);var d=a.extend({type:"GET"},this.ajaxOptions);typeof d.url=="function"&&(d.url=d.url.call(this.$element,c)),typeof d.data=="function"&&(d.data=d.data.call(this.$element,c));function f(){var p=d.transport(d,function(g){var _=h.processResults(g,c);h.options.get("debug")&&window.console&&console.error&&(!_||!_.results||!Array.isArray(_.results))&&console.error("Select2: The AJAX results did not return an array in the `results` key of the response."),u(_)},function(){"status"in p&&(p.status===0||p.status==="0")||h.trigger("results:message",{message:"errorLoading"})});h._request=p}this.ajaxOptions.delay&&c.term!=null?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(f,this.ajaxOptions.delay)):f()},l}),s.define("select2/data/tags",["jquery"],function(o){function r(a,l,c){var u=c.get("tags"),h=c.get("createTag");h!==void 0&&(this.createTag=h);var d=c.get("insertTag");if(d!==void 0&&(this.insertTag=d),a.call(this,l,c),Array.isArray(u))for(var f=0;f0&&a.term.length>this.maximumInputLength){this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:a.term,params:a}});return}r.call(this,a,l)},o}),s.define("select2/data/maximumSelectionLength",[],function(){function o(r,a,l){this.maximumSelectionLength=l.get("maximumSelectionLength"),r.call(this,a,l)}return o.prototype.bind=function(r,a,l){var c=this;r.call(this,a,l),a.on("select",function(){c._checkIfMaximumSelected()})},o.prototype.query=function(r,a,l){var c=this;this._checkIfMaximumSelected(function(){r.call(c,a,l)})},o.prototype._checkIfMaximumSelected=function(r,a){var l=this;this.current(function(c){var u=c!=null?c.length:0;if(l.maximumSelectionLength>0&&u>=l.maximumSelectionLength){l.trigger("results:message",{message:"maximumSelected",args:{maximum:l.maximumSelectionLength}});return}a&&a()})},o}),s.define("select2/dropdown",["jquery","./utils"],function(o,r){function a(l,c){this.$element=l,this.options=c,a.__super__.constructor.call(this)}return r.Extend(a,r.Observable),a.prototype.render=function(){var l=o('');return l.attr("dir",this.options.get("dir")),this.$dropdown=l,l},a.prototype.bind=function(){},a.prototype.position=function(l,c){},a.prototype.destroy=function(){this.$dropdown.remove()},a}),s.define("select2/dropdown/search",["jquery"],function(o){function r(){}return r.prototype.render=function(a){var l=a.call(this),c=this.options.get("translations").get("search"),u=o('');return this.$searchContainer=u,this.$search=u.find("input"),this.$search.prop("autocomplete",this.options.get("autocomplete")),this.$search.attr("aria-label",c()),l.prepend(u),l},r.prototype.bind=function(a,l,c){var u=this,h=l.id+"-results";a.call(this,l,c),this.$search.on("keydown",function(d){u.trigger("keypress",d),u._keyUpPrevented=d.isDefaultPrevented()}),this.$search.on("input",function(d){o(this).off("keyup")}),this.$search.on("keyup input",function(d){u.handleSearch(d)}),l.on("open",function(){u.$search.attr("tabindex",0),u.$search.attr("aria-controls",h),u.$search.trigger("focus"),window.setTimeout(function(){u.$search.trigger("focus")},0)}),l.on("close",function(){u.$search.attr("tabindex",-1),u.$search.removeAttr("aria-controls"),u.$search.removeAttr("aria-activedescendant"),u.$search.val(""),u.$search.trigger("blur")}),l.on("focus",function(){l.isOpen()||u.$search.trigger("focus")}),l.on("results:all",function(d){if(d.query.term==null||d.query.term===""){var f=u.showSearch(d);f?u.$searchContainer[0].classList.remove("select2-search--hide"):u.$searchContainer[0].classList.add("select2-search--hide")}}),l.on("results:focus",function(d){d.data._resultId?u.$search.attr("aria-activedescendant",d.data._resultId):u.$search.removeAttr("aria-activedescendant")})},r.prototype.handleSearch=function(a){if(!this._keyUpPrevented){var l=this.$search.val();this.trigger("query",{term:l})}this._keyUpPrevented=!1},r.prototype.showSearch=function(a,l){return!0},r}),s.define("select2/dropdown/hidePlaceholder",[],function(){function o(r,a,l,c){this.placeholder=this.normalizePlaceholder(l.get("placeholder")),r.call(this,a,l,c)}return o.prototype.append=function(r,a){a.results=this.removePlaceholder(a.results),r.call(this,a)},o.prototype.normalizePlaceholder=function(r,a){return typeof a=="string"&&(a={id:"",text:a}),a},o.prototype.removePlaceholder=function(r,a){for(var l=a.slice(0),c=a.length-1;c>=0;c--){var u=a[c];this.placeholder.id===u.id&&l.splice(c,1)}return l},o}),s.define("select2/dropdown/infiniteScroll",["jquery"],function(o){function r(a,l,c,u){this.lastParams={},a.call(this,l,c,u),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return r.prototype.append=function(a,l){this.$loadingMore.remove(),this.loading=!1,a.call(this,l),this.showLoadingMore(l)&&(this.$results.append(this.$loadingMore),this.loadMoreIfNeeded())},r.prototype.bind=function(a,l,c){var u=this;a.call(this,l,c),l.on("query",function(h){u.lastParams=h,u.loading=!0}),l.on("query:append",function(h){u.lastParams=h,u.loading=!0}),this.$results.on("scroll",this.loadMoreIfNeeded.bind(this))},r.prototype.loadMoreIfNeeded=function(){var a=o.contains(document.documentElement,this.$loadingMore[0]);if(!(this.loading||!a)){var l=this.$results.offset().top+this.$results.outerHeight(!1),c=this.$loadingMore.offset().top+this.$loadingMore.outerHeight(!1);l+50>=c&&this.loadMore()}},r.prototype.loadMore=function(){this.loading=!0;var a=o.extend({},{page:1},this.lastParams);a.page++,this.trigger("query:append",a)},r.prototype.showLoadingMore=function(a,l){return l.pagination&&l.pagination.more},r.prototype.createLoadingMore=function(){var a=o('
        • '),l=this.options.get("translations").get("loadingMore");return a.html(l(this.lastParams)),a},r}),s.define("select2/dropdown/attachBody",["jquery","../utils"],function(o,r){function a(l,c,u){this.$dropdownParent=o(u.get("dropdownParent")||document.body),l.call(this,c,u)}return a.prototype.bind=function(l,c,u){var h=this;l.call(this,c,u),c.on("open",function(){h._showDropdown(),h._attachPositioningHandler(c),h._bindContainerResultHandlers(c)}),c.on("close",function(){h._hideDropdown(),h._detachPositioningHandler(c)}),this.$dropdownContainer.on("mousedown",function(d){d.stopPropagation()})},a.prototype.destroy=function(l){l.call(this),this.$dropdownContainer.remove()},a.prototype.position=function(l,c,u){c.attr("class",u.attr("class")),c[0].classList.remove("select2"),c[0].classList.add("select2-container--open"),c.css({position:"absolute",top:-999999}),this.$container=u},a.prototype.render=function(l){var c=o(""),u=l.call(this);return c.append(u),this.$dropdownContainer=c,c},a.prototype._hideDropdown=function(l){this.$dropdownContainer.detach()},a.prototype._bindContainerResultHandlers=function(l,c){if(!this._containerResultsHandlersBound){var u=this;c.on("results:all",function(){u._positionDropdown(),u._resizeDropdown()}),c.on("results:append",function(){u._positionDropdown(),u._resizeDropdown()}),c.on("results:message",function(){u._positionDropdown(),u._resizeDropdown()}),c.on("select",function(){u._positionDropdown(),u._resizeDropdown()}),c.on("unselect",function(){u._positionDropdown(),u._resizeDropdown()}),this._containerResultsHandlersBound=!0}},a.prototype._attachPositioningHandler=function(l,c){var u=this,h="scroll.select2."+c.id,d="resize.select2."+c.id,f="orientationchange.select2."+c.id,p=this.$container.parents().filter(r.hasScroll);p.each(function(){r.StoreData(this,"select2-scroll-position",{x:o(this).scrollLeft(),y:o(this).scrollTop()})}),p.on(h,function(g){var _=r.GetData(this,"select2-scroll-position");o(this).scrollTop(_.y)}),o(window).on(h+" "+d+" "+f,function(g){u._positionDropdown(),u._resizeDropdown()})},a.prototype._detachPositioningHandler=function(l,c){var u="scroll.select2."+c.id,h="resize.select2."+c.id,d="orientationchange.select2."+c.id,f=this.$container.parents().filter(r.hasScroll);f.off(u),o(window).off(u+" "+h+" "+d)},a.prototype._positionDropdown=function(){var l=o(window),c=this.$dropdown[0].classList.contains("select2-dropdown--above"),u=this.$dropdown[0].classList.contains("select2-dropdown--below"),h=null,d=this.$container.offset();d.bottom=d.top+this.$container.outerHeight(!1);var f={height:this.$container.outerHeight(!1)};f.top=d.top,f.bottom=d.top+f.height;var p={height:this.$dropdown.outerHeight(!1)},g={top:l.scrollTop(),bottom:l.scrollTop()+l.height()},_=g.topd.bottom+p.height,v={left:d.left,top:f.bottom},w=this.$dropdownParent;w.css("position")==="static"&&(w=w.offsetParent());var x={top:0,left:0};(o.contains(document.body,w[0])||w[0].isConnected)&&(x=w.offset()),v.top-=x.top,v.left-=x.left,!c&&!u&&(h="below"),!b&&_&&!c?h="above":!_&&b&&c&&(h="below"),(h=="above"||c&&h!=="below")&&(v.top=f.top-x.top-p.height),h!=null&&(this.$dropdown[0].classList.remove("select2-dropdown--below"),this.$dropdown[0].classList.remove("select2-dropdown--above"),this.$dropdown[0].classList.add("select2-dropdown--"+h),this.$container[0].classList.remove("select2-container--below"),this.$container[0].classList.remove("select2-container--above"),this.$container[0].classList.add("select2-container--"+h)),this.$dropdownContainer.css(v)},a.prototype._resizeDropdown=function(){var l={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(l.minWidth=l.width,l.position="relative",l.width="auto"),this.$dropdown.css(l)},a.prototype._showDropdown=function(l){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},a}),s.define("select2/dropdown/minimumResultsForSearch",[],function(){function o(a){for(var l=0,c=0;c0){var c=l.first(),u=o.GetData(c[0],"data"),h=u.element;if(h&&h.getAttribute&&h.getAttribute("data-select2-tag")==="true"){c.trigger("mouseenter");return}}a.call(this)},r}),s.define("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(o){var r=o.input.length-o.maximum,a="Please delete "+r+" character";return r!=1&&(a+="s"),a},inputTooShort:function(o){var r=o.minimum-o.input.length,a="Please enter "+r+" or more characters";return a},loadingMore:function(){return"Loading more results…"},maximumSelected:function(o){var r="You can only select "+o.maximum+" item";return o.maximum!=1&&(r+="s"),r},noResults:function(){return"No results found"},searching:function(){return"Searching…"},removeAllItems:function(){return"Remove all items"},removeItem:function(){return"Remove item"},search:function(){return"Search"}}}),s.define("select2/defaults",["jquery","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/selectionCss","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./dropdown/dropdownCss","./dropdown/tagsSearchHighlight","./i18n/en"],function(o,r,a,l,c,u,h,d,f,p,g,_,b,v,w,x,A,M,P,N,k,m,E,I,y,O,S,C,L,D,B){function F(){this.reset()}F.prototype.apply=function(T){if(T=o.extend(!0,{},this.defaults,T),T.dataAdapter==null&&(T.ajax!=null?T.dataAdapter=w:T.data!=null?T.dataAdapter=v:T.dataAdapter=b,T.minimumInputLength>0&&(T.dataAdapter=p.Decorate(T.dataAdapter,M)),T.maximumInputLength>0&&(T.dataAdapter=p.Decorate(T.dataAdapter,P)),T.maximumSelectionLength>0&&(T.dataAdapter=p.Decorate(T.dataAdapter,N)),T.tags&&(T.dataAdapter=p.Decorate(T.dataAdapter,x)),(T.tokenSeparators!=null||T.tokenizer!=null)&&(T.dataAdapter=p.Decorate(T.dataAdapter,A))),T.resultsAdapter==null&&(T.resultsAdapter=r,T.ajax!=null&&(T.resultsAdapter=p.Decorate(T.resultsAdapter,I)),T.placeholder!=null&&(T.resultsAdapter=p.Decorate(T.resultsAdapter,E)),T.selectOnClose&&(T.resultsAdapter=p.Decorate(T.resultsAdapter,S)),T.tags&&(T.resultsAdapter=p.Decorate(T.resultsAdapter,D))),T.dropdownAdapter==null){if(T.multiple)T.dropdownAdapter=k;else{var V=p.Decorate(k,m);T.dropdownAdapter=V}T.minimumResultsForSearch!==0&&(T.dropdownAdapter=p.Decorate(T.dropdownAdapter,O)),T.closeOnSelect&&(T.dropdownAdapter=p.Decorate(T.dropdownAdapter,C)),T.dropdownCssClass!=null&&(T.dropdownAdapter=p.Decorate(T.dropdownAdapter,L)),T.dropdownAdapter=p.Decorate(T.dropdownAdapter,y)}T.selectionAdapter==null&&(T.multiple?T.selectionAdapter=l:T.selectionAdapter=a,T.placeholder!=null&&(T.selectionAdapter=p.Decorate(T.selectionAdapter,c)),T.allowClear&&(T.selectionAdapter=p.Decorate(T.selectionAdapter,u)),T.multiple&&(T.selectionAdapter=p.Decorate(T.selectionAdapter,h)),T.selectionCssClass!=null&&(T.selectionAdapter=p.Decorate(T.selectionAdapter,d)),T.selectionAdapter=p.Decorate(T.selectionAdapter,f)),T.language=this._resolveLanguage(T.language),T.language.push("en");for(var j=[],q=0;q0){for(var U=o.extend(!0,{},q),G=q.children.length-1;G>=0;G--){var nt=q.children[G],lt=V(j,nt);lt==null&&U.children.splice(G,1)}return U.children.length>0?U:V(j,U)}var ut=T(q.text).toUpperCase(),pt=T(j.term).toUpperCase();return ut.indexOf(pt)>-1?q:null}this.defaults={amdLanguageBase:"./i18n/",autocomplete:"off",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:p.escapeMarkup,language:{},matcher:V,minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,scrollAfterSelect:!1,sorter:function(j){return j},templateResult:function(j){return j.text},templateSelection:function(j){return j.text},theme:"default",width:"resolve"}},F.prototype.applyFromElement=function(T,V){var j=T.language,q=this.defaults.language,U=V.prop("lang"),G=V.closest("[lang]").prop("lang"),nt=Array.prototype.concat.call(this._resolveLanguage(U),this._resolveLanguage(j),this._resolveLanguage(q),this._resolveLanguage(G));return T.language=nt,T},F.prototype._resolveLanguage=function(T){if(!T)return[];if(o.isEmptyObject(T))return[];if(o.isPlainObject(T))return[T];var V;Array.isArray(T)?V=T:V=[T];for(var j=[],q=0;q0){var U=V[q].split("-"),G=U[0];j.push(G)}return j},F.prototype._processTranslations=function(T,V){for(var j=new g,q=0;q-1||(o.isPlainObject(this.options[x])?o.extend(this.options[x],w[x]):this.options[x]=w[x]);return this},l.prototype.get=function(c){return this.options[c]},l.prototype.set=function(c,u){this.options[c]=u},l}),s.define("select2/core",["jquery","./options","./utils","./keys"],function(o,r,a,l){var c=function(u,h){a.GetData(u[0],"select2")!=null&&a.GetData(u[0],"select2").destroy(),this.$element=u,this.id=this._generateId(u),h=h||{},this.options=new r(h,u),c.__super__.constructor.call(this);var d=u.attr("tabindex")||0;a.StoreData(u[0],"old-tabindex",d),u.attr("tabindex","-1");var f=this.options.get("dataAdapter");this.dataAdapter=new f(u,this.options);var p=this.render();this._placeContainer(p);var g=this.options.get("selectionAdapter");this.selection=new g(u,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,p);var _=this.options.get("dropdownAdapter");this.dropdown=new _(u,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,p);var b=this.options.get("resultsAdapter");this.results=new b(u,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var v=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(w){v.trigger("selection:update",{data:w})}),u[0].classList.add("select2-hidden-accessible"),u.attr("aria-hidden","true"),this._syncAttributes(),a.StoreData(u[0],"select2",this),u.data("select2",this)};return a.Extend(c,a.Observable),c.prototype._generateId=function(u){var h="";return u.attr("id")!=null?h=u.attr("id"):u.attr("name")!=null?h=u.attr("name")+"-"+a.generateChars(2):h=a.generateChars(4),h=h.replace(/(:|\.|\[|\]|,)/g,""),h="select2-"+h,h},c.prototype._placeContainer=function(u){u.insertAfter(this.$element);var h=this._resolveWidth(this.$element,this.options.get("width"));h!=null&&u.css("width",h)},c.prototype._resolveWidth=function(u,h){var d=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if(h=="resolve"){var f=this._resolveWidth(u,"style");return f??this._resolveWidth(u,"element")}if(h=="element"){var p=u.outerWidth(!1);return p<=0?"auto":p+"px"}if(h=="style"){var g=u.attr("style");if(typeof g!="string")return null;for(var _=g.split(";"),b=0,v=_.length;b=1)return x[1]}return null}if(h=="computedstyle"){var A=window.getComputedStyle(u[0]);return A.width}return h},c.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},c.prototype._registerDomEvents=function(){var u=this;this.$element.on("change.select2",function(){u.dataAdapter.current(function(h){u.trigger("selection:update",{data:h})})}),this.$element.on("focus.select2",function(h){u.trigger("focus",h)}),this._syncA=a.bind(this._syncAttributes,this),this._syncS=a.bind(this._syncSubtree,this),this._observer=new window.MutationObserver(function(h){u._syncA(),u._syncS(h)}),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})},c.prototype._registerDataEvents=function(){var u=this;this.dataAdapter.on("*",function(h,d){u.trigger(h,d)})},c.prototype._registerSelectionEvents=function(){var u=this,h=["toggle","focus"];this.selection.on("toggle",function(){u.toggleDropdown()}),this.selection.on("focus",function(d){u.focus(d)}),this.selection.on("*",function(d,f){h.indexOf(d)===-1&&u.trigger(d,f)})},c.prototype._registerDropdownEvents=function(){var u=this;this.dropdown.on("*",function(h,d){u.trigger(h,d)})},c.prototype._registerResultsEvents=function(){var u=this;this.results.on("*",function(h,d){u.trigger(h,d)})},c.prototype._registerEvents=function(){var u=this;this.on("open",function(){u.$container[0].classList.add("select2-container--open")}),this.on("close",function(){u.$container[0].classList.remove("select2-container--open")}),this.on("enable",function(){u.$container[0].classList.remove("select2-container--disabled")}),this.on("disable",function(){u.$container[0].classList.add("select2-container--disabled")}),this.on("blur",function(){u.$container[0].classList.remove("select2-container--focus")}),this.on("query",function(h){u.isOpen()||u.trigger("open",{}),this.dataAdapter.query(h,function(d){u.trigger("results:all",{data:d,query:h})})}),this.on("query:append",function(h){this.dataAdapter.query(h,function(d){u.trigger("results:append",{data:d,query:h})})}),this.on("keypress",function(h){var d=h.which;u.isOpen()?d===l.ESC||d===l.UP&&h.altKey?(u.close(h),h.preventDefault()):d===l.ENTER||d===l.TAB?(u.trigger("results:select",{}),h.preventDefault()):d===l.SPACE&&h.ctrlKey?(u.trigger("results:toggle",{}),h.preventDefault()):d===l.UP?(u.trigger("results:previous",{}),h.preventDefault()):d===l.DOWN&&(u.trigger("results:next",{}),h.preventDefault()):(d===l.ENTER||d===l.SPACE||d===l.DOWN&&h.altKey)&&(u.open(),h.preventDefault())})},c.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.isDisabled()?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},c.prototype._isChangeMutation=function(u){var h=this;if(u.addedNodes&&u.addedNodes.length>0)for(var d=0;d0)return!0;if(Array.isArray(u))return u.some(function(p){return h._isChangeMutation(p)})}return!1},c.prototype._syncSubtree=function(u){var h=this._isChangeMutation(u),d=this;h&&this.dataAdapter.current(function(f){d.trigger("selection:update",{data:f})})},c.prototype.trigger=function(u,h){var d=c.__super__.trigger,f={open:"opening",close:"closing",select:"selecting",unselect:"unselecting",clear:"clearing"};if(h===void 0&&(h={}),u in f){var p=f[u],g={prevented:!1,name:u,args:h};if(d.call(this,p,g),g.prevented){h.prevented=!0;return}}d.call(this,u,h)},c.prototype.toggleDropdown=function(){this.isDisabled()||(this.isOpen()?this.close():this.open())},c.prototype.open=function(){this.isOpen()||this.isDisabled()||this.trigger("query",{})},c.prototype.close=function(u){this.isOpen()&&this.trigger("close",{originalEvent:u})},c.prototype.isEnabled=function(){return!this.isDisabled()},c.prototype.isDisabled=function(){return this.options.get("disabled")},c.prototype.isOpen=function(){return this.$container[0].classList.contains("select2-container--open")},c.prototype.hasFocus=function(){return this.$container[0].classList.contains("select2-container--focus")},c.prototype.focus=function(u){this.hasFocus()||(this.$container[0].classList.add("select2-container--focus"),this.trigger("focus",{}))},c.prototype.enable=function(u){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'),(u==null||u.length===0)&&(u=[!0]);var h=!u[0];this.$element.prop("disabled",h)},c.prototype.data=function(){this.options.get("debug")&&arguments.length>0&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var u=[];return this.dataAdapter.current(function(h){u=h}),u},c.prototype.val=function(u){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),u==null||u.length===0)return this.$element.val();var h=u[0];Array.isArray(h)&&(h=h.map(function(d){return d.toString()})),this.$element.val(h).trigger("input").trigger("change")},c.prototype.destroy=function(){a.RemoveData(this.$container[0]),this.$container.remove(),this._observer.disconnect(),this._observer=null,this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",a.GetData(this.$element[0],"old-tabindex")),this.$element[0].classList.remove("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),a.RemoveData(this.$element[0]),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},c.prototype.render=function(){var u=o('');return u.attr("dir",this.options.get("dir")),this.$container=u,this.$container[0].classList.add("select2-container--"+this.options.get("theme")),a.StoreData(u[0],"element",this.$element),u},c}),s.define("jquery-mousewheel",["jquery"],function(o){return o}),s.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults","./select2/utils"],function(o,r,a,l,c){if(o.fn.select2==null){var u=["open","close","destroy"];o.fn.select2=function(h){if(h=h||{},typeof h=="object")return this.each(function(){var p=o.extend(!0,{},h);new a(o(this),p)}),this;if(typeof h=="string"){var d,f=Array.prototype.slice.call(arguments,1);return this.each(function(){var p=c.GetData(this,"select2");p==null&&window.console&&console.error&&console.error("The select2('"+h+"') method was called on an element that is not using Select2."),d=p[h].apply(p,f)}),u.indexOf(h)>-1?this:d}else throw new Error("Invalid arguments for Select2: "+h)}}return o.fn.select2.defaults==null&&(o.fn.select2.defaults=l),a}),{define:s.define,require:s.require}}(),i=e.require("jquery.select2");return t.fn.select2.amd=e,i})})(au);var C_=au.exports;const T_=es(C_);var lu={exports:{}};(function(n,t){(function(e,i){n.exports=i()})(Fl,function(){var e=1e3,i=6e4,s=36e5,o="millisecond",r="second",a="minute",l="hour",c="day",u="week",h="month",d="quarter",f="year",p="date",g="Invalid Date",_=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(O){var S=["th","st","nd","rd"],C=O%100;return"["+O+(S[(C-20)%10]||S[C]||S[0])+"]"}},w=function(O,S,C){var L=String(O);return!L||L.length>=S?O:""+Array(S+1-L.length).join(C)+O},x={s:w,z:function(O){var S=-O.utcOffset(),C=Math.abs(S),L=Math.floor(C/60),D=C%60;return(S<=0?"+":"-")+w(L,2,"0")+":"+w(D,2,"0")},m:function O(S,C){if(S.date()1)return O(F[0])}else{var W=S.name;M[W]=S,D=W}return!L&&D&&(A=D),D||!L&&A},m=function(O,S){if(N(O))return O.clone();var C=typeof S=="object"?S:{};return C.date=O,C.args=arguments,new I(C)},E=x;E.l=k,E.i=N,E.w=function(O,S){return m(O,{locale:S.$L,utc:S.$u,x:S.$x,$offset:S.$offset})};var I=function(){function O(C){this.$L=k(C.locale,null,!0),this.parse(C),this.$x=this.$x||C.x||{},this[P]=!0}var S=O.prototype;return S.parse=function(C){this.$d=function(L){var D=L.date,B=L.utc;if(D===null)return new Date(NaN);if(E.u(D))return new Date;if(D instanceof Date)return new Date(D);if(typeof D=="string"&&!/Z$/i.test(D)){var F=D.match(_);if(F){var W=F[2]-1||0,T=(F[7]||"0").substring(0,3);return B?new Date(Date.UTC(F[1],W,F[3]||1,F[4]||0,F[5]||0,F[6]||0,T)):new Date(F[1],W,F[3]||1,F[4]||0,F[5]||0,F[6]||0,T)}}return new Date(D)}(C),this.init()},S.init=function(){var C=this.$d;this.$y=C.getFullYear(),this.$M=C.getMonth(),this.$D=C.getDate(),this.$W=C.getDay(),this.$H=C.getHours(),this.$m=C.getMinutes(),this.$s=C.getSeconds(),this.$ms=C.getMilliseconds()},S.$utils=function(){return E},S.isValid=function(){return this.$d.toString()!==g},S.isSame=function(C,L){var D=m(C);return this.startOf(L)<=D&&D<=this.endOf(L)},S.isAfter=function(C,L){return m(C)=0;E--)v(e(m[E]),k)}function v(k,m,E){var I=E&&E.force?E.force:!1;return k&&(I||e(":focus",k).length===0)?(k[m.hideMethod]({duration:m.hideDuration,easing:m.hideEasing,complete:function(){N(k)}}),!0):!1}function w(k){return i=e("
          ").attr("id",k.containerId).addClass(k.positionClass),i.appendTo(e(k.target)),i}function x(){return{tapToDismiss:!0,toastClass:"toast",containerId:"toast-container",debug:!1,showMethod:"fadeIn",showDuration:300,showEasing:"swing",onShown:void 0,hideMethod:"fadeOut",hideDuration:1e3,hideEasing:"swing",onHidden:void 0,closeMethod:!1,closeDuration:!1,closeEasing:!1,closeOnHover:!0,extendedTimeOut:1e3,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},iconClass:"toast-info",positionClass:"toast-top-right",timeOut:5e3,titleClass:"toast-title",messageClass:"toast-message",escapeHtml:!1,target:"body",closeHtml:'',closeClass:"toast-close-button",newestOnTop:!0,preventDuplicates:!1,progressBar:!1,progressClass:"toast-progress",rtl:!1}}function A(k){s&&s(k)}function M(k){var m=P(),E=k.iconClass||m.iconClass;if(typeof k.optionsOverride<"u"&&(m=e.extend(m,k.optionsOverride),E=k.optionsOverride.iconClass||E),Ut(m,k))return;o++,i=u(m,!0);var I=null,y=e("
          "),O=e("
          "),S=e("
          "),C=e("
          "),L=e(m.closeHtml),D={intervalId:null,hideEta:null,maxHideTime:null},B={toastId:o,state:"visible",startTime:new Date,options:m,map:k};return W(),j(),V(),A(B),m.debug&&console&&console.log(B),y;function F(J){return J==null&&(J=""),J.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function W(){q(),G(),nt(),lt(),ut(),pt(),U(),T()}function T(){var J="";switch(k.iconClass){case"toast-success":case"toast-info":J="polite";break;default:J="assertive"}y.attr("aria-live",J)}function V(){m.closeOnHover&&y.hover(Es,vs),!m.onclick&&m.tapToDismiss&&y.click(wt),m.closeButton&&L&&L.click(function(J){J.stopPropagation?J.stopPropagation():J.cancelBubble!==void 0&&J.cancelBubble!==!0&&(J.cancelBubble=!0),m.onCloseClick&&m.onCloseClick(J),wt(!0)}),m.onclick&&y.click(function(J){m.onclick(J),wt()})}function j(){y.hide(),y[m.showMethod]({duration:m.showDuration,easing:m.showEasing,complete:m.onShown}),m.timeOut>0&&(I=setTimeout(wt,m.timeOut),D.maxHideTime=parseFloat(m.timeOut),D.hideEta=new Date().getTime()+D.maxHideTime,m.progressBar&&(D.intervalId=setInterval(si,10)))}function q(){k.iconClass&&y.addClass(m.toastClass).addClass(E)}function U(){m.newestOnTop?i.prepend(y):i.append(y)}function G(){if(k.title){var J=k.title;m.escapeHtml&&(J=F(k.title)),O.append(J).addClass(m.titleClass),y.append(O)}}function nt(){if(k.message){var J=k.message;m.escapeHtml&&(J=F(k.message)),S.append(J).addClass(m.messageClass),y.append(S)}}function lt(){m.closeButton&&(L.addClass(m.closeClass).attr("role","button"),y.prepend(L))}function ut(){m.progressBar&&(C.addClass(m.progressClass),y.prepend(C))}function pt(){m.rtl&&y.addClass("rtl")}function Ut(J,We){if(J.preventDuplicates){if(We.message===l)return!0;l=We.message}return!1}function wt(J){var We=J&&m.closeMethod!==!1?m.closeMethod:m.hideMethod,xs=J&&m.closeDuration!==!1?m.closeDuration:m.hideDuration,Kt=J&&m.closeEasing!==!1?m.closeEasing:m.hideEasing;if(!(e(":focus",y).length&&!J))return clearTimeout(D.intervalId),y[We]({duration:xs,easing:Kt,complete:function(){N(y),clearTimeout(I),m.onHidden&&B.state!=="hidden"&&m.onHidden(),B.state="hidden",B.endTime=new Date,A(B)}})}function vs(){(m.timeOut>0||m.extendedTimeOut>0)&&(I=setTimeout(wt,m.extendedTimeOut),D.maxHideTime=parseFloat(m.extendedTimeOut),D.hideEta=new Date().getTime()+D.maxHideTime)}function Es(){clearTimeout(I),D.hideEta=0,y.stop(!0,!0)[m.showMethod]({duration:m.showDuration,easing:m.showEasing})}function si(){var J=(D.hideEta-new Date().getTime())/D.maxHideTime*100;C.width(J+"%")}}function P(){return e.extend({},x(),a.options)}function N(k){i||(i=u()),!k.is(":visible")&&(k.remove(),k=null,i.children().length===0&&(i.remove(),l=void 0))}}()})})(function(t,e){n.exports?n.exports=e(Vi()):window.toastr=e(window.jQuery)})})(cu);var M_=cu.exports;const k_=es(M_);/*! * @kurkle/color v0.3.2 * https://github.com/kurkle/color#readme * (c) 2023 Jukka Kurkela * Released under the MIT License - */function Qn(n){return n+.5|0}const ue=(n,t,e)=>Math.max(Math.min(n,e),t);function wn(n){return ue(Qn(n*2.55),0,255)}function pe(n){return ue(Qn(n*255),0,255)}function Jt(n){return ue(Qn(n/2.55)/100,0,1)}function _a(n){return ue(Qn(n*100),0,100)}const Dt={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},go=[..."0123456789ABCDEF"],$_=n=>go[n&15],B_=n=>go[(n&240)>>4]+go[n&15],hi=n=>(n&240)>>4===(n&15),H_=n=>hi(n.r)&&hi(n.g)&&hi(n.b)&&hi(n.a);function z_(n){var t=n.length,e;return n[0]==="#"&&(t===4||t===5?e={r:255&Dt[n[1]]*17,g:255&Dt[n[2]]*17,b:255&Dt[n[3]]*17,a:t===5?Dt[n[4]]*17:255}:(t===7||t===9)&&(e={r:Dt[n[1]]<<4|Dt[n[2]],g:Dt[n[3]]<<4|Dt[n[4]],b:Dt[n[5]]<<4|Dt[n[6]],a:t===9?Dt[n[7]]<<4|Dt[n[8]]:255})),e}const V_=(n,t)=>n<255?t(n):"";function j_(n){var t=H_(n)?$_:B_;return n?"#"+t(n.r)+t(n.g)+t(n.b)+V_(n.a,t):void 0}const W_=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function fu(n,t,e){const i=t*Math.min(e,1-e),s=(o,r=(o+n/30)%12)=>e-i*Math.max(Math.min(r-3,9-r,1),-1);return[s(0),s(8),s(4)]}function q_(n,t,e){const i=(s,o=(s+n/60)%6)=>e-e*t*Math.max(Math.min(o,4-o,1),0);return[i(5),i(3),i(1)]}function Y_(n,t,e){const i=fu(n,1,.5);let s;for(t+e>1&&(s=1/(t+e),t*=s,e*=s),s=0;s<3;s++)i[s]*=1-t-e,i[s]+=t;return i}function U_(n,t,e,i,s){return n===s?(t-e)/i+(t.5?u/(2-o-r):u/(o+r),l=U_(e,i,s,u,o),l=l*60+.5),[l|0,c||0,a]}function nr(n,t,e,i){return(Array.isArray(t)?n(t[0],t[1],t[2]):n(t,e,i)).map(pe)}function ir(n,t,e){return nr(fu,n,t,e)}function K_(n,t,e){return nr(Y_,n,t,e)}function G_(n,t,e){return nr(q_,n,t,e)}function pu(n){return(n%360+360)%360}function X_(n){const t=W_.exec(n);let e=255,i;if(!t)return;t[5]!==i&&(e=t[6]?wn(+t[5]):pe(+t[5]));const s=pu(+t[2]),o=+t[3]/100,r=+t[4]/100;return t[1]==="hwb"?i=K_(s,o,r):t[1]==="hsv"?i=G_(s,o,r):i=ir(s,o,r),{r:i[0],g:i[1],b:i[2],a:e}}function J_(n,t){var e=er(n);e[0]=pu(e[0]+t),e=ir(e),n.r=e[0],n.g=e[1],n.b=e[2]}function Z_(n){if(!n)return;const t=er(n),e=t[0],i=_a(t[1]),s=_a(t[2]);return n.a<255?`hsla(${e}, ${i}%, ${s}%, ${Jt(n.a)})`:`hsl(${e}, ${i}%, ${s}%)`}const ba={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},ya={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function Q_(){const n={},t=Object.keys(ya),e=Object.keys(ba);let i,s,o,r,a;for(i=0;i>16&255,o>>8&255,o&255]}return n}let di;function tb(n){di||(di=Q_(),di.transparent=[0,0,0,0]);const t=di[n.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const eb=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function nb(n){const t=eb.exec(n);let e=255,i,s,o;if(t){if(t[7]!==i){const r=+t[7];e=t[8]?wn(r):ue(r*255,0,255)}return i=+t[1],s=+t[3],o=+t[5],i=255&(t[2]?wn(i):ue(i,0,255)),s=255&(t[4]?wn(s):ue(s,0,255)),o=255&(t[6]?wn(o):ue(o,0,255)),{r:i,g:s,b:o,a:e}}}function ib(n){return n&&(n.a<255?`rgba(${n.r}, ${n.g}, ${n.b}, ${Jt(n.a)})`:`rgb(${n.r}, ${n.g}, ${n.b})`)}const Ws=n=>n<=.0031308?n*12.92:Math.pow(n,1/2.4)*1.055-.055,Ye=n=>n<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4);function sb(n,t,e){const i=Ye(Jt(n.r)),s=Ye(Jt(n.g)),o=Ye(Jt(n.b));return{r:pe(Ws(i+e*(Ye(Jt(t.r))-i))),g:pe(Ws(s+e*(Ye(Jt(t.g))-s))),b:pe(Ws(o+e*(Ye(Jt(t.b))-o))),a:n.a+e*(t.a-n.a)}}function fi(n,t,e){if(n){let i=er(n);i[t]=Math.max(0,Math.min(i[t]+i[t]*e,t===0?360:1)),i=ir(i),n.r=i[0],n.g=i[1],n.b=i[2]}}function gu(n,t){return n&&Object.assign(t||{},n)}function va(n){var t={r:0,g:0,b:0,a:255};return Array.isArray(n)?n.length>=3&&(t={r:n[0],g:n[1],b:n[2],a:255},n.length>3&&(t.a=pe(n[3]))):(t=gu(n,{r:0,g:0,b:0,a:1}),t.a=pe(t.a)),t}function ob(n){return n.charAt(0)==="r"?nb(n):X_(n)}class $n{constructor(t){if(t instanceof $n)return t;const e=typeof t;let i;e==="object"?i=va(t):e==="string"&&(i=z_(t)||tb(t)||ob(t)),this._rgb=i,this._valid=!!i}get valid(){return this._valid}get rgb(){var t=gu(this._rgb);return t&&(t.a=Jt(t.a)),t}set rgb(t){this._rgb=va(t)}rgbString(){return this._valid?ib(this._rgb):void 0}hexString(){return this._valid?j_(this._rgb):void 0}hslString(){return this._valid?Z_(this._rgb):void 0}mix(t,e){if(t){const i=this.rgb,s=t.rgb;let o;const r=e===o?.5:e,a=2*r-1,l=i.a-s.a,c=((a*l===-1?a:(a+l)/(1+a*l))+1)/2;o=1-c,i.r=255&c*i.r+o*s.r+.5,i.g=255&c*i.g+o*s.g+.5,i.b=255&c*i.b+o*s.b+.5,i.a=r*i.a+(1-r)*s.a,this.rgb=i}return this}interpolate(t,e){return t&&(this._rgb=sb(this._rgb,t._rgb,e)),this}clone(){return new $n(this.rgb)}alpha(t){return this._rgb.a=pe(t),this}clearer(t){const e=this._rgb;return e.a*=1-t,this}greyscale(){const t=this._rgb,e=Qn(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=e,this}opaquer(t){const e=this._rgb;return e.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return fi(this._rgb,2,t),this}darken(t){return fi(this._rgb,2,-t),this}saturate(t){return fi(this._rgb,1,t),this}desaturate(t){return fi(this._rgb,1,-t),this}rotate(t){return J_(this._rgb,t),this}}/*! + */function ei(n){return n+.5|0}const ue=(n,t,e)=>Math.max(Math.min(n,e),t);function An(n){return ue(ei(n*2.55),0,255)}function pe(n){return ue(ei(n*255),0,255)}function Zt(n){return ue(ei(n/2.55)/100,0,1)}function pa(n){return ue(ei(n*100),0,100)}const Dt={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},po=[..."0123456789ABCDEF"],L_=n=>po[n&15],P_=n=>po[(n&240)>>4]+po[n&15],fi=n=>(n&240)>>4===(n&15),R_=n=>fi(n.r)&&fi(n.g)&&fi(n.b)&&fi(n.a);function I_(n){var t=n.length,e;return n[0]==="#"&&(t===4||t===5?e={r:255&Dt[n[1]]*17,g:255&Dt[n[2]]*17,b:255&Dt[n[3]]*17,a:t===5?Dt[n[4]]*17:255}:(t===7||t===9)&&(e={r:Dt[n[1]]<<4|Dt[n[2]],g:Dt[n[3]]<<4|Dt[n[4]],b:Dt[n[5]]<<4|Dt[n[6]],a:t===9?Dt[n[7]]<<4|Dt[n[8]]:255})),e}const N_=(n,t)=>n<255?t(n):"";function F_(n){var t=R_(n)?L_:P_;return n?"#"+t(n.r)+t(n.g)+t(n.b)+N_(n.a,t):void 0}const $_=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function uu(n,t,e){const i=t*Math.min(e,1-e),s=(o,r=(o+n/30)%12)=>e-i*Math.max(Math.min(r-3,9-r,1),-1);return[s(0),s(8),s(4)]}function B_(n,t,e){const i=(s,o=(s+n/60)%6)=>e-e*t*Math.max(Math.min(o,4-o,1),0);return[i(5),i(3),i(1)]}function H_(n,t,e){const i=uu(n,1,.5);let s;for(t+e>1&&(s=1/(t+e),t*=s,e*=s),s=0;s<3;s++)i[s]*=1-t-e,i[s]+=t;return i}function z_(n,t,e,i,s){return n===s?(t-e)/i+(t.5?u/(2-o-r):u/(o+r),l=z_(e,i,s,u,o),l=l*60+.5),[l|0,c||0,a]}function Qo(n,t,e,i){return(Array.isArray(t)?n(t[0],t[1],t[2]):n(t,e,i)).map(pe)}function tr(n,t,e){return Qo(uu,n,t,e)}function V_(n,t,e){return Qo(H_,n,t,e)}function j_(n,t,e){return Qo(B_,n,t,e)}function hu(n){return(n%360+360)%360}function W_(n){const t=$_.exec(n);let e=255,i;if(!t)return;t[5]!==i&&(e=t[6]?An(+t[5]):pe(+t[5]));const s=hu(+t[2]),o=+t[3]/100,r=+t[4]/100;return t[1]==="hwb"?i=V_(s,o,r):t[1]==="hsv"?i=j_(s,o,r):i=tr(s,o,r),{r:i[0],g:i[1],b:i[2],a:e}}function q_(n,t){var e=Zo(n);e[0]=hu(e[0]+t),e=tr(e),n.r=e[0],n.g=e[1],n.b=e[2]}function Y_(n){if(!n)return;const t=Zo(n),e=t[0],i=pa(t[1]),s=pa(t[2]);return n.a<255?`hsla(${e}, ${i}%, ${s}%, ${Zt(n.a)})`:`hsl(${e}, ${i}%, ${s}%)`}const ga={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},ma={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function U_(){const n={},t=Object.keys(ma),e=Object.keys(ga);let i,s,o,r,a;for(i=0;i>16&255,o>>8&255,o&255]}return n}let pi;function K_(n){pi||(pi=U_(),pi.transparent=[0,0,0,0]);const t=pi[n.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const G_=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function X_(n){const t=G_.exec(n);let e=255,i,s,o;if(t){if(t[7]!==i){const r=+t[7];e=t[8]?An(r):ue(r*255,0,255)}return i=+t[1],s=+t[3],o=+t[5],i=255&(t[2]?An(i):ue(i,0,255)),s=255&(t[4]?An(s):ue(s,0,255)),o=255&(t[6]?An(o):ue(o,0,255)),{r:i,g:s,b:o,a:e}}}function J_(n){return n&&(n.a<255?`rgba(${n.r}, ${n.g}, ${n.b}, ${Zt(n.a)})`:`rgb(${n.r}, ${n.g}, ${n.b})`)}const js=n=>n<=.0031308?n*12.92:Math.pow(n,1/2.4)*1.055-.055,Ue=n=>n<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4);function Z_(n,t,e){const i=Ue(Zt(n.r)),s=Ue(Zt(n.g)),o=Ue(Zt(n.b));return{r:pe(js(i+e*(Ue(Zt(t.r))-i))),g:pe(js(s+e*(Ue(Zt(t.g))-s))),b:pe(js(o+e*(Ue(Zt(t.b))-o))),a:n.a+e*(t.a-n.a)}}function gi(n,t,e){if(n){let i=Zo(n);i[t]=Math.max(0,Math.min(i[t]+i[t]*e,t===0?360:1)),i=tr(i),n.r=i[0],n.g=i[1],n.b=i[2]}}function du(n,t){return n&&Object.assign(t||{},n)}function _a(n){var t={r:0,g:0,b:0,a:255};return Array.isArray(n)?n.length>=3&&(t={r:n[0],g:n[1],b:n[2],a:255},n.length>3&&(t.a=pe(n[3]))):(t=du(n,{r:0,g:0,b:0,a:1}),t.a=pe(t.a)),t}function Q_(n){return n.charAt(0)==="r"?X_(n):W_(n)}class Bn{constructor(t){if(t instanceof Bn)return t;const e=typeof t;let i;e==="object"?i=_a(t):e==="string"&&(i=I_(t)||K_(t)||Q_(t)),this._rgb=i,this._valid=!!i}get valid(){return this._valid}get rgb(){var t=du(this._rgb);return t&&(t.a=Zt(t.a)),t}set rgb(t){this._rgb=_a(t)}rgbString(){return this._valid?J_(this._rgb):void 0}hexString(){return this._valid?F_(this._rgb):void 0}hslString(){return this._valid?Y_(this._rgb):void 0}mix(t,e){if(t){const i=this.rgb,s=t.rgb;let o;const r=e===o?.5:e,a=2*r-1,l=i.a-s.a,c=((a*l===-1?a:(a+l)/(1+a*l))+1)/2;o=1-c,i.r=255&c*i.r+o*s.r+.5,i.g=255&c*i.g+o*s.g+.5,i.b=255&c*i.b+o*s.b+.5,i.a=r*i.a+(1-r)*s.a,this.rgb=i}return this}interpolate(t,e){return t&&(this._rgb=Z_(this._rgb,t._rgb,e)),this}clone(){return new Bn(this.rgb)}alpha(t){return this._rgb.a=pe(t),this}clearer(t){const e=this._rgb;return e.a*=1-t,this}greyscale(){const t=this._rgb,e=ei(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=e,this}opaquer(t){const e=this._rgb;return e.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return gi(this._rgb,2,t),this}darken(t){return gi(this._rgb,2,-t),this}saturate(t){return gi(this._rgb,1,t),this}desaturate(t){return gi(this._rgb,1,-t),this}rotate(t){return q_(this._rgb,t),this}}/*! * Chart.js v4.4.2 * https://www.chartjs.org * (c) 2024 Chart.js Contributors * Released under the MIT License - */function Kt(){}const rb=(()=>{let n=0;return()=>n++})();function Q(n){return n===null||typeof n>"u"}function it(n){if(Array.isArray&&Array.isArray(n))return!0;const t=Object.prototype.toString.call(n);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function X(n){return n!==null&&Object.prototype.toString.call(n)==="[object Object]"}function rt(n){return(typeof n=="number"||n instanceof Number)&&isFinite(+n)}function At(n,t){return rt(n)?n:t}function K(n,t){return typeof n>"u"?t:n}const ab=(n,t)=>typeof n=="string"&&n.endsWith("%")?parseFloat(n)/100:+n/t,mu=(n,t)=>typeof n=="string"&&n.endsWith("%")?parseFloat(n)/100*t:+n;function et(n,t,e){if(n&&typeof n.call=="function")return n.apply(e,t)}function tt(n,t,e,i){let s,o,r;if(it(n))if(o=n.length,i)for(s=o-1;s>=0;s--)t.call(e,n[s],s);else for(s=0;sn,x:n=>n.x,y:n=>n.y};function ub(n){const t=n.split("."),e=[];let i="";for(const s of t)i+=s,i.endsWith("\\")?i=i.slice(0,-1)+".":(e.push(i),i="");return e}function hb(n){const t=ub(n);return e=>{for(const i of t){if(i==="")break;e=e&&e[i]}return e}}function be(n,t){return(Ea[t]||(Ea[t]=hb(t)))(n)}function sr(n){return n.charAt(0).toUpperCase()+n.slice(1)}const Hn=n=>typeof n<"u",ye=n=>typeof n=="function",xa=(n,t)=>{if(n.size!==t.size)return!1;for(const e of n)if(!t.has(e))return!1;return!0};function db(n){return n.type==="mouseup"||n.type==="click"||n.type==="contextmenu"}const ot=Math.PI,st=2*ot,fb=st+ot,Gi=Number.POSITIVE_INFINITY,pb=ot/180,ct=ot/2,Ae=ot/4,wa=ot*2/3,he=Math.log10,jt=Math.sign;function Ln(n,t,e){return Math.abs(n-t)s-o).pop(),t}function ln(n){return!isNaN(parseFloat(n))&&isFinite(n)}function mb(n,t){const e=Math.round(n);return e-t<=n&&e+t>=n}function bu(n,t,e){let i,s,o;for(i=0,s=n.length;il&&c=Math.min(t,e)-i&&n<=Math.max(t,e)+i}function rr(n,t,e){e=e||(r=>n[r]1;)o=s+i>>1,e(o)?s=o:i=o;return{lo:s,hi:i}}const te=(n,t,e,i)=>rr(n,e,i?s=>{const o=n[s][t];return on[s][t]rr(n,e,i=>n[i][t]>=e);function vb(n,t,e){let i=0,s=n.length;for(;ii&&n[s-1]>e;)s--;return i>0||s{const i="_onData"+sr(e),s=n[e];Object.defineProperty(n,e,{configurable:!0,enumerable:!1,value(...o){const r=s.apply(this,o);return n._chartjs.listeners.forEach(a=>{typeof a[i]=="function"&&a[i](...o)}),r}})})}function Ca(n,t){const e=n._chartjs;if(!e)return;const i=e.listeners,s=i.indexOf(t);s!==-1&&i.splice(s,1),!(i.length>0)&&(vu.forEach(o=>{delete n[o]}),delete n._chartjs)}function Eu(n){const t=new Set(n);return t.size===n.length?n:Array.from(t)}const xu=function(){return typeof window>"u"?function(n){return n()}:window.requestAnimationFrame}();function wu(n,t){let e=[],i=!1;return function(...s){e=s,i||(i=!0,xu.call(window,()=>{i=!1,n.apply(t,e)}))}}function xb(n,t){let e;return function(...i){return t?(clearTimeout(e),e=setTimeout(n,t,i)):n.apply(this,i),t}}const ar=n=>n==="start"?"left":n==="end"?"right":"center",gt=(n,t,e)=>n==="start"?t:n==="end"?e:(t+e)/2,wb=(n,t,e,i)=>n===(i?"left":"right")?e:n==="center"?(t+e)/2:t;function Au(n,t,e){const i=t.length;let s=0,o=i;if(n._sorted){const{iScale:r,_parsed:a}=n,l=r.axis,{min:c,max:u,minDefined:h,maxDefined:d}=r.getUserBounds();h&&(s=ft(Math.min(te(a,l,c).lo,e?i:te(t,l,r.getPixelForValue(c)).lo),0,i-1)),d?o=ft(Math.max(te(a,r.axis,u,!0).hi+1,e?0:te(t,l,r.getPixelForValue(u),!0).hi+1),s,i)-s:o=i-s}return{start:s,count:o}}function Su(n){const{xScale:t,yScale:e,_scaleRanges:i}=n,s={xmin:t.min,xmax:t.max,ymin:e.min,ymax:e.max};if(!i)return n._scaleRanges=s,!0;const o=i.xmin!==t.min||i.xmax!==t.max||i.ymin!==e.min||i.ymax!==e.max;return Object.assign(i,s),o}const pi=n=>n===0||n===1,Ta=(n,t,e)=>-(Math.pow(2,10*(n-=1))*Math.sin((n-t)*st/e)),Oa=(n,t,e)=>Math.pow(2,-10*n)*Math.sin((n-t)*st/e)+1,Pn={linear:n=>n,easeInQuad:n=>n*n,easeOutQuad:n=>-n*(n-2),easeInOutQuad:n=>(n/=.5)<1?.5*n*n:-.5*(--n*(n-2)-1),easeInCubic:n=>n*n*n,easeOutCubic:n=>(n-=1)*n*n+1,easeInOutCubic:n=>(n/=.5)<1?.5*n*n*n:.5*((n-=2)*n*n+2),easeInQuart:n=>n*n*n*n,easeOutQuart:n=>-((n-=1)*n*n*n-1),easeInOutQuart:n=>(n/=.5)<1?.5*n*n*n*n:-.5*((n-=2)*n*n*n-2),easeInQuint:n=>n*n*n*n*n,easeOutQuint:n=>(n-=1)*n*n*n*n+1,easeInOutQuint:n=>(n/=.5)<1?.5*n*n*n*n*n:.5*((n-=2)*n*n*n*n+2),easeInSine:n=>-Math.cos(n*ct)+1,easeOutSine:n=>Math.sin(n*ct),easeInOutSine:n=>-.5*(Math.cos(ot*n)-1),easeInExpo:n=>n===0?0:Math.pow(2,10*(n-1)),easeOutExpo:n=>n===1?1:-Math.pow(2,-10*n)+1,easeInOutExpo:n=>pi(n)?n:n<.5?.5*Math.pow(2,10*(n*2-1)):.5*(-Math.pow(2,-10*(n*2-1))+2),easeInCirc:n=>n>=1?n:-(Math.sqrt(1-n*n)-1),easeOutCirc:n=>Math.sqrt(1-(n-=1)*n),easeInOutCirc:n=>(n/=.5)<1?-.5*(Math.sqrt(1-n*n)-1):.5*(Math.sqrt(1-(n-=2)*n)+1),easeInElastic:n=>pi(n)?n:Ta(n,.075,.3),easeOutElastic:n=>pi(n)?n:Oa(n,.075,.3),easeInOutElastic(n){return pi(n)?n:n<.5?.5*Ta(n*2,.1125,.45):.5+.5*Oa(n*2-1,.1125,.45)},easeInBack(n){return n*n*((1.70158+1)*n-1.70158)},easeOutBack(n){return(n-=1)*n*((1.70158+1)*n+1.70158)+1},easeInOutBack(n){let t=1.70158;return(n/=.5)<1?.5*(n*n*(((t*=1.525)+1)*n-t)):.5*((n-=2)*n*(((t*=1.525)+1)*n+t)+2)},easeInBounce:n=>1-Pn.easeOutBounce(1-n),easeOutBounce(n){return n<1/2.75?7.5625*n*n:n<2/2.75?7.5625*(n-=1.5/2.75)*n+.75:n<2.5/2.75?7.5625*(n-=2.25/2.75)*n+.9375:7.5625*(n-=2.625/2.75)*n+.984375},easeInOutBounce:n=>n<.5?Pn.easeInBounce(n*2)*.5:Pn.easeOutBounce(n*2-1)*.5+.5};function lr(n){if(n&&typeof n=="object"){const t=n.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function Da(n){return lr(n)?n:new $n(n)}function qs(n){return lr(n)?n:new $n(n).saturate(.5).darken(.1).hexString()}const Ab=["x","y","borderWidth","radius","tension"],Sb=["color","borderColor","backgroundColor"];function Cb(n){n.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),n.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),n.set("animations",{colors:{type:"color",properties:Sb},numbers:{type:"number",properties:Ab}}),n.describe("animations",{_fallback:"animation"}),n.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>t|0}}}})}function Tb(n){n.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const Ma=new Map;function Ob(n,t){t=t||{};const e=n+JSON.stringify(t);let i=Ma.get(e);return i||(i=new Intl.NumberFormat(n,t),Ma.set(e,i)),i}function ti(n,t,e){return Ob(t,e).format(n)}const Cu={values(n){return it(n)?n:""+n},numeric(n,t,e){if(n===0)return"0";const i=this.chart.options.locale;let s,o=n;if(e.length>1){const c=Math.max(Math.abs(e[0].value),Math.abs(e[e.length-1].value));(c<1e-4||c>1e15)&&(s="scientific"),o=Db(n,e)}const r=he(Math.abs(o)),a=isNaN(r)?1:Math.max(Math.min(-1*Math.floor(r),20),0),l={notation:s,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),ti(n,i,l)},logarithmic(n,t,e){if(n===0)return"0";const i=e[t].significand||n/Math.pow(10,Math.floor(he(n)));return[1,2,3,5,10,15].includes(i)||t>.8*e.length?Cu.numeric.call(this,n,t,e):""}};function Db(n,t){let e=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(e)>=1&&n!==Math.floor(n)&&(e=n-Math.floor(n)),e}var ms={formatters:Cu};function Mb(n){n.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,e)=>e.lineWidth,tickColor:(t,e)=>e.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:ms.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),n.route("scale.ticks","color","","color"),n.route("scale.grid","color","","borderColor"),n.route("scale.border","color","","borderColor"),n.route("scale.title","color","","color"),n.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),n.describe("scales",{_fallback:"scale"}),n.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}const $e=Object.create(null),_o=Object.create(null);function Rn(n,t){if(!t)return n;const e=t.split(".");for(let i=0,s=e.length;ii.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(i,s)=>qs(s.backgroundColor),this.hoverBorderColor=(i,s)=>qs(s.borderColor),this.hoverColor=(i,s)=>qs(s.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(e)}set(t,e){return Ys(this,t,e)}get(t){return Rn(this,t)}describe(t,e){return Ys(_o,t,e)}override(t,e){return Ys($e,t,e)}route(t,e,i,s){const o=Rn(this,t),r=Rn(this,i),a="_"+e;Object.defineProperties(o,{[a]:{value:o[e],writable:!0},[e]:{enumerable:!0,get(){const l=this[a],c=r[s];return X(l)?Object.assign({},c,l):K(l,c)},set(l){this[a]=l}}})}apply(t){t.forEach(e=>e(this))}}var at=new kb({_scriptable:n=>!n.startsWith("on"),_indexable:n=>n!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[Cb,Tb,Mb]);function Lb(n){return!n||Q(n.size)||Q(n.family)?null:(n.style?n.style+" ":"")+(n.weight?n.weight+" ":"")+n.size+"px "+n.family}function Xi(n,t,e,i,s){let o=t[s];return o||(o=t[s]=n.measureText(s).width,e.push(s)),o>i&&(i=o),i}function Pb(n,t,e,i){i=i||{};let s=i.data=i.data||{},o=i.garbageCollect=i.garbageCollect||[];i.font!==t&&(s=i.data={},o=i.garbageCollect=[],i.font=t),n.save(),n.font=t;let r=0;const a=e.length;let l,c,u,h,d;for(l=0;le.length){for(l=0;l0&&n.stroke()}}function ee(n,t,e){return e=e||.5,!t||n&&n.x>t.left-e&&n.xt.top-e&&n.y0&&o.strokeColor!=="";let l,c;for(n.save(),n.font=s.string,Nb(n,o),l=0;l+n||0;function cr(n,t){const e={},i=X(t),s=i?Object.keys(t):t,o=X(n)?i?r=>K(n[r],n[t[r]]):r=>n[r]:()=>n;for(const r of s)e[r]=Vb(o(r));return e}function Ou(n){return cr(n,{top:"y",right:"x",bottom:"y",left:"x"})}function Re(n){return cr(n,["topLeft","topRight","bottomLeft","bottomRight"])}function _t(n){const t=Ou(n);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function dt(n,t){n=n||{},t=t||at.font;let e=K(n.size,t.size);typeof e=="string"&&(e=parseInt(e,10));let i=K(n.style,t.style);i&&!(""+i).match(Hb)&&(console.warn('Invalid font style specified: "'+i+'"'),i=void 0);const s={family:K(n.family,t.family),lineHeight:zb(K(n.lineHeight,t.lineHeight),e),size:e,style:i,weight:K(n.weight,t.weight),string:""};return s.string=Lb(s),s}function An(n,t,e,i){let s=!0,o,r,a;for(o=0,r=n.length;oe&&a===0?0:a+l;return{min:r(i,-Math.abs(o)),max:r(s,o)}}function we(n,t){return Object.assign(Object.create(n),t)}function ur(n,t=[""],e,i,s=()=>n[0]){const o=e||n;typeof i>"u"&&(i=Lu("_fallback",n));const r={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:n,_rootScopes:o,_fallback:i,_getTarget:s,override:a=>ur([a,...n],t,o,i)};return new Proxy(r,{deleteProperty(a,l){return delete a[l],delete a._keys,delete n[0][l],!0},get(a,l){return Mu(a,l,()=>Jb(l,t,n,a))},getOwnPropertyDescriptor(a,l){return Reflect.getOwnPropertyDescriptor(a._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(n[0])},has(a,l){return Pa(a).includes(l)},ownKeys(a){return Pa(a)},set(a,l,c){const u=a._storage||(a._storage=s());return a[l]=u[l]=c,delete a._keys,!0}})}function cn(n,t,e,i){const s={_cacheable:!1,_proxy:n,_context:t,_subProxy:e,_stack:new Set,_descriptors:Du(n,i),setContext:o=>cn(n,o,e,i),override:o=>cn(n.override(o),t,e,i)};return new Proxy(s,{deleteProperty(o,r){return delete o[r],delete n[r],!0},get(o,r,a){return Mu(o,r,()=>qb(o,r,a))},getOwnPropertyDescriptor(o,r){return o._descriptors.allKeys?Reflect.has(n,r)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(n,r)},getPrototypeOf(){return Reflect.getPrototypeOf(n)},has(o,r){return Reflect.has(n,r)},ownKeys(){return Reflect.ownKeys(n)},set(o,r,a){return n[r]=a,delete o[r],!0}})}function Du(n,t={scriptable:!0,indexable:!0}){const{_scriptable:e=t.scriptable,_indexable:i=t.indexable,_allKeys:s=t.allKeys}=n;return{allKeys:s,scriptable:e,indexable:i,isScriptable:ye(e)?e:()=>e,isIndexable:ye(i)?i:()=>i}}const Wb=(n,t)=>n?n+sr(t):t,hr=(n,t)=>X(t)&&n!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function Mu(n,t,e){if(Object.prototype.hasOwnProperty.call(n,t))return n[t];const i=e();return n[t]=i,i}function qb(n,t,e){const{_proxy:i,_context:s,_subProxy:o,_descriptors:r}=n;let a=i[t];return ye(a)&&r.isScriptable(t)&&(a=Yb(t,a,n,e)),it(a)&&a.length&&(a=Ub(t,a,n,r.isIndexable)),hr(t,a)&&(a=cn(a,s,o&&o[t],r)),a}function Yb(n,t,e,i){const{_proxy:s,_context:o,_subProxy:r,_stack:a}=e;if(a.has(n))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+n);a.add(n);let l=t(o,r||i);return a.delete(n),hr(n,l)&&(l=dr(s._scopes,s,n,l)),l}function Ub(n,t,e,i){const{_proxy:s,_context:o,_subProxy:r,_descriptors:a}=e;if(typeof o.index<"u"&&i(n))return t[o.index%t.length];if(X(t[0])){const l=t,c=s._scopes.filter(u=>u!==l);t=[];for(const u of l){const h=dr(c,s,n,u);t.push(cn(h,o,r&&r[n],a))}}return t}function ku(n,t,e){return ye(n)?n(t,e):n}const Kb=(n,t)=>n===!0?t:typeof n=="string"?be(t,n):void 0;function Gb(n,t,e,i,s){for(const o of t){const r=Kb(e,o);if(r){n.add(r);const a=ku(r._fallback,e,s);if(typeof a<"u"&&a!==e&&a!==i)return a}else if(r===!1&&typeof i<"u"&&e!==i)return null}return!1}function dr(n,t,e,i){const s=t._rootScopes,o=ku(t._fallback,e,i),r=[...n,...s],a=new Set;a.add(i);let l=La(a,r,e,o||e,i);return l===null||typeof o<"u"&&o!==e&&(l=La(a,r,o,l,i),l===null)?!1:ur(Array.from(a),[""],s,o,()=>Xb(t,e,i))}function La(n,t,e,i,s){for(;e;)e=Gb(n,t,e,i,s);return e}function Xb(n,t,e){const i=n._getTarget();t in i||(i[t]={});const s=i[t];return it(s)&&X(e)?e:s||{}}function Jb(n,t,e,i){let s;for(const o of t)if(s=Lu(Wb(o,n),e),typeof s<"u")return hr(n,s)?dr(e,i,n,s):s}function Lu(n,t){for(const e of t){if(!e)continue;const i=e[n];if(typeof i<"u")return i}}function Pa(n){let t=n._keys;return t||(t=n._keys=Zb(n._scopes)),t}function Zb(n){const t=new Set;for(const e of n)for(const i of Object.keys(e).filter(s=>!s.startsWith("_")))t.add(i);return Array.from(t)}function Pu(n,t,e,i){const{iScale:s}=n,{key:o="r"}=this._parsing,r=new Array(i);let a,l,c,u;for(a=0,l=i;atn==="x"?"y":"x";function ty(n,t,e,i){const s=n.skip?t:n,o=t,r=e.skip?t:e,a=mo(o,s),l=mo(r,o);let c=a/(a+l),u=l/(a+l);c=isNaN(c)?0:c,u=isNaN(u)?0:u;const h=i*c,d=i*u;return{previous:{x:o.x-h*(r.x-s.x),y:o.y-h*(r.y-s.y)},next:{x:o.x+d*(r.x-s.x),y:o.y+d*(r.y-s.y)}}}function ey(n,t,e){const i=n.length;let s,o,r,a,l,c=un(n,0);for(let u=0;u!c.skip)),t.cubicInterpolationMode==="monotone")iy(n,s);else{let c=i?n[n.length-1]:n[0];for(o=0,r=n.length;on.ownerDocument.defaultView.getComputedStyle(n,null);function ry(n,t){return ys(n).getPropertyValue(t)}const ay=["top","right","bottom","left"];function Ie(n,t,e){const i={};e=e?"-"+e:"";for(let s=0;s<4;s++){const o=ay[s];i[o]=parseFloat(n[t+"-"+o+e])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}const ly=(n,t,e)=>(n>0||t>0)&&(!e||!e.shadowRoot);function cy(n,t){const e=n.touches,i=e&&e.length?e[0]:n,{offsetX:s,offsetY:o}=i;let r=!1,a,l;if(ly(s,o,n.target))a=s,l=o;else{const c=t.getBoundingClientRect();a=i.clientX-c.left,l=i.clientY-c.top,r=!0}return{x:a,y:l,box:r}}function Oe(n,t){if("native"in n)return n;const{canvas:e,currentDevicePixelRatio:i}=t,s=ys(e),o=s.boxSizing==="border-box",r=Ie(s,"padding"),a=Ie(s,"border","width"),{x:l,y:c,box:u}=cy(n,e),h=r.left+(u&&a.left),d=r.top+(u&&a.top);let{width:f,height:p}=t;return o&&(f-=r.width+a.width,p-=r.height+a.height),{x:Math.round((l-h)/f*e.width/i),y:Math.round((c-d)/p*e.height/i)}}function uy(n,t,e){let i,s;if(t===void 0||e===void 0){const o=pr(n);if(!o)t=n.clientWidth,e=n.clientHeight;else{const r=o.getBoundingClientRect(),a=ys(o),l=Ie(a,"border","width"),c=Ie(a,"padding");t=r.width-c.width-l.width,e=r.height-c.height-l.height,i=Ji(a.maxWidth,o,"clientWidth"),s=Ji(a.maxHeight,o,"clientHeight")}}return{width:t,height:e,maxWidth:i||Gi,maxHeight:s||Gi}}const mi=n=>Math.round(n*10)/10;function hy(n,t,e,i){const s=ys(n),o=Ie(s,"margin"),r=Ji(s.maxWidth,n,"clientWidth")||Gi,a=Ji(s.maxHeight,n,"clientHeight")||Gi,l=uy(n,t,e);let{width:c,height:u}=l;if(s.boxSizing==="content-box"){const d=Ie(s,"border","width"),f=Ie(s,"padding");c-=f.width+d.width,u-=f.height+d.height}return c=Math.max(0,c-o.width),u=Math.max(0,i?c/i:u-o.height),c=mi(Math.min(c,r,l.maxWidth)),u=mi(Math.min(u,a,l.maxHeight)),c&&!u&&(u=mi(c/2)),(t!==void 0||e!==void 0)&&i&&l.height&&u>l.height&&(u=l.height,c=mi(Math.floor(u*i))),{width:c,height:u}}function Ra(n,t,e){const i=t||1,s=Math.floor(n.height*i),o=Math.floor(n.width*i);n.height=Math.floor(n.height),n.width=Math.floor(n.width);const r=n.canvas;return r.style&&(e||!r.style.height&&!r.style.width)&&(r.style.height=`${n.height}px`,r.style.width=`${n.width}px`),n.currentDevicePixelRatio!==i||r.height!==s||r.width!==o?(n.currentDevicePixelRatio=i,r.height=s,r.width=o,n.ctx.setTransform(i,0,0,i,0,0),!0):!1}const dy=function(){let n=!1;try{const t={get passive(){return n=!0,!1}};fr()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch{}return n}();function Ia(n,t){const e=ry(n,t),i=e&&e.match(/^(\d+)(\.\d+)?px$/);return i?+i[1]:void 0}function De(n,t,e,i){return{x:n.x+e*(t.x-n.x),y:n.y+e*(t.y-n.y)}}function fy(n,t,e,i){return{x:n.x+e*(t.x-n.x),y:i==="middle"?e<.5?n.y:t.y:i==="after"?e<1?n.y:t.y:e>0?t.y:n.y}}function py(n,t,e,i){const s={x:n.cp2x,y:n.cp2y},o={x:t.cp1x,y:t.cp1y},r=De(n,s,e),a=De(s,o,e),l=De(o,t,e),c=De(r,a,e),u=De(a,l,e);return De(c,u,e)}const gy=function(n,t){return{x(e){return n+n+t-e},setWidth(e){t=e},textAlign(e){return e==="center"?e:e==="right"?"left":"right"},xPlus(e,i){return e-i},leftForLtr(e,i){return e-i}}},my=function(){return{x(n){return n},setWidth(n){},textAlign(n){return n},xPlus(n,t){return n+t},leftForLtr(n,t){return n}}};function Ze(n,t,e){return n?gy(t,e):my()}function Iu(n,t){let e,i;(t==="ltr"||t==="rtl")&&(e=n.canvas.style,i=[e.getPropertyValue("direction"),e.getPropertyPriority("direction")],e.setProperty("direction",t,"important"),n.prevTextDirection=i)}function Nu(n,t){t!==void 0&&(delete n.prevTextDirection,n.canvas.style.setProperty("direction",t[0],t[1]))}function Fu(n){return n==="angle"?{between:zn,compare:_b,normalize:St}:{between:Qt,compare:(t,e)=>t-e,normalize:t=>t}}function Na({start:n,end:t,count:e,loop:i,style:s}){return{start:n%e,end:t%e,loop:i&&(t-n+1)%e===0,style:s}}function _y(n,t,e){const{property:i,start:s,end:o}=e,{between:r,normalize:a}=Fu(i),l=t.length;let{start:c,end:u,loop:h}=n,d,f;if(h){for(c+=l,u+=l,d=0,f=l;dl(s,w,b)&&a(s,w)!==0,A=()=>a(o,b)===0||l(o,w,b),M=()=>g||x(),P=()=>!g||A();for(let N=u,k=u;N<=h;++N)v=t[N%r],!v.skip&&(b=c(v[i]),b!==w&&(g=l(b,s,o),_===null&&M()&&(_=a(b,s)===0?N:k),_!==null&&P()&&(p.push(Na({start:_,end:N,loop:d,count:r,style:f})),_=null),k=N,w=b));return _!==null&&p.push(Na({start:_,end:h,loop:d,count:r,style:f})),p}function Bu(n,t){const e=[],i=n.segments;for(let s=0;ss&&n[o%t].skip;)o--;return o%=t,{start:s,end:o}}function yy(n,t,e,i){const s=n.length,o=[];let r=t,a=n[t],l;for(l=t+1;l<=e;++l){const c=n[l%s];c.skip||c.stop?a.skip||(i=!1,o.push({start:t%s,end:(l-1)%s,loop:i}),t=r=c.stop?l:null):(r=l,a.skip&&(t=l)),a=c}return r!==null&&o.push({start:t%s,end:r%s,loop:i}),o}function vy(n,t){const e=n.points,i=n.options.spanGaps,s=e.length;if(!s)return[];const o=!!n._loop,{start:r,end:a}=by(e,s,o,i);if(i===!0)return Fa(n,[{start:r,end:a,loop:o}],e,t);const l=a{let n=0;return()=>n++})();function Q(n){return n===null||typeof n>"u"}function ot(n){if(Array.isArray&&Array.isArray(n))return!0;const t=Object.prototype.toString.call(n);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function X(n){return n!==null&&Object.prototype.toString.call(n)==="[object Object]"}function rt(n){return(typeof n=="number"||n instanceof Number)&&isFinite(+n)}function At(n,t){return rt(n)?n:t}function K(n,t){return typeof n>"u"?t:n}const eb=(n,t)=>typeof n=="string"&&n.endsWith("%")?parseFloat(n)/100:+n/t,fu=(n,t)=>typeof n=="string"&&n.endsWith("%")?parseFloat(n)/100*t:+n;function et(n,t,e){if(n&&typeof n.call=="function")return n.apply(e,t)}function tt(n,t,e,i){let s,o,r;if(ot(n))for(o=n.length,s=0;sn,x:n=>n.x,y:n=>n.y};function sb(n){const t=n.split("."),e=[];let i="";for(const s of t)i+=s,i.endsWith("\\")?i=i.slice(0,-1)+".":(e.push(i),i="");return e}function ob(n){const t=sb(n);return e=>{for(const i of t){if(i==="")break;e=e&&e[i]}return e}}function be(n,t){return(ba[t]||(ba[t]=ob(t)))(n)}function er(n){return n.charAt(0).toUpperCase()+n.slice(1)}const zn=n=>typeof n<"u",ye=n=>typeof n=="function",ya=(n,t)=>{if(n.size!==t.size)return!1;for(const e of n)if(!t.has(e))return!1;return!0};function rb(n){return n.type==="mouseup"||n.type==="click"||n.type==="contextmenu"}const st=Math.PI,it=2*st,ab=it+st,Gi=Number.POSITIVE_INFINITY,lb=st/180,ct=st/2,Ae=st/4,va=st*2/3,he=Math.log10,Wt=Math.sign;function Pn(n,t,e){return Math.abs(n-t)s-o).pop(),t}function cn(n){return!isNaN(parseFloat(n))&&isFinite(n)}function ub(n,t){const e=Math.round(n);return e-t<=n&&e+t>=n}function gu(n,t,e){let i,s,o;for(i=0,s=n.length;il&&c=Math.min(t,e)-i&&n<=Math.max(t,e)+i}function ir(n,t,e){e=e||(r=>n[r]1;)o=s+i>>1,e(o)?s=o:i=o;return{lo:s,hi:i}}const ee=(n,t,e,i)=>ir(n,e,i?s=>{const o=n[s][t];return on[s][t]ir(n,e,i=>n[i][t]>=e);function pb(n,t,e){let i=0,s=n.length;for(;ii&&n[s-1]>e;)s--;return i>0||s{const i="_onData"+er(e),s=n[e];Object.defineProperty(n,e,{configurable:!0,enumerable:!1,value(...o){const r=s.apply(this,o);return n._chartjs.listeners.forEach(a=>{typeof a[i]=="function"&&a[i](...o)}),r}})})}function wa(n,t){const e=n._chartjs;if(!e)return;const i=e.listeners,s=i.indexOf(t);s!==-1&&i.splice(s,1),!(i.length>0)&&(_u.forEach(o=>{delete n[o]}),delete n._chartjs)}function bu(n){const t=new Set(n);return t.size===n.length?n:Array.from(t)}const yu=function(){return typeof window>"u"?function(n){return n()}:window.requestAnimationFrame}();function vu(n,t){let e=[],i=!1;return function(...s){e=s,i||(i=!0,yu.call(window,()=>{i=!1,n.apply(t,e)}))}}function mb(n,t){let e;return function(...i){return t?(clearTimeout(e),e=setTimeout(n,t,i)):n.apply(this,i),t}}const sr=n=>n==="start"?"left":n==="end"?"right":"center",gt=(n,t,e)=>n==="start"?t:n==="end"?e:(t+e)/2,_b=(n,t,e,i)=>n===(i?"left":"right")?e:n==="center"?(t+e)/2:t;function Eu(n,t,e){const i=t.length;let s=0,o=i;if(n._sorted){const{iScale:r,_parsed:a}=n,l=r.axis,{min:c,max:u,minDefined:h,maxDefined:d}=r.getUserBounds();h&&(s=ft(Math.min(ee(a,l,c).lo,e?i:ee(t,l,r.getPixelForValue(c)).lo),0,i-1)),d?o=ft(Math.max(ee(a,r.axis,u,!0).hi+1,e?0:ee(t,l,r.getPixelForValue(u),!0).hi+1),s,i)-s:o=i-s}return{start:s,count:o}}function xu(n){const{xScale:t,yScale:e,_scaleRanges:i}=n,s={xmin:t.min,xmax:t.max,ymin:e.min,ymax:e.max};if(!i)return n._scaleRanges=s,!0;const o=i.xmin!==t.min||i.xmax!==t.max||i.ymin!==e.min||i.ymax!==e.max;return Object.assign(i,s),o}const mi=n=>n===0||n===1,Aa=(n,t,e)=>-(Math.pow(2,10*(n-=1))*Math.sin((n-t)*it/e)),Sa=(n,t,e)=>Math.pow(2,-10*n)*Math.sin((n-t)*it/e)+1,Rn={linear:n=>n,easeInQuad:n=>n*n,easeOutQuad:n=>-n*(n-2),easeInOutQuad:n=>(n/=.5)<1?.5*n*n:-.5*(--n*(n-2)-1),easeInCubic:n=>n*n*n,easeOutCubic:n=>(n-=1)*n*n+1,easeInOutCubic:n=>(n/=.5)<1?.5*n*n*n:.5*((n-=2)*n*n+2),easeInQuart:n=>n*n*n*n,easeOutQuart:n=>-((n-=1)*n*n*n-1),easeInOutQuart:n=>(n/=.5)<1?.5*n*n*n*n:-.5*((n-=2)*n*n*n-2),easeInQuint:n=>n*n*n*n*n,easeOutQuint:n=>(n-=1)*n*n*n*n+1,easeInOutQuint:n=>(n/=.5)<1?.5*n*n*n*n*n:.5*((n-=2)*n*n*n*n+2),easeInSine:n=>-Math.cos(n*ct)+1,easeOutSine:n=>Math.sin(n*ct),easeInOutSine:n=>-.5*(Math.cos(st*n)-1),easeInExpo:n=>n===0?0:Math.pow(2,10*(n-1)),easeOutExpo:n=>n===1?1:-Math.pow(2,-10*n)+1,easeInOutExpo:n=>mi(n)?n:n<.5?.5*Math.pow(2,10*(n*2-1)):.5*(-Math.pow(2,-10*(n*2-1))+2),easeInCirc:n=>n>=1?n:-(Math.sqrt(1-n*n)-1),easeOutCirc:n=>Math.sqrt(1-(n-=1)*n),easeInOutCirc:n=>(n/=.5)<1?-.5*(Math.sqrt(1-n*n)-1):.5*(Math.sqrt(1-(n-=2)*n)+1),easeInElastic:n=>mi(n)?n:Aa(n,.075,.3),easeOutElastic:n=>mi(n)?n:Sa(n,.075,.3),easeInOutElastic(n){return mi(n)?n:n<.5?.5*Aa(n*2,.1125,.45):.5+.5*Sa(n*2-1,.1125,.45)},easeInBack(n){return n*n*((1.70158+1)*n-1.70158)},easeOutBack(n){return(n-=1)*n*((1.70158+1)*n+1.70158)+1},easeInOutBack(n){let t=1.70158;return(n/=.5)<1?.5*(n*n*(((t*=1.525)+1)*n-t)):.5*((n-=2)*n*(((t*=1.525)+1)*n+t)+2)},easeInBounce:n=>1-Rn.easeOutBounce(1-n),easeOutBounce(n){return n<1/2.75?7.5625*n*n:n<2/2.75?7.5625*(n-=1.5/2.75)*n+.75:n<2.5/2.75?7.5625*(n-=2.25/2.75)*n+.9375:7.5625*(n-=2.625/2.75)*n+.984375},easeInOutBounce:n=>n<.5?Rn.easeInBounce(n*2)*.5:Rn.easeOutBounce(n*2-1)*.5+.5};function or(n){if(n&&typeof n=="object"){const t=n.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function Ca(n){return or(n)?n:new Bn(n)}function Ws(n){return or(n)?n:new Bn(n).saturate(.5).darken(.1).hexString()}const bb=["x","y","borderWidth","radius","tension"],yb=["color","borderColor","backgroundColor"];function vb(n){n.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),n.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),n.set("animations",{colors:{type:"color",properties:yb},numbers:{type:"number",properties:bb}}),n.describe("animations",{_fallback:"animation"}),n.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>t|0}}}})}function Eb(n){n.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const Ta=new Map;function xb(n,t){t=t||{};const e=n+JSON.stringify(t);let i=Ta.get(e);return i||(i=new Intl.NumberFormat(n,t),Ta.set(e,i)),i}function ni(n,t,e){return xb(t,e).format(n)}const wu={values(n){return ot(n)?n:""+n},numeric(n,t,e){if(n===0)return"0";const i=this.chart.options.locale;let s,o=n;if(e.length>1){const c=Math.max(Math.abs(e[0].value),Math.abs(e[e.length-1].value));(c<1e-4||c>1e15)&&(s="scientific"),o=wb(n,e)}const r=he(Math.abs(o)),a=isNaN(r)?1:Math.max(Math.min(-1*Math.floor(r),20),0),l={notation:s,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),ni(n,i,l)},logarithmic(n,t,e){if(n===0)return"0";const i=e[t].significand||n/Math.pow(10,Math.floor(he(n)));return[1,2,3,5,10,15].includes(i)||t>.8*e.length?wu.numeric.call(this,n,t,e):""}};function wb(n,t){let e=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(e)>=1&&n!==Math.floor(n)&&(e=n-Math.floor(n)),e}var gs={formatters:wu};function Ab(n){n.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,e)=>e.lineWidth,tickColor:(t,e)=>e.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:gs.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),n.route("scale.ticks","color","","color"),n.route("scale.grid","color","","borderColor"),n.route("scale.border","color","","borderColor"),n.route("scale.title","color","","color"),n.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),n.describe("scales",{_fallback:"scale"}),n.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}const Be=Object.create(null),mo=Object.create(null);function In(n,t){if(!t)return n;const e=t.split(".");for(let i=0,s=e.length;ii.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(i,s)=>Ws(s.backgroundColor),this.hoverBorderColor=(i,s)=>Ws(s.borderColor),this.hoverColor=(i,s)=>Ws(s.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(e)}set(t,e){return qs(this,t,e)}get(t){return In(this,t)}describe(t,e){return qs(mo,t,e)}override(t,e){return qs(Be,t,e)}route(t,e,i,s){const o=In(this,t),r=In(this,i),a="_"+e;Object.defineProperties(o,{[a]:{value:o[e],writable:!0},[e]:{enumerable:!0,get(){const l=this[a],c=r[s];return X(l)?Object.assign({},c,l):K(l,c)},set(l){this[a]=l}}})}apply(t){t.forEach(e=>e(this))}}var at=new Sb({_scriptable:n=>!n.startsWith("on"),_indexable:n=>n!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[vb,Eb,Ab]);function Cb(n){return!n||Q(n.size)||Q(n.family)?null:(n.style?n.style+" ":"")+(n.weight?n.weight+" ":"")+n.size+"px "+n.family}function Xi(n,t,e,i,s){let o=t[s];return o||(o=t[s]=n.measureText(s).width,e.push(s)),o>i&&(i=o),i}function Tb(n,t,e,i){i=i||{};let s=i.data=i.data||{},o=i.garbageCollect=i.garbageCollect||[];i.font!==t&&(s=i.data={},o=i.garbageCollect=[],i.font=t),n.save(),n.font=t;let r=0;const a=e.length;let l,c,u,h,d;for(l=0;le.length){for(l=0;l0&&n.stroke()}}function ne(n,t,e){return e=e||.5,!t||n&&n.x>t.left-e&&n.xt.top-e&&n.y0&&o.strokeColor!=="";let l,c;for(n.save(),n.font=s.string,Mb(n,o),l=0;l+n||0;function rr(n,t){const e={},i=X(t),s=i?Object.keys(t):t,o=X(n)?i?r=>K(n[r],n[t[r]]):r=>n[r]:()=>n;for(const r of s)e[r]=Nb(o(r));return e}function Su(n){return rr(n,{top:"y",right:"x",bottom:"y",left:"x"})}function Ie(n){return rr(n,["topLeft","topRight","bottomLeft","bottomRight"])}function _t(n){const t=Su(n);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function dt(n,t){n=n||{},t=t||at.font;let e=K(n.size,t.size);typeof e=="string"&&(e=parseInt(e,10));let i=K(n.style,t.style);i&&!(""+i).match(Rb)&&(console.warn('Invalid font style specified: "'+i+'"'),i=void 0);const s={family:K(n.family,t.family),lineHeight:Ib(K(n.lineHeight,t.lineHeight),e),size:e,style:i,weight:K(n.weight,t.weight),string:""};return s.string=Cb(s),s}function Sn(n,t,e,i){let s,o,r;for(s=0,o=n.length;se&&a===0?0:a+l;return{min:r(i,-Math.abs(o)),max:r(s,o)}}function we(n,t){return Object.assign(Object.create(n),t)}function ar(n,t=[""],e,i,s=()=>n[0]){const o=e||n;typeof i>"u"&&(i=Du("_fallback",n));const r={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:n,_rootScopes:o,_fallback:i,_getTarget:s,override:a=>ar([a,...n],t,o,i)};return new Proxy(r,{deleteProperty(a,l){return delete a[l],delete a._keys,delete n[0][l],!0},get(a,l){return Tu(a,l,()=>qb(l,t,n,a))},getOwnPropertyDescriptor(a,l){return Reflect.getOwnPropertyDescriptor(a._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(n[0])},has(a,l){return Ma(a).includes(l)},ownKeys(a){return Ma(a)},set(a,l,c){const u=a._storage||(a._storage=s());return a[l]=u[l]=c,delete a._keys,!0}})}function un(n,t,e,i){const s={_cacheable:!1,_proxy:n,_context:t,_subProxy:e,_stack:new Set,_descriptors:Cu(n,i),setContext:o=>un(n,o,e,i),override:o=>un(n.override(o),t,e,i)};return new Proxy(s,{deleteProperty(o,r){return delete o[r],delete n[r],!0},get(o,r,a){return Tu(o,r,()=>Bb(o,r,a))},getOwnPropertyDescriptor(o,r){return o._descriptors.allKeys?Reflect.has(n,r)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(n,r)},getPrototypeOf(){return Reflect.getPrototypeOf(n)},has(o,r){return Reflect.has(n,r)},ownKeys(){return Reflect.ownKeys(n)},set(o,r,a){return n[r]=a,delete o[r],!0}})}function Cu(n,t={scriptable:!0,indexable:!0}){const{_scriptable:e=t.scriptable,_indexable:i=t.indexable,_allKeys:s=t.allKeys}=n;return{allKeys:s,scriptable:e,indexable:i,isScriptable:ye(e)?e:()=>e,isIndexable:ye(i)?i:()=>i}}const $b=(n,t)=>n?n+er(t):t,lr=(n,t)=>X(t)&&n!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function Tu(n,t,e){if(Object.prototype.hasOwnProperty.call(n,t))return n[t];const i=e();return n[t]=i,i}function Bb(n,t,e){const{_proxy:i,_context:s,_subProxy:o,_descriptors:r}=n;let a=i[t];return ye(a)&&r.isScriptable(t)&&(a=Hb(t,a,n,e)),ot(a)&&a.length&&(a=zb(t,a,n,r.isIndexable)),lr(t,a)&&(a=un(a,s,o&&o[t],r)),a}function Hb(n,t,e,i){const{_proxy:s,_context:o,_subProxy:r,_stack:a}=e;if(a.has(n))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+n);a.add(n);let l=t(o,r||i);return a.delete(n),lr(n,l)&&(l=cr(s._scopes,s,n,l)),l}function zb(n,t,e,i){const{_proxy:s,_context:o,_subProxy:r,_descriptors:a}=e;if(typeof o.index<"u"&&i(n))return t[o.index%t.length];if(X(t[0])){const l=t,c=s._scopes.filter(u=>u!==l);t=[];for(const u of l){const h=cr(c,s,n,u);t.push(un(h,o,r&&r[n],a))}}return t}function Ou(n,t,e){return ye(n)?n(t,e):n}const Vb=(n,t)=>n===!0?t:typeof n=="string"?be(t,n):void 0;function jb(n,t,e,i,s){for(const o of t){const r=Vb(e,o);if(r){n.add(r);const a=Ou(r._fallback,e,s);if(typeof a<"u"&&a!==e&&a!==i)return a}else if(r===!1&&typeof i<"u"&&e!==i)return null}return!1}function cr(n,t,e,i){const s=t._rootScopes,o=Ou(t._fallback,e,i),r=[...n,...s],a=new Set;a.add(i);let l=Da(a,r,e,o||e,i);return l===null||typeof o<"u"&&o!==e&&(l=Da(a,r,o,l,i),l===null)?!1:ar(Array.from(a),[""],s,o,()=>Wb(t,e,i))}function Da(n,t,e,i,s){for(;e;)e=jb(n,t,e,i,s);return e}function Wb(n,t,e){const i=n._getTarget();t in i||(i[t]={});const s=i[t];return ot(s)&&X(e)?e:s||{}}function qb(n,t,e,i){let s;for(const o of t)if(s=Du($b(o,n),e),typeof s<"u")return lr(n,s)?cr(e,i,n,s):s}function Du(n,t){for(const e of t){if(!e)continue;const i=e[n];if(typeof i<"u")return i}}function Ma(n){let t=n._keys;return t||(t=n._keys=Yb(n._scopes)),t}function Yb(n){const t=new Set;for(const e of n)for(const i of Object.keys(e).filter(s=>!s.startsWith("_")))t.add(i);return Array.from(t)}function Mu(n,t,e,i){const{iScale:s}=n,{key:o="r"}=this._parsing,r=new Array(i);let a,l,c,u;for(a=0,l=i;atn==="x"?"y":"x";function Kb(n,t,e,i){const s=n.skip?t:n,o=t,r=e.skip?t:e,a=go(o,s),l=go(r,o);let c=a/(a+l),u=l/(a+l);c=isNaN(c)?0:c,u=isNaN(u)?0:u;const h=i*c,d=i*u;return{previous:{x:o.x-h*(r.x-s.x),y:o.y-h*(r.y-s.y)},next:{x:o.x+d*(r.x-s.x),y:o.y+d*(r.y-s.y)}}}function Gb(n,t,e){const i=n.length;let s,o,r,a,l,c=hn(n,0);for(let u=0;u!c.skip)),t.cubicInterpolationMode==="monotone")Jb(n,s);else{let c=i?n[n.length-1]:n[0];for(o=0,r=n.length;on.ownerDocument.defaultView.getComputedStyle(n,null);function ty(n,t){return bs(n).getPropertyValue(t)}const ey=["top","right","bottom","left"];function Ne(n,t,e){const i={};e=e?"-"+e:"";for(let s=0;s<4;s++){const o=ey[s];i[o]=parseFloat(n[t+"-"+o+e])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}const ny=(n,t,e)=>(n>0||t>0)&&(!e||!e.shadowRoot);function iy(n,t){const e=n.touches,i=e&&e.length?e[0]:n,{offsetX:s,offsetY:o}=i;let r=!1,a,l;if(ny(s,o,n.target))a=s,l=o;else{const c=t.getBoundingClientRect();a=i.clientX-c.left,l=i.clientY-c.top,r=!0}return{x:a,y:l,box:r}}function Oe(n,t){if("native"in n)return n;const{canvas:e,currentDevicePixelRatio:i}=t,s=bs(e),o=s.boxSizing==="border-box",r=Ne(s,"padding"),a=Ne(s,"border","width"),{x:l,y:c,box:u}=iy(n,e),h=r.left+(u&&a.left),d=r.top+(u&&a.top);let{width:f,height:p}=t;return o&&(f-=r.width+a.width,p-=r.height+a.height),{x:Math.round((l-h)/f*e.width/i),y:Math.round((c-d)/p*e.height/i)}}function sy(n,t,e){let i,s;if(t===void 0||e===void 0){const o=hr(n);if(!o)t=n.clientWidth,e=n.clientHeight;else{const r=o.getBoundingClientRect(),a=bs(o),l=Ne(a,"border","width"),c=Ne(a,"padding");t=r.width-c.width-l.width,e=r.height-c.height-l.height,i=Ji(a.maxWidth,o,"clientWidth"),s=Ji(a.maxHeight,o,"clientHeight")}}return{width:t,height:e,maxWidth:i||Gi,maxHeight:s||Gi}}const bi=n=>Math.round(n*10)/10;function oy(n,t,e,i){const s=bs(n),o=Ne(s,"margin"),r=Ji(s.maxWidth,n,"clientWidth")||Gi,a=Ji(s.maxHeight,n,"clientHeight")||Gi,l=sy(n,t,e);let{width:c,height:u}=l;if(s.boxSizing==="content-box"){const d=Ne(s,"border","width"),f=Ne(s,"padding");c-=f.width+d.width,u-=f.height+d.height}return c=Math.max(0,c-o.width),u=Math.max(0,i?c/i:u-o.height),c=bi(Math.min(c,r,l.maxWidth)),u=bi(Math.min(u,a,l.maxHeight)),c&&!u&&(u=bi(c/2)),(t!==void 0||e!==void 0)&&i&&l.height&&u>l.height&&(u=l.height,c=bi(Math.floor(u*i))),{width:c,height:u}}function ka(n,t,e){const i=t||1,s=Math.floor(n.height*i),o=Math.floor(n.width*i);n.height=Math.floor(n.height),n.width=Math.floor(n.width);const r=n.canvas;return r.style&&(e||!r.style.height&&!r.style.width)&&(r.style.height=`${n.height}px`,r.style.width=`${n.width}px`),n.currentDevicePixelRatio!==i||r.height!==s||r.width!==o?(n.currentDevicePixelRatio=i,r.height=s,r.width=o,n.ctx.setTransform(i,0,0,i,0,0),!0):!1}const ry=function(){let n=!1;try{const t={get passive(){return n=!0,!1}};ur()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch{}return n}();function La(n,t){const e=ty(n,t),i=e&&e.match(/^(\d+)(\.\d+)?px$/);return i?+i[1]:void 0}function De(n,t,e,i){return{x:n.x+e*(t.x-n.x),y:n.y+e*(t.y-n.y)}}function ay(n,t,e,i){return{x:n.x+e*(t.x-n.x),y:i==="middle"?e<.5?n.y:t.y:i==="after"?e<1?n.y:t.y:e>0?t.y:n.y}}function ly(n,t,e,i){const s={x:n.cp2x,y:n.cp2y},o={x:t.cp1x,y:t.cp1y},r=De(n,s,e),a=De(s,o,e),l=De(o,t,e),c=De(r,a,e),u=De(a,l,e);return De(c,u,e)}const cy=function(n,t){return{x(e){return n+n+t-e},setWidth(e){t=e},textAlign(e){return e==="center"?e:e==="right"?"left":"right"},xPlus(e,i){return e-i},leftForLtr(e,i){return e-i}}},uy=function(){return{x(n){return n},setWidth(n){},textAlign(n){return n},xPlus(n,t){return n+t},leftForLtr(n,t){return n}}};function Qe(n,t,e){return n?cy(t,e):uy()}function Lu(n,t){let e,i;(t==="ltr"||t==="rtl")&&(e=n.canvas.style,i=[e.getPropertyValue("direction"),e.getPropertyPriority("direction")],e.setProperty("direction",t,"important"),n.prevTextDirection=i)}function Pu(n,t){t!==void 0&&(delete n.prevTextDirection,n.canvas.style.setProperty("direction",t[0],t[1]))}function Ru(n){return n==="angle"?{between:Vn,compare:hb,normalize:St}:{between:te,compare:(t,e)=>t-e,normalize:t=>t}}function Pa({start:n,end:t,count:e,loop:i,style:s}){return{start:n%e,end:t%e,loop:i&&(t-n+1)%e===0,style:s}}function hy(n,t,e){const{property:i,start:s,end:o}=e,{between:r,normalize:a}=Ru(i),l=t.length;let{start:c,end:u,loop:h}=n,d,f;if(h){for(c+=l,u+=l,d=0,f=l;dl(s,w,b)&&a(s,w)!==0,A=()=>a(o,b)===0||l(o,w,b),M=()=>g||x(),P=()=>!g||A();for(let N=u,k=u;N<=h;++N)v=t[N%r],!v.skip&&(b=c(v[i]),b!==w&&(g=l(b,s,o),_===null&&M()&&(_=a(b,s)===0?N:k),_!==null&&P()&&(p.push(Pa({start:_,end:N,loop:d,count:r,style:f})),_=null),k=N,w=b));return _!==null&&p.push(Pa({start:_,end:h,loop:d,count:r,style:f})),p}function Nu(n,t){const e=[],i=n.segments;for(let s=0;ss&&n[o%t].skip;)o--;return o%=t,{start:s,end:o}}function fy(n,t,e,i){const s=n.length,o=[];let r=t,a=n[t],l;for(l=t+1;l<=e;++l){const c=n[l%s];c.skip||c.stop?a.skip||(i=!1,o.push({start:t%s,end:(l-1)%s,loop:i}),t=r=c.stop?l:null):(r=l,a.skip&&(t=l)),a=c}return r!==null&&o.push({start:t%s,end:r%s,loop:i}),o}function py(n,t){const e=n.points,i=n.options.spanGaps,s=e.length;if(!s)return[];const o=!!n._loop,{start:r,end:a}=dy(e,s,o,i);if(i===!0)return Ra(n,[{start:r,end:a,loop:o}],e,t);const l=aa({chart:t,initial:e.initial,numSteps:r,currentStep:Math.min(i-e.start,r)}))}_refresh(){this._request||(this._running=!0,this._request=xu.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let e=0;this._charts.forEach((i,s)=>{if(!i.running||!i.items.length)return;const o=i.items;let r=o.length-1,a=!1,l;for(;r>=0;--r)l=o[r],l._active?(l._total>i.duration&&(i.duration=l._total),l.tick(t),a=!0):(o[r]=o[o.length-1],o.pop());a&&(s.draw(),this._notify(s,i,t,"progress")),o.length||(i.running=!1,this._notify(s,i,t,"complete"),i.initial=!1),e+=o.length}),this._lastDate=t,e===0&&(this._running=!1)}_getAnims(t){const e=this._charts;let i=e.get(t);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,i)),i}listen(t,e,i){this._getAnims(t).listeners[e].push(i)}add(t,e){!e||!e.length||this._getAnims(t).items.push(...e)}has(t){return this._getAnims(t).items.length>0}start(t){const e=this._charts.get(t);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce((i,s)=>Math.max(i,s._duration),0),this._refresh())}running(t){if(!this._running)return!1;const e=this._charts.get(t);return!(!e||!e.running||!e.items.length)}stop(t){const e=this._charts.get(t);if(!e||!e.items.length)return;const i=e.items;let s=i.length-1;for(;s>=0;--s)i[s].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var Gt=new wy;const Ba="transparent",Ay={boolean(n,t,e){return e>.5?t:n},color(n,t,e){const i=Da(n||Ba),s=i.valid&&Da(t||Ba);return s&&s.valid?s.mix(i,e).hexString():t},number(n,t,e){return n+(t-n)*e}};class Sy{constructor(t,e,i,s){const o=e[i];s=An([t.to,s,o,t.from]);const r=An([t.from,o,s]);this._active=!0,this._fn=t.fn||Ay[t.type||typeof r],this._easing=Pn[t.easing]||Pn.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=e,this._prop=i,this._from=r,this._to=s,this._promises=void 0}active(){return this._active}update(t,e,i){if(this._active){this._notify(!1);const s=this._target[this._prop],o=i-this._start,r=this._duration-o;this._start=i,this._duration=Math.floor(Math.max(r,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=An([t.to,e,s,t.from]),this._from=An([t.from,s,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,i=this._duration,s=this._prop,o=this._from,r=this._loop,a=this._to;let l;if(this._active=o!==a&&(r||e1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[s]=this._fn(o,a,l)}wait(){const t=this._promises||(this._promises=[]);return new Promise((e,i)=>{t.push({res:e,rej:i})})}_notify(t){const e=t?"res":"rej",i=this._promises||[];for(let s=0;s{const o=t[s];if(!X(o))return;const r={};for(const a of e)r[a]=o[a];(it(o.properties)&&o.properties||[s]).forEach(a=>{(a===s||!i.has(a))&&i.set(a,r)})})}_animateOptions(t,e){const i=e.options,s=Ty(t,i);if(!s)return[];const o=this._createAnimations(s,i);return i.$shared&&Cy(t.options.$animations,i).then(()=>{t.options=i},()=>{}),o}_createAnimations(t,e){const i=this._properties,s=[],o=t.$animations||(t.$animations={}),r=Object.keys(e),a=Date.now();let l;for(l=r.length-1;l>=0;--l){const c=r[l];if(c.charAt(0)==="$")continue;if(c==="options"){s.push(...this._animateOptions(t,e));continue}const u=e[c];let h=o[c];const d=i.get(c);if(h)if(d&&h.active()){h.update(d,u,a);continue}else h.cancel();if(!d||!d.duration){t[c]=u;continue}o[c]=h=new Sy(d,t,c,u),s.push(h)}return s}update(t,e){if(this._properties.size===0){Object.assign(t,e);return}const i=this._createAnimations(t,e);if(i.length)return Gt.add(this._chart,i),!0}}function Cy(n,t){const e=[],i=Object.keys(t);for(let s=0;s0||!e&&o<0)return s.index}return null}function Wa(n,t){const{chart:e,_cachedMeta:i}=n,s=e._stacks||(e._stacks={}),{iScale:o,vScale:r,index:a}=i,l=o.axis,c=r.axis,u=ky(o,r,i),h=t.length;let d;for(let f=0;fe[i].axis===t).shift()}function Ry(n,t){return we(n,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function Iy(n,t,e){return we(n,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:e,index:t,mode:"default",type:"data"})}function bn(n,t){const e=n.controller.index,i=n.vScale&&n.vScale.axis;if(i){t=t||n._parsed;for(const s of t){const o=s._stacks;if(!o||o[i]===void 0||o[i][e]===void 0)return;delete o[i][e],o[i]._visualValues!==void 0&&o[i]._visualValues[e]!==void 0&&delete o[i]._visualValues[e]}}}const Ks=n=>n==="reset"||n==="none",qa=(n,t)=>t?n:Object.assign({},n),Ny=(n,t,e)=>n&&!t.hidden&&t._stacked&&{keys:zu(e,!0),values:null};class Nt{constructor(t,e){this.chart=t,this._ctx=t.ctx,this.index=e,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=Va(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&bn(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,e=this._cachedMeta,i=this.getDataset(),s=(h,d,f,p)=>h==="x"?d:h==="r"?p:f,o=e.xAxisID=K(i.xAxisID,Us(t,"x")),r=e.yAxisID=K(i.yAxisID,Us(t,"y")),a=e.rAxisID=K(i.rAxisID,Us(t,"r")),l=e.indexAxis,c=e.iAxisID=s(l,o,r,a),u=e.vAxisID=s(l,r,o,a);e.xScale=this.getScaleForId(o),e.yScale=this.getScaleForId(r),e.rScale=this.getScaleForId(a),e.iScale=this.getScaleForId(c),e.vScale=this.getScaleForId(u)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const e=this._cachedMeta;return t===e.iScale?e.vScale:e.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&Ca(this._data,this),t._stacked&&bn(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),i=this._data;if(X(e))this._data=My(e);else if(i!==e){if(i){Ca(i,this);const s=this._cachedMeta;bn(s),s._parsed=[]}e&&Object.isExtensible(e)&&Eb(e,this),this._syncList=[],this._data=e}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const e=this._cachedMeta,i=this.getDataset();let s=!1;this._dataCheck();const o=e._stacked;e._stacked=Va(e.vScale,e),e.stack!==i.stack&&(s=!0,bn(e),e.stack=i.stack),this._resyncElements(t),(s||o!==e._stacked)&&Wa(this,e._parsed)}configure(){const t=this.chart.config,e=t.datasetScopeKeys(this._type),i=t.getOptionScopes(this.getDataset(),e,!0);this.options=t.createResolver(i,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,e){const{_cachedMeta:i,_data:s}=this,{iScale:o,_stacked:r}=i,a=o.axis;let l=t===0&&e===s.length?!0:i._sorted,c=t>0&&i._parsed[t-1],u,h,d;if(this._parsing===!1)i._parsed=s,i._sorted=!0,d=s;else{it(s[t])?d=this.parseArrayData(i,s,t,e):X(s[t])?d=this.parseObjectData(i,s,t,e):d=this.parsePrimitiveData(i,s,t,e);const f=()=>h[a]===null||c&&h[a]g||h=0;--d)if(!p()){this.updateRangeFromParsed(c,t,f,l);break}}return c}getAllParsedValues(t){const e=this._cachedMeta._parsed,i=[];let s,o,r;for(s=0,o=e.length;s=0&&tthis.getContext(i,s,e),g=c.resolveNamedOptions(d,f,p,h);return g.$shared&&(g.$shared=l,o[r]=Object.freeze(qa(g,l))),g}_resolveAnimations(t,e,i){const s=this.chart,o=this._cachedDataOpts,r=`animation-${e}`,a=o[r];if(a)return a;let l;if(s.options.animation!==!1){const u=this.chart.config,h=u.datasetAnimationScopeKeys(this._type,e),d=u.getOptionScopes(this.getDataset(),h);l=u.createResolver(d,this.getContext(t,i,e))}const c=new Hu(s,l&&l.animations);return l&&l._cacheable&&(o[r]=Object.freeze(c)),c}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||Ks(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){const i=this.resolveDataElementOptions(t,e),s=this._sharedOptions,o=this.getSharedOptions(i),r=this.includeOptions(e,o)||o!==s;return this.updateSharedOptions(o,e,i),{sharedOptions:o,includeOptions:r}}updateElement(t,e,i,s){Ks(s)?Object.assign(t,i):this._resolveAnimations(e,s).update(t,i)}updateSharedOptions(t,e,i){t&&!Ks(e)&&this._resolveAnimations(void 0,e).update(t,i)}_setStyle(t,e,i,s){t.active=s;const o=this.getStyle(e,s);this._resolveAnimations(e,i,s).update(t,{options:!s&&this.getSharedOptions(o)||o})}removeHoverStyle(t,e,i){this._setStyle(t,i,"active",!1)}setHoverStyle(t,e,i){this._setStyle(t,i,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const e=this._data,i=this._cachedMeta.data;for(const[a,l,c]of this._syncList)this[a](l,c);this._syncList=[];const s=i.length,o=e.length,r=Math.min(o,s);r&&this.parse(0,r),o>s?this._insertElements(s,o-s,t):o{for(c.length+=e,a=c.length-1;a>=r;a--)c[a]=c[a-e]};for(l(o),a=t;as-o))}return n._cache.$bar}function $y(n){const t=n.iScale,e=Fy(t,n.type);let i=t._length,s,o,r,a;const l=()=>{r===32767||r===-32768||(Hn(a)&&(i=Math.min(i,Math.abs(r-a)||i)),a=r)};for(s=0,o=e.length;s0?s[n-1]:null,a=nMath.abs(a)&&(l=a,c=r),t[e.axis]=c,t._custom={barStart:l,barEnd:c,start:s,end:o,min:r,max:a}}function Vu(n,t,e,i){return it(n)?zy(n,t,e,i):t[e.axis]=e.parse(n,i),t}function Ya(n,t,e,i){const s=n.iScale,o=n.vScale,r=s.getLabels(),a=s===o,l=[];let c,u,h,d;for(c=e,u=e+i;c=e?1:-1)}function jy(n){let t,e,i,s,o;return n.horizontal?(t=n.base>n.x,e="left",i="right"):(t=n.basel.controller.options.grouped),o=i.options.stacked,r=[],a=l=>{const c=l.controller.getParsed(e),u=c&&c[l.vScale.axis];if(Q(u)||isNaN(u))return!0};for(const l of s)if(!(e!==void 0&&a(l))&&((o===!1||r.indexOf(l.stack)===-1||o===void 0&&l.stack===void 0)&&r.push(l.stack),l.index===t))break;return r.length||r.push(void 0),r}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,e,i){const s=this._getStacks(t,i),o=e!==void 0?s.indexOf(e):-1;return o===-1?s.length-1:o}_getRuler(){const t=this.options,e=this._cachedMeta,i=e.iScale,s=[];let o,r;for(o=0,r=e.data.length;o=0;--i)e=Math.max(e,t[i].size(this.resolveDataElementOptions(i))/2);return e>0&&e}getLabelAndValue(t){const e=this._cachedMeta,i=this.chart.data.labels||[],{xScale:s,yScale:o}=e,r=this.getParsed(t),a=s.getLabelForValue(r.x),l=o.getLabelForValue(r.y),c=r._custom;return{label:i[t]||"",value:"("+a+", "+l+(c?", "+c:"")+")"}}update(t){const e=this._cachedMeta.data;this.updateElements(e,0,e.length,t)}updateElements(t,e,i,s){const o=s==="reset",{iScale:r,vScale:a}=this._cachedMeta,{sharedOptions:l,includeOptions:c}=this._getSharedOptions(e,s),u=r.axis,h=a.axis;for(let d=e;dzn(w,a,l,!0)?1:Math.max(x,x*e,A,A*e),p=(w,x,A)=>zn(w,a,l,!0)?-1:Math.min(x,x*e,A,A*e),g=f(0,c,h),_=f(ct,u,d),b=p(ot,c,h),v=p(ot+ct,u,d);i=(g-b)/2,s=(_-v)/2,o=-(g+b)/2,r=-(_+v)/2}return{ratioX:i,ratioY:s,offsetX:o,offsetY:r}}class Le extends Nt{constructor(t,e){super(t,e),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,e){const i=this.getDataset().data,s=this._cachedMeta;if(this._parsing===!1)s._parsed=i;else{let o=l=>+i[l];if(X(i[t])){const{key:l="value"}=this._parsing;o=c=>+be(i[c],l)}let r,a;for(r=t,a=t+e;r0&&!isNaN(t)?st*(Math.abs(t)/e):0}getLabelAndValue(t){const e=this._cachedMeta,i=this.chart,s=i.data.labels||[],o=ti(e._parsed[t],i.options.locale);return{label:s[t]||"",value:o}}getMaxBorderWidth(t){let e=0;const i=this.chart;let s,o,r,a,l;if(!t){for(s=0,o=i.data.datasets.length;st!=="spacing",_indexable:t=>t!=="spacing"&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")}),z(Le,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:i,color:s}}=t.legend.options;return e.labels.map((o,r)=>{const l=t.getDatasetMeta(0).controller.getStyle(r);return{text:o,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:s,lineWidth:l.borderWidth,pointStyle:i,hidden:!t.getDataVisibility(r),index:r}})}return[]}},onClick(t,e,i){i.chart.toggleDataVisibility(e.index),i.chart.update()}}}});class Ri extends Nt{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const e=this._cachedMeta,{dataset:i,data:s=[],_dataset:o}=e,r=this.chart._animationsDisabled;let{start:a,count:l}=Au(e,s,r);this._drawStart=a,this._drawCount=l,Su(e)&&(a=0,l=s.length),i._chart=this.chart,i._datasetIndex=this.index,i._decimated=!!o._decimated,i.points=s;const c=this.resolveDatasetElementOptions(t);this.options.showLine||(c.borderWidth=0),c.segment=this.options.segment,this.updateElement(i,void 0,{animated:!r,options:c},t),this.updateElements(s,a,l,t)}updateElements(t,e,i,s){const o=s==="reset",{iScale:r,vScale:a,_stacked:l,_dataset:c}=this._cachedMeta,{sharedOptions:u,includeOptions:h}=this._getSharedOptions(e,s),d=r.axis,f=a.axis,{spanGaps:p,segment:g}=this.options,_=ln(p)?p:Number.POSITIVE_INFINITY,b=this.chart._animationsDisabled||o||s==="none",v=e+i,w=t.length;let x=e>0&&this.getParsed(e-1);for(let A=0;A=v){P.skip=!0;continue}const N=this.getParsed(A),k=Q(N[f]),m=P[d]=r.getPixelForValue(N[d],A),E=P[f]=o||k?a.getBasePixel():a.getPixelForValue(l?this.applyStack(a,N,l):N[f],A);P.skip=isNaN(m)||isNaN(E)||k,P.stop=A>0&&Math.abs(N[d]-x[d])>_,g&&(P.parsed=N,P.raw=c.data[A]),h&&(P.options=u||this.resolveDataElementOptions(A,M.active?"active":s)),b||this.updateElement(M,A,P,s),x=N}}getMaxOverflow(){const t=this._cachedMeta,e=t.dataset,i=e.options&&e.options.borderWidth||0,s=t.data||[];if(!s.length)return i;const o=s[0].size(this.resolveDataElementOptions(0)),r=s[s.length-1].size(this.resolveDataElementOptions(s.length-1));return Math.max(i,o,r)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}z(Ri,"id","line"),z(Ri,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),z(Ri,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});class In extends Nt{constructor(t,e){super(t,e),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const e=this._cachedMeta,i=this.chart,s=i.data.labels||[],o=ti(e._parsed[t].r,i.options.locale);return{label:s[t]||"",value:o}}parseObjectData(t,e,i,s){return Pu.bind(this)(t,e,i,s)}update(t){const e=this._cachedMeta.data;this._updateRadius(),this.updateElements(e,0,e.length,t)}getMinMax(){const t=this._cachedMeta,e={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach((i,s)=>{const o=this.getParsed(s).r;!isNaN(o)&&this.chart.getDataVisibility(s)&&(oe.max&&(e.max=o))}),e}_updateRadius(){const t=this.chart,e=t.chartArea,i=t.options,s=Math.min(e.right-e.left,e.bottom-e.top),o=Math.max(s/2,0),r=Math.max(i.cutoutPercentage?o/100*i.cutoutPercentage:1,0),a=(o-r)/t.getVisibleDatasetCount();this.outerRadius=o-a*this.index,this.innerRadius=this.outerRadius-a}updateElements(t,e,i,s){const o=s==="reset",r=this.chart,l=r.options.animation,c=this._cachedMeta.rScale,u=c.xCenter,h=c.yCenter,d=c.getIndexAngle(0)-.5*ot;let f=d,p;const g=360/this.countVisibleElements();for(p=0;p{!isNaN(this.getParsed(s).r)&&this.chart.getDataVisibility(s)&&e++}),e}_computeAngle(t,e,i){return this.chart.getDataVisibility(t)?It(this.resolveDataElementOptions(t,e).angle||i):0}}z(In,"id","polarArea"),z(In,"defaults",{dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0}),z(In,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:i,color:s}}=t.legend.options;return e.labels.map((o,r)=>{const l=t.getDatasetMeta(0).controller.getStyle(r);return{text:o,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:s,lineWidth:l.borderWidth,pointStyle:i,hidden:!t.getDataVisibility(r),index:r}})}return[]}},onClick(t,e,i){i.chart.toggleDataVisibility(e.index),i.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}});class yo extends Le{}z(yo,"id","pie"),z(yo,"defaults",{cutout:0,rotation:0,circumference:360,radius:"100%"});class Ii extends Nt{getLabelAndValue(t){const e=this._cachedMeta.vScale,i=this.getParsed(t);return{label:e.getLabels()[t],value:""+e.getLabelForValue(i[e.axis])}}parseObjectData(t,e,i,s){return Pu.bind(this)(t,e,i,s)}update(t){const e=this._cachedMeta,i=e.dataset,s=e.data||[],o=e.iScale.getLabels();if(i.points=s,t!=="resize"){const r=this.resolveDatasetElementOptions(t);this.options.showLine||(r.borderWidth=0);const a={_loop:!0,_fullLoop:o.length===s.length,options:r};this.updateElement(i,void 0,a,t)}this.updateElements(s,0,s.length,t)}updateElements(t,e,i,s){const o=this._cachedMeta.rScale,r=s==="reset";for(let a=e;a0&&this.getParsed(e-1);for(let x=e;x0&&Math.abs(M[f]-w[f])>b,_&&(P.parsed=M,P.raw=c.data[x]),d&&(P.options=h||this.resolveDataElementOptions(x,A.active?"active":s)),v||this.updateElement(A,x,P,s),w=M}this.updateSharedOptions(h,s,u)}getMaxOverflow(){const t=this._cachedMeta,e=t.data||[];if(!this.options.showLine){let a=0;for(let l=e.length-1;l>=0;--l)a=Math.max(a,e[l].size(this.resolveDataElementOptions(l))/2);return a>0&&a}const i=t.dataset,s=i.options&&i.options.borderWidth||0;if(!e.length)return s;const o=e[0].size(this.resolveDataElementOptions(0)),r=e[e.length-1].size(this.resolveDataElementOptions(e.length-1));return Math.max(s,o,r)/2}}z(Ni,"id","scatter"),z(Ni,"defaults",{datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1}),z(Ni,"overrides",{interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}});var Ky=Object.freeze({__proto__:null,BarController:Li,BubbleController:Pi,DoughnutController:Le,LineController:Ri,PieController:yo,PolarAreaController:In,RadarController:Ii,ScatterController:Ni});function Ce(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class gr{constructor(t){z(this,"options");this.options=t||{}}static override(t){Object.assign(gr.prototype,t)}init(){}formats(){return Ce()}parse(){return Ce()}format(){return Ce()}add(){return Ce()}diff(){return Ce()}startOf(){return Ce()}endOf(){return Ce()}}var Gy={_date:gr};function Xy(n,t,e,i){const{controller:s,data:o,_sorted:r}=n,a=s._cachedMeta.iScale;if(a&&t===a.axis&&t!=="r"&&r&&o.length){const l=a._reversePixels?yb:te;if(i){if(s._sharedOptions){const c=o[0],u=typeof c.getRange=="function"&&c.getRange(t);if(u){const h=l(o,t,e-u),d=l(o,t,e+u);return{lo:h.lo,hi:d.hi}}}}else return l(o,t,e)}return{lo:0,hi:o.length-1}}function ei(n,t,e,i,s){const o=n.getSortedVisibleDatasetMetas(),r=e[t];for(let a=0,l=o.length;a{l[r](t[e],s)&&(o.push({element:l,datasetIndex:c,index:u}),a=a||l.inRange(t.x,t.y,s))}),i&&!a?[]:o}var tv={evaluateInteractionItems:ei,modes:{index(n,t,e,i){const s=Oe(t,n),o=e.axis||"x",r=e.includeInvisible||!1,a=e.intersect?Xs(n,s,o,i,r):Js(n,s,o,!1,i,r),l=[];return a.length?(n.getSortedVisibleDatasetMetas().forEach(c=>{const u=a[0].index,h=c.data[u];h&&!h.skip&&l.push({element:h,datasetIndex:c.index,index:u})}),l):[]},dataset(n,t,e,i){const s=Oe(t,n),o=e.axis||"xy",r=e.includeInvisible||!1;let a=e.intersect?Xs(n,s,o,i,r):Js(n,s,o,!1,i,r);if(a.length>0){const l=a[0].datasetIndex,c=n.getDatasetMeta(l).data;a=[];for(let u=0;ue.pos===t)}function Xa(n,t){return n.filter(e=>ju.indexOf(e.pos)===-1&&e.box.axis===t)}function vn(n,t){return n.sort((e,i)=>{const s=t?i:e,o=t?e:i;return s.weight===o.weight?s.index-o.index:s.weight-o.weight})}function ev(n){const t=[];let e,i,s,o,r,a;for(e=0,i=(n||[]).length;ec.box.fullSize),!0),i=vn(yn(t,"left"),!0),s=vn(yn(t,"right")),o=vn(yn(t,"top"),!0),r=vn(yn(t,"bottom")),a=Xa(t,"x"),l=Xa(t,"y");return{fullSize:e,leftAndTop:i.concat(o),rightAndBottom:s.concat(l).concat(r).concat(a),chartArea:yn(t,"chartArea"),vertical:i.concat(s).concat(l),horizontal:o.concat(r).concat(a)}}function Ja(n,t,e,i){return Math.max(n[e],t[e])+Math.max(n[i],t[i])}function Wu(n,t){n.top=Math.max(n.top,t.top),n.left=Math.max(n.left,t.left),n.bottom=Math.max(n.bottom,t.bottom),n.right=Math.max(n.right,t.right)}function ov(n,t,e,i){const{pos:s,box:o}=e,r=n.maxPadding;if(!X(s)){e.size&&(n[s]-=e.size);const h=i[e.stack]||{size:0,count:1};h.size=Math.max(h.size,e.horizontal?o.height:o.width),e.size=h.size/h.count,n[s]+=e.size}o.getPadding&&Wu(r,o.getPadding());const a=Math.max(0,t.outerWidth-Ja(r,n,"left","right")),l=Math.max(0,t.outerHeight-Ja(r,n,"top","bottom")),c=a!==n.w,u=l!==n.h;return n.w=a,n.h=l,e.horizontal?{same:c,other:u}:{same:u,other:c}}function rv(n){const t=n.maxPadding;function e(i){const s=Math.max(t[i]-n[i],0);return n[i]+=s,s}n.y+=e("top"),n.x+=e("left"),e("right"),e("bottom")}function av(n,t){const e=t.maxPadding;function i(s){const o={left:0,top:0,right:0,bottom:0};return s.forEach(r=>{o[r]=Math.max(t[r],e[r])}),o}return i(n?["left","right"]:["top","bottom"])}function Sn(n,t,e,i){const s=[];let o,r,a,l,c,u;for(o=0,r=n.length,c=0;o{typeof g.beforeLayout=="function"&&g.beforeLayout()});const u=l.reduce((g,_)=>_.box.options&&_.box.options.display===!1?g:g+1,0)||1,h=Object.freeze({outerWidth:t,outerHeight:e,padding:s,availableWidth:o,availableHeight:r,vBoxMaxWidth:o/2/u,hBoxMaxHeight:r/2}),d=Object.assign({},s);Wu(d,_t(i));const f=Object.assign({maxPadding:d,w:o,h:r,x:s.left,y:s.top},s),p=iv(l.concat(c),h);Sn(a.fullSize,f,h,p),Sn(l,f,h,p),Sn(c,f,h,p)&&Sn(l,f,h,p),rv(f),Za(a.leftAndTop,f,h,p),f.x+=f.w,f.y+=f.h,Za(a.rightAndBottom,f,h,p),n.chartArea={left:f.left,top:f.top,right:f.left+f.w,bottom:f.top+f.h,height:f.h,width:f.w},tt(a.chartArea,g=>{const _=g.box;Object.assign(_,n.chartArea),_.update(f.w,f.h,{left:0,top:0,right:0,bottom:0})})}};class qu{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,i){}removeEventListener(t,e,i){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,i,s){return e=Math.max(0,e||t.width),i=i||t.height,{width:e,height:Math.max(0,s?Math.floor(e/s):i)}}isAttached(t){return!0}updateConfig(t){}}class lv extends qu{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const Fi="$chartjs",cv={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Qa=n=>n===null||n==="";function uv(n,t){const e=n.style,i=n.getAttribute("height"),s=n.getAttribute("width");if(n[Fi]={initial:{height:i,width:s,style:{display:e.display,height:e.height,width:e.width}}},e.display=e.display||"block",e.boxSizing=e.boxSizing||"border-box",Qa(s)){const o=Ia(n,"width");o!==void 0&&(n.width=o)}if(Qa(i))if(n.style.height==="")n.height=n.width/(t||2);else{const o=Ia(n,"height");o!==void 0&&(n.height=o)}return n}const Yu=dy?{passive:!0}:!1;function hv(n,t,e){n&&n.addEventListener(t,e,Yu)}function dv(n,t,e){n&&n.canvas&&n.canvas.removeEventListener(t,e,Yu)}function fv(n,t){const e=cv[n.type]||n.type,{x:i,y:s}=Oe(n,t);return{type:e,chart:t,native:n,x:i!==void 0?i:null,y:s!==void 0?s:null}}function Zi(n,t){for(const e of n)if(e===t||e.contains(t))return!0}function pv(n,t,e){const i=n.canvas,s=new MutationObserver(o=>{let r=!1;for(const a of o)r=r||Zi(a.addedNodes,i),r=r&&!Zi(a.removedNodes,i);r&&e()});return s.observe(document,{childList:!0,subtree:!0}),s}function gv(n,t,e){const i=n.canvas,s=new MutationObserver(o=>{let r=!1;for(const a of o)r=r||Zi(a.removedNodes,i),r=r&&!Zi(a.addedNodes,i);r&&e()});return s.observe(document,{childList:!0,subtree:!0}),s}const jn=new Map;let tl=0;function Uu(){const n=window.devicePixelRatio;n!==tl&&(tl=n,jn.forEach((t,e)=>{e.currentDevicePixelRatio!==n&&t()}))}function mv(n,t){jn.size||window.addEventListener("resize",Uu),jn.set(n,t)}function _v(n){jn.delete(n),jn.size||window.removeEventListener("resize",Uu)}function bv(n,t,e){const i=n.canvas,s=i&&pr(i);if(!s)return;const o=wu((a,l)=>{const c=s.clientWidth;e(a,l),c{const l=a[0],c=l.contentRect.width,u=l.contentRect.height;c===0&&u===0||o(c,u)});return r.observe(s),mv(n,o),r}function Zs(n,t,e){e&&e.disconnect(),t==="resize"&&_v(n)}function yv(n,t,e){const i=n.canvas,s=wu(o=>{n.ctx!==null&&e(fv(o,n))},n);return hv(i,t,s),s}class vv extends qu{acquireContext(t,e){const i=t&&t.getContext&&t.getContext("2d");return i&&i.canvas===t?(uv(t,e),i):null}releaseContext(t){const e=t.canvas;if(!e[Fi])return!1;const i=e[Fi].initial;["height","width"].forEach(o=>{const r=i[o];Q(r)?e.removeAttribute(o):e.setAttribute(o,r)});const s=i.style||{};return Object.keys(s).forEach(o=>{e.style[o]=s[o]}),e.width=e.width,delete e[Fi],!0}addEventListener(t,e,i){this.removeEventListener(t,e);const s=t.$proxies||(t.$proxies={}),r={attach:pv,detach:gv,resize:bv}[e]||yv;s[e]=r(t,e,i)}removeEventListener(t,e){const i=t.$proxies||(t.$proxies={}),s=i[e];if(!s)return;({attach:Zs,detach:Zs,resize:Zs}[e]||dv)(t,e,s),i[e]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,i,s){return hy(t,e,i,s)}isAttached(t){const e=pr(t);return!!(e&&e.isConnected)}}function Ev(n){return!fr()||typeof OffscreenCanvas<"u"&&n instanceof OffscreenCanvas?lv:vv}var Si;let ae=(Si=class{constructor(){z(this,"x");z(this,"y");z(this,"active",!1);z(this,"options");z(this,"$animations")}tooltipPosition(t){const{x:e,y:i}=this.getProps(["x","y"],t);return{x:e,y:i}}hasValue(){return ln(this.x)&&ln(this.y)}getProps(t,e){const i=this.$animations;if(!e||!i)return this;const s={};return t.forEach(o=>{s[o]=i[o]&&i[o].active()?i[o]._to:this[o]}),s}},z(Si,"defaults",{}),z(Si,"defaultRoutes"),Si);function xv(n,t){const e=n.options.ticks,i=wv(n),s=Math.min(e.maxTicksLimit||i,i),o=e.major.enabled?Sv(t):[],r=o.length,a=o[0],l=o[r-1],c=[];if(r>s)return Cv(t,c,o,r/s),c;const u=Av(o,t,s);if(r>0){let h,d;const f=r>1?Math.round((l-a)/(r-1)):null;for(bi(t,c,u,Q(f)?0:a-f,a),h=0,d=r-1;hs)return l}return Math.max(s,1)}function Sv(n){const t=[];let e,i;for(e=0,i=n.length;en==="left"?"right":n==="right"?"left":n,el=(n,t,e)=>t==="top"||t==="left"?n[t]+e:n[t]-e,nl=(n,t)=>Math.min(t||n,n);function il(n,t){const e=[],i=n.length/t,s=n.length;let o=0;for(;or+a)))return l}function Mv(n,t){tt(n,e=>{const i=e.gc,s=i.length/2;let o;if(s>t){for(o=0;oi?i:e,i=s&&e>i?e:i,{min:At(e,At(i,e)),max:At(i,At(e,i))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){et(this.options.beforeUpdate,[this])}update(t,e,i){const{beginAtZero:s,grace:o,ticks:r}=this.options,a=r.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,this._margins=i=Object.assign({left:0,right:0,top:0,bottom:0},i),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+i.left+i.right:this.height+i.top+i.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=jb(this,o,s),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=a=o||i<=1||!this.isHorizontal()){this.labelRotation=s;return}const u=this._getLabelSizes(),h=u.widest.width,d=u.highest.height,f=ft(this.chart.width-h,0,this.maxWidth);a=t.offset?this.maxWidth/i:f/(i-1),h+6>a&&(a=f/(i-(t.offset?.5:1)),l=this.maxHeight-En(t.grid)-e.padding-sl(t.title,this.chart.options.font),c=Math.sqrt(h*h+d*d),r=or(Math.min(Math.asin(ft((u.highest.height+6)/a,-1,1)),Math.asin(ft(l/c,-1,1))-Math.asin(ft(d/c,-1,1)))),r=Math.max(s,Math.min(o,r))),this.labelRotation=r}afterCalculateLabelRotation(){et(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){et(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:e,options:{ticks:i,title:s,grid:o}}=this,r=this._isVisible(),a=this.isHorizontal();if(r){const l=sl(s,e.options.font);if(a?(t.width=this.maxWidth,t.height=En(o)+l):(t.height=this.maxHeight,t.width=En(o)+l),i.display&&this.ticks.length){const{first:c,last:u,widest:h,highest:d}=this._getLabelSizes(),f=i.padding*2,p=It(this.labelRotation),g=Math.cos(p),_=Math.sin(p);if(a){const b=i.mirror?0:_*h.width+g*d.height;t.height=Math.min(this.maxHeight,t.height+b+f)}else{const b=i.mirror?0:g*h.width+_*d.height;t.width=Math.min(this.maxWidth,t.width+b+f)}this._calculatePadding(c,u,_,g)}}this._handleMargins(),a?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,e,i,s){const{ticks:{align:o,padding:r},position:a}=this.options,l=this.labelRotation!==0,c=a!=="top"&&this.axis==="x";if(this.isHorizontal()){const u=this.getPixelForTick(0)-this.left,h=this.right-this.getPixelForTick(this.ticks.length-1);let d=0,f=0;l?c?(d=s*t.width,f=i*e.height):(d=i*t.height,f=s*e.width):o==="start"?f=e.width:o==="end"?d=t.width:o!=="inner"&&(d=t.width/2,f=e.width/2),this.paddingLeft=Math.max((d-u+r)*this.width/(this.width-u),0),this.paddingRight=Math.max((f-h+r)*this.width/(this.width-h),0)}else{let u=e.height/2,h=t.height/2;o==="start"?(u=0,h=t.height):o==="end"&&(u=e.height,h=0),this.paddingTop=u+r,this.paddingBottom=h+r}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){et(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:e}=this.options;return e==="top"||e==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let e,i;for(e=0,i=t.length;e({width:r[k]||0,height:a[k]||0});return{first:N(0),last:N(e-1),widest:N(M),highest:N(P),widths:r,heights:a}}getLabelForValue(t){return t}getPixelForValue(t,e){return NaN}getValueForPixel(t){}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const e=this._startPixel+t*this._length;return bb(this._alignToPixels?Se(this.chart,e,0):e)}getDecimalForPixel(t){const e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:e}=this;return t<0&&e<0?e:t>0&&e>0?t:0}getContext(t){const e=this.ticks||[];if(t>=0&&ta*s?a/i:l/s:l*s0}_computeGridLineItems(t){const e=this.axis,i=this.chart,s=this.options,{grid:o,position:r,border:a}=s,l=o.offset,c=this.isHorizontal(),h=this.ticks.length+(l?1:0),d=En(o),f=[],p=a.setContext(this.getContext()),g=p.display?p.width:0,_=g/2,b=function(C){return Se(i,C,g)};let v,w,x,A,M,P,N,k,m,E,I,y;if(r==="top")v=b(this.bottom),P=this.bottom-d,k=v-_,E=b(t.top)+_,y=t.bottom;else if(r==="bottom")v=b(this.top),E=t.top,y=b(t.bottom)-_,P=v+_,k=this.top+d;else if(r==="left")v=b(this.right),M=this.right-d,N=v-_,m=b(t.left)+_,I=t.right;else if(r==="right")v=b(this.left),m=t.left,I=b(t.right)-_,M=v+_,N=this.left+d;else if(e==="x"){if(r==="center")v=b((t.top+t.bottom)/2+.5);else if(X(r)){const C=Object.keys(r)[0],L=r[C];v=b(this.chart.scales[C].getPixelForValue(L))}E=t.top,y=t.bottom,P=v+_,k=P+d}else if(e==="y"){if(r==="center")v=b((t.left+t.right)/2);else if(X(r)){const C=Object.keys(r)[0],L=r[C];v=b(this.chart.scales[C].getPixelForValue(L))}M=v-_,N=M-d,m=t.left,I=t.right}const O=K(s.ticks.maxTicksLimit,h),S=Math.max(1,Math.ceil(h/O));for(w=0;w0&&(U-=j/2);break}W={left:U,top:q,width:j+T.width,height:V+T.height,color:S.backdropColor}}_.push({label:x,font:k,textOffset:I,options:{rotation:g,color:L,strokeColor:D,strokeWidth:B,textAlign:F,textBaseline:y,translation:[A,M],backdrop:W}})}return _}_getXAxisLabelAlignment(){const{position:t,ticks:e}=this.options;if(-It(this.labelRotation))return t==="top"?"left":"right";let s="center";return e.align==="start"?s="left":e.align==="end"?s="right":e.align==="inner"&&(s="inner"),s}_getYAxisLabelAlignment(t){const{position:e,ticks:{crossAlign:i,mirror:s,padding:o}}=this.options,r=this._getLabelSizes(),a=t+o,l=r.widest.width;let c,u;return e==="left"?s?(u=this.right+o,i==="near"?c="left":i==="center"?(c="center",u+=l/2):(c="right",u+=l)):(u=this.right-a,i==="near"?c="right":i==="center"?(c="center",u-=l/2):(c="left",u=this.left)):e==="right"?s?(u=this.left+o,i==="near"?c="right":i==="center"?(c="center",u-=l/2):(c="left",u-=l)):(u=this.left+a,i==="near"?c="left":i==="center"?(c="center",u+=l/2):(c="right",u=this.right)):c="right",{textAlign:c,x:u}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,e=this.options.position;if(e==="left"||e==="right")return{top:0,left:this.left,bottom:t.height,right:this.right};if(e==="top"||e==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:t.width}}drawBackground(){const{ctx:t,options:{backgroundColor:e},left:i,top:s,width:o,height:r}=this;e&&(t.save(),t.fillStyle=e,t.fillRect(i,s,o,r),t.restore())}getLineWidthForValue(t){const e=this.options.grid;if(!this._isVisible()||!e.display)return 0;const s=this.ticks.findIndex(o=>o.value===t);return s>=0?e.setContext(this.getContext(s)).lineWidth:0}drawGrid(t){const e=this.options.grid,i=this.ctx,s=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let o,r;const a=(l,c,u)=>{!u.width||!u.color||(i.save(),i.lineWidth=u.width,i.strokeStyle=u.color,i.setLineDash(u.borderDash||[]),i.lineDashOffset=u.borderDashOffset,i.beginPath(),i.moveTo(l.x,l.y),i.lineTo(c.x,c.y),i.stroke(),i.restore())};if(e.display)for(o=0,r=s.length;o{this.draw(o)}}]:[{z:i,draw:o=>{this.drawBackground(),this.drawGrid(o),this.drawTitle()}},{z:s,draw:()=>{this.drawBorder()}},{z:e,draw:o=>{this.drawLabels(o)}}]}getMatchingVisibleMetas(t){const e=this.chart.getSortedVisibleDatasetMetas(),i=this.axis+"AxisID",s=[];let o,r;for(o=0,r=e.length;o{const i=e.split("."),s=i.pop(),o=[n].concat(i).join("."),r=t[e].split("."),a=r.pop(),l=r.join(".");at.route(o,s,l,a)})}function Fv(n){return"id"in n&&"defaults"in n}class $v{constructor(){this.controllers=new yi(Nt,"datasets",!0),this.elements=new yi(ae,"elements"),this.plugins=new yi(Object,"plugins"),this.scales=new yi(Ve,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,e,i){[...e].forEach(s=>{const o=i||this._getRegistryForType(s);i||o.isForType(s)||o===this.plugins&&s.id?this._exec(t,o,s):tt(s,r=>{const a=i||this._getRegistryForType(r);this._exec(t,a,r)})})}_exec(t,e,i){const s=sr(t);et(i["before"+s],[],i),e[t](i),et(i["after"+s],[],i)}_getRegistryForType(t){for(let e=0;eo.filter(a=>!r.some(l=>a.plugin.id===l.plugin.id));this._notify(s(e,i),t,"stop"),this._notify(s(i,e),t,"start")}}function Hv(n){const t={},e=[],i=Object.keys(Bt.plugins.items);for(let o=0;o1&&ol(n[0].toLowerCase());if(i)return i}throw new Error(`Cannot determine type of '${n}' axis. Please provide 'axis' or 'position' option.`)}function rl(n,t,e){if(e[t+"AxisID"]===n)return{axis:t}}function Uv(n,t){if(t.data&&t.data.datasets){const e=t.data.datasets.filter(i=>i.xAxisID===n||i.yAxisID===n);if(e.length)return rl(n,"x",e[0])||rl(n,"y",e[0])}return{}}function Kv(n,t){const e=$e[n.type]||{scales:{}},i=t.scales||{},s=vo(n.type,t),o=Object.create(null);return Object.keys(i).forEach(r=>{const a=i[r];if(!X(a))return console.error(`Invalid scale configuration for scale: ${r}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${r}`);const l=Eo(r,a,Uv(r,n),at.scales[a.type]),c=qv(l,s),u=e.scales||{};o[r]=kn(Object.create(null),[{axis:l},a,u[l],u[c]])}),n.data.datasets.forEach(r=>{const a=r.type||n.type,l=r.indexAxis||vo(a,t),u=($e[a]||{}).scales||{};Object.keys(u).forEach(h=>{const d=Wv(h,l),f=r[d+"AxisID"]||d;o[f]=o[f]||Object.create(null),kn(o[f],[{axis:d},i[f],u[h]])})}),Object.keys(o).forEach(r=>{const a=o[r];kn(a,[at.scales[a.type],at.scale])}),o}function Ku(n){const t=n.options||(n.options={});t.plugins=K(t.plugins,{}),t.scales=Kv(n,t)}function Gu(n){return n=n||{},n.datasets=n.datasets||[],n.labels=n.labels||[],n}function Gv(n){return n=n||{},n.data=Gu(n.data),Ku(n),n}const al=new Map,Xu=new Set;function vi(n,t){let e=al.get(n);return e||(e=t(),al.set(n,e),Xu.add(e)),e}const xn=(n,t,e)=>{const i=be(t,e);i!==void 0&&n.add(i)};class Xv{constructor(t){this._config=Gv(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=Gu(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),Ku(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return vi(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,e){return vi(`${t}.transition.${e}`,()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,e){return vi(`${t}-${e}`,()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]])}pluginScopeKeys(t){const e=t.id,i=this.type;return vi(`${i}-plugin-${e}`,()=>[[`plugins.${e}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,e){const i=this._scopeCache;let s=i.get(t);return(!s||e)&&(s=new Map,i.set(t,s)),s}getOptionScopes(t,e,i){const{options:s,type:o}=this,r=this._cachedScopes(t,i),a=r.get(e);if(a)return a;const l=new Set;e.forEach(u=>{t&&(l.add(t),u.forEach(h=>xn(l,t,h))),u.forEach(h=>xn(l,s,h)),u.forEach(h=>xn(l,$e[o]||{},h)),u.forEach(h=>xn(l,at,h)),u.forEach(h=>xn(l,_o,h))});const c=Array.from(l);return c.length===0&&c.push(Object.create(null)),Xu.has(e)&&r.set(e,c),c}chartOptionScopes(){const{options:t,type:e}=this;return[t,$e[e]||{},at.datasets[e]||{},{type:e},at,_o]}resolveNamedOptions(t,e,i,s=[""]){const o={$shared:!0},{resolver:r,subPrefixes:a}=ll(this._resolverCache,t,s);let l=r;if(Zv(r,e)){o.$shared=!1,i=ye(i)?i():i;const c=this.createResolver(t,i,a);l=cn(r,i,c)}for(const c of e)o[c]=l[c];return o}createResolver(t,e,i=[""],s){const{resolver:o}=ll(this._resolverCache,t,i);return X(e)?cn(o,e,void 0,s):o}}function ll(n,t,e){let i=n.get(t);i||(i=new Map,n.set(t,i));const s=e.join();let o=i.get(s);return o||(o={resolver:ur(t,e),subPrefixes:e.filter(a=>!a.toLowerCase().includes("hover"))},i.set(s,o)),o}const Jv=n=>X(n)&&Object.getOwnPropertyNames(n).some(t=>ye(n[t]));function Zv(n,t){const{isScriptable:e,isIndexable:i}=Du(n);for(const s of t){const o=e(s),r=i(s),a=(r||o)&&n[s];if(o&&(ye(a)||Jv(a))||r&&it(a))return!0}return!1}var Qv="4.4.2";const t0=["top","bottom","left","right","chartArea"];function cl(n,t){return n==="top"||n==="bottom"||t0.indexOf(n)===-1&&t==="x"}function ul(n,t){return function(e,i){return e[n]===i[n]?e[t]-i[t]:e[n]-i[n]}}function hl(n){const t=n.chart,e=t.options.animation;t.notifyPlugins("afterRender"),et(e&&e.onComplete,[n],t)}function e0(n){const t=n.chart,e=t.options.animation;et(e&&e.onProgress,[n],t)}function Ju(n){return fr()&&typeof n=="string"?n=document.getElementById(n):n&&n.length&&(n=n[0]),n&&n.canvas&&(n=n.canvas),n}const $i={},dl=n=>{const t=Ju(n);return Object.values($i).filter(e=>e.canvas===t).pop()};function n0(n,t,e){const i=Object.keys(n);for(const s of i){const o=+s;if(o>=t){const r=n[s];delete n[s],(e>0||o>t)&&(n[o+e]=r)}}}function i0(n,t,e,i){return!e||n.type==="mouseout"?null:i?t:n}function Ei(n,t,e){return n.options.clip?n[e]:t[e]}function s0(n,t){const{xScale:e,yScale:i}=n;return e&&i?{left:Ei(e,t,"left"),right:Ei(e,t,"right"),top:Ei(i,t,"top"),bottom:Ei(i,t,"bottom")}:t}class Zt{static register(...t){Bt.add(...t),fl()}static unregister(...t){Bt.remove(...t),fl()}constructor(t,e){const i=this.config=new Xv(e),s=Ju(t),o=dl(s);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas with ID '"+o.canvas.id+"' can be reused.");const r=i.createResolver(i.chartOptionScopes(),this.getContext());this.platform=new(i.platform||Ev(s)),this.platform.updateConfig(i);const a=this.platform.acquireContext(s,r.aspectRatio),l=a&&a.canvas,c=l&&l.height,u=l&&l.width;if(this.id=rb(),this.ctx=a,this.canvas=l,this.width=u,this.height=c,this._options=r,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new Bv,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=xb(h=>this.update(h),r.resizeDelay||0),this._dataChanges=[],$i[this.id]=this,!a||!l){console.error("Failed to create chart: can't acquire context from the given item");return}Gt.listen(this,"complete",hl),Gt.listen(this,"progress",e0),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:e},width:i,height:s,_aspectRatio:o}=this;return Q(t)?e&&o?o:s?i/s:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return Bt}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Ra(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return ka(this.canvas,this.ctx),this}stop(){return Gt.stop(this),this}resize(t,e){Gt.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const i=this.options,s=this.canvas,o=i.maintainAspectRatio&&this.aspectRatio,r=this.platform.getMaximumSize(s,t,e,o),a=i.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=r.width,this.height=r.height,this._aspectRatio=this.aspectRatio,Ra(this,a,!0)&&(this.notifyPlugins("resize",{size:r}),et(i.onResize,[this,r],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const e=this.options.scales||{};tt(e,(i,s)=>{i.id=s})}buildOrUpdateScales(){const t=this.options,e=t.scales,i=this.scales,s=Object.keys(i).reduce((r,a)=>(r[a]=!1,r),{});let o=[];e&&(o=o.concat(Object.keys(e).map(r=>{const a=e[r],l=Eo(r,a),c=l==="r",u=l==="x";return{options:a,dposition:c?"chartArea":u?"bottom":"left",dtype:c?"radialLinear":u?"category":"linear"}}))),tt(o,r=>{const a=r.options,l=a.id,c=Eo(l,a),u=K(a.type,r.dtype);(a.position===void 0||cl(a.position,c)!==cl(r.dposition))&&(a.position=r.dposition),s[l]=!0;let h=null;if(l in i&&i[l].type===u)h=i[l];else{const d=Bt.getScale(u);h=new d({id:l,type:u,ctx:this.ctx,chart:this}),i[h.id]=h}h.init(a,t)}),tt(s,(r,a)=>{r||delete i[a]}),tt(i,r=>{mt.configure(this,r,r.options),mt.addBox(this,r)})}_updateMetasets(){const t=this._metasets,e=this.data.datasets.length,i=t.length;if(t.sort((s,o)=>s.index-o.index),i>e){for(let s=e;se.length&&delete this._stacks,t.forEach((i,s)=>{e.filter(o=>o===i._dataset).length===0&&this._destroyDatasetMeta(s)})}buildOrUpdateControllers(){const t=[],e=this.data.datasets;let i,s;for(this._removeUnreferencedMetasets(),i=0,s=e.length;i{this.getDatasetMeta(e).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const e=this.config;e.update();const i=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),s=this._animationsDisabled=!i.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let r=0;for(let c=0,u=this.data.datasets.length;c{c.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(ul("z","_idx"));const{_active:a,_lastEvent:l}=this;l?this._eventHandler(l,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){tt(this.scales,t=>{mt.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),i=new Set(t.events);(!xa(e,i)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(const{method:i,start:s,count:o}of e){const r=i==="_removeElements"?-o:o;n0(t,s,r)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const e=this.data.datasets.length,i=o=>new Set(t.filter(r=>r[0]===o).map((r,a)=>a+","+r.splice(1).join(","))),s=i(0);for(let o=1;oo.split(",")).map(o=>({method:o[1],start:+o[2],count:+o[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;mt.update(this,this.width,this.height,t);const e=this.chartArea,i=e.width<=0||e.height<=0;this._layers=[],tt(this.boxes,s=>{i&&s.position==="chartArea"||(s.configure&&s.configure(),this._layers.push(...s._layers()))},this),this._layers.forEach((s,o)=>{s._idx=o}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let e=0,i=this.data.datasets.length;e=0;--e)this._drawDataset(t[e]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const e=this.ctx,i=t._clip,s=!i.disabled,o=s0(t,this.chartArea),r={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",r)!==!1&&(s&&_s(e,{left:i.left===!1?0:o.left-i.left,right:i.right===!1?this.width:o.right+i.right,top:i.top===!1?0:o.top-i.top,bottom:i.bottom===!1?this.height:o.bottom+i.bottom}),t.controller.draw(),s&&bs(e),r.cancelable=!1,this.notifyPlugins("afterDatasetDraw",r))}isPointInArea(t){return ee(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,i,s){const o=tv.modes[e];return typeof o=="function"?o(this,t,i,s):[]}getDatasetMeta(t){const e=this.data.datasets[t],i=this._metasets;let s=i.filter(o=>o&&o._dataset===e).pop();return s||(s={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e&&e.order||0,index:t,_dataset:e,_parsed:[],_sorted:!1},i.push(s)),s}getContext(){return this.$context||(this.$context=we(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const e=this.data.datasets[t];if(!e)return!1;const i=this.getDatasetMeta(t);return typeof i.hidden=="boolean"?!i.hidden:!e.hidden}setDatasetVisibility(t,e){const i=this.getDatasetMeta(t);i.hidden=!e}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,e,i){const s=i?"show":"hide",o=this.getDatasetMeta(t),r=o.controller._resolveAnimations(void 0,s);Hn(e)?(o.data[e].hidden=!i,this.update()):(this.setDatasetVisibility(t,i),r.update(o,{visible:i}),this.update(a=>a.datasetIndex===t?s:void 0))}hide(t,e){this._updateVisibility(t,e,!1)}show(t,e){this._updateVisibility(t,e,!0)}_destroyDatasetMeta(t){const e=this._metasets[t];e&&e.controller&&e.controller._destroy(),delete this._metasets[t]}_stop(){let t,e;for(this.stop(),Gt.remove(this),t=0,e=this.data.datasets.length;t{e.addEventListener(this,o,r),t[o]=r},s=(o,r,a)=>{o.offsetX=r,o.offsetY=a,this._eventHandler(o)};tt(this.options.events,o=>i(o,s))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,e=this.platform,i=(l,c)=>{e.addEventListener(this,l,c),t[l]=c},s=(l,c)=>{t[l]&&(e.removeEventListener(this,l,c),delete t[l])},o=(l,c)=>{this.canvas&&this.resize(l,c)};let r;const a=()=>{s("attach",a),this.attached=!0,this.resize(),i("resize",o),i("detach",r)};r=()=>{this.attached=!1,s("resize",o),this._stop(),this._resize(0,0),i("attach",a)},e.isAttached(this.canvas)?a():r()}unbindEvents(){tt(this._listeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._listeners={},tt(this._responsiveListeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,e,i){const s=i?"set":"remove";let o,r,a,l;for(e==="dataset"&&(o=this.getDatasetMeta(t[0].datasetIndex),o.controller["_"+s+"DatasetHoverStyle"]()),a=0,l=t.length;a{const a=this.getDatasetMeta(o);if(!a)throw new Error("No dataset found at index "+o);return{datasetIndex:o,element:a.data[r],index:r}});!Ui(i,e)&&(this._active=i,this._lastEvent=null,this._updateHoverStyles(i,e))}notifyPlugins(t,e,i){return this._plugins.notify(this,t,e,i)}isPluginEnabled(t){return this._plugins._cache.filter(e=>e.plugin.id===t).length===1}_updateHoverStyles(t,e,i){const s=this.options.hover,o=(l,c)=>l.filter(u=>!c.some(h=>u.datasetIndex===h.datasetIndex&&u.index===h.index)),r=o(e,t),a=i?t:o(t,e);r.length&&this.updateHoverStyle(r,s.mode,!1),a.length&&s.mode&&this.updateHoverStyle(a,s.mode,!0)}_eventHandler(t,e){const i={event:t,replay:e,cancelable:!0,inChartArea:this.isPointInArea(t)},s=r=>(r.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",i,s)===!1)return;const o=this._handleEvent(t,e,i.inChartArea);return i.cancelable=!1,this.notifyPlugins("afterEvent",i,s),(o||i.changed)&&this.render(),this}_handleEvent(t,e,i){const{_active:s=[],options:o}=this,r=e,a=this._getActiveElements(t,s,i,r),l=db(t),c=i0(t,this._lastEvent,i,l);i&&(this._lastEvent=null,et(o.onHover,[t,a,this],this),l&&et(o.onClick,[t,a,this],this));const u=!Ui(a,s);return(u||e)&&(this._active=a,this._updateHoverStyles(a,s,e)),this._lastEvent=c,u}_getActiveElements(t,e,i,s){if(t.type==="mouseout")return[];if(!i)return e;const o=this.options.hover;return this.getElementsAtEventForMode(t,o.mode,o,s)}}z(Zt,"defaults",at),z(Zt,"instances",$i),z(Zt,"overrides",$e),z(Zt,"registry",Bt),z(Zt,"version",Qv),z(Zt,"getChart",dl);function fl(){return tt(Zt.instances,n=>n._plugins.invalidate())}function o0(n,t,e){const{startAngle:i,pixelMargin:s,x:o,y:r,outerRadius:a,innerRadius:l}=t;let c=s/a;n.beginPath(),n.arc(o,r,a,i-c,e+c),l>s?(c=s/l,n.arc(o,r,l,e+c,i-c,!0)):n.arc(o,r,s,e+ct,i-ct),n.closePath(),n.clip()}function r0(n){return cr(n,["outerStart","outerEnd","innerStart","innerEnd"])}function a0(n,t,e,i){const s=r0(n.options.borderRadius),o=(e-t)/2,r=Math.min(o,i*t/2),a=l=>{const c=(e-Math.min(o,l))*i/2;return ft(l,0,Math.min(o,c))};return{outerStart:a(s.outerStart),outerEnd:a(s.outerEnd),innerStart:ft(s.innerStart,0,r),innerEnd:ft(s.innerEnd,0,r)}}function Ue(n,t,e,i){return{x:e+n*Math.cos(t),y:i+n*Math.sin(t)}}function Qi(n,t,e,i,s,o){const{x:r,y:a,startAngle:l,pixelMargin:c,innerRadius:u}=t,h=Math.max(t.outerRadius+i+e-c,0),d=u>0?u+i+e+c:0;let f=0;const p=s-l;if(i){const S=u>0?u-i:0,C=h>0?h-i:0,L=(S+C)/2,D=L!==0?p*L/(L+i):p;f=(p-D)/2}const g=Math.max(.001,p*h-e/ot)/h,_=(p-g)/2,b=l+_+f,v=s-_-f,{outerStart:w,outerEnd:x,innerStart:A,innerEnd:M}=a0(t,d,h,v-b),P=h-w,N=h-x,k=b+w/P,m=v-x/N,E=d+A,I=d+M,y=b+A/E,O=v-M/I;if(n.beginPath(),o){const S=(k+m)/2;if(n.arc(r,a,h,k,S),n.arc(r,a,h,S,m),x>0){const B=Ue(N,m,r,a);n.arc(B.x,B.y,x,m,v+ct)}const C=Ue(I,v,r,a);if(n.lineTo(C.x,C.y),M>0){const B=Ue(I,O,r,a);n.arc(B.x,B.y,M,v+ct,O+Math.PI)}const L=(v-M/d+(b+A/d))/2;if(n.arc(r,a,d,v-M/d,L,!0),n.arc(r,a,d,L,b+A/d,!0),A>0){const B=Ue(E,y,r,a);n.arc(B.x,B.y,A,y+Math.PI,b-ct)}const D=Ue(P,b,r,a);if(n.lineTo(D.x,D.y),w>0){const B=Ue(P,k,r,a);n.arc(B.x,B.y,w,b-ct,k)}}else{n.moveTo(r,a);const S=Math.cos(k)*h+r,C=Math.sin(k)*h+a;n.lineTo(S,C);const L=Math.cos(m)*h+r,D=Math.sin(m)*h+a;n.lineTo(L,D)}n.closePath()}function l0(n,t,e,i,s){const{fullCircles:o,startAngle:r,circumference:a}=t;let l=t.endAngle;if(o){Qi(n,t,e,i,l,s);for(let c=0;c=st||zn(r,l,c),_=Qt(a,u+f,h+f);return g&&_}getCenterPoint(e){const{x:i,y:s,startAngle:o,endAngle:r,innerRadius:a,outerRadius:l}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],e),{offset:c,spacing:u}=this.options,h=(o+r)/2,d=(a+l+u+c)/2;return{x:i+Math.cos(h)*d,y:s+Math.sin(h)*d}}tooltipPosition(e){return this.getCenterPoint(e)}draw(e){const{options:i,circumference:s}=this,o=(i.offset||0)/4,r=(i.spacing||0)/2,a=i.circular;if(this.pixelMargin=i.borderAlign==="inner"?.33:0,this.fullCircles=s>st?Math.floor(s/st):0,s===0||this.innerRadius<0||this.outerRadius<0)return;e.save();const l=(this.startAngle+this.endAngle)/2;e.translate(Math.cos(l)*o,Math.sin(l)*o);const c=1-Math.sin(Math.min(ot,s||0)),u=o*c;e.fillStyle=i.backgroundColor,e.strokeStyle=i.borderColor,l0(e,this,u,r,a),c0(e,this,u,r,a),e.restore()}}z(Cn,"id","arc"),z(Cn,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),z(Cn,"defaultRoutes",{backgroundColor:"backgroundColor"}),z(Cn,"descriptors",{_scriptable:!0,_indexable:e=>e!=="borderDash"});function Zu(n,t,e=t){n.lineCap=K(e.borderCapStyle,t.borderCapStyle),n.setLineDash(K(e.borderDash,t.borderDash)),n.lineDashOffset=K(e.borderDashOffset,t.borderDashOffset),n.lineJoin=K(e.borderJoinStyle,t.borderJoinStyle),n.lineWidth=K(e.borderWidth,t.borderWidth),n.strokeStyle=K(e.borderColor,t.borderColor)}function u0(n,t,e){n.lineTo(e.x,e.y)}function h0(n){return n.stepped?Rb:n.tension||n.cubicInterpolationMode==="monotone"?Ib:u0}function Qu(n,t,e={}){const i=n.length,{start:s=0,end:o=i-1}=e,{start:r,end:a}=t,l=Math.max(s,r),c=Math.min(o,a),u=sa&&o>a;return{count:i,start:l,loop:t.loop,ilen:c(r+(c?a-x:x))%o,w=()=>{g!==_&&(n.lineTo(u,_),n.lineTo(u,g),n.lineTo(u,b))};for(l&&(f=s[v(0)],n.moveTo(f.x,f.y)),d=0;d<=a;++d){if(f=s[v(d)],f.skip)continue;const x=f.x,A=f.y,M=x|0;M===p?(A_&&(_=A),u=(h*u+x)/++h):(w(),n.lineTo(x,A),p=M,h=0,g=_=A),b=A}w()}function xo(n){const t=n.options,e=t.borderDash&&t.borderDash.length;return!n._decimated&&!n._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!e?f0:d0}function p0(n){return n.stepped?fy:n.tension||n.cubicInterpolationMode==="monotone"?py:De}function g0(n,t,e,i){let s=t._path;s||(s=t._path=new Path2D,t.path(s,e,i)&&s.closePath()),Zu(n,t.options),n.stroke(s)}function m0(n,t,e,i){const{segments:s,options:o}=t,r=xo(t);for(const a of s)Zu(n,o,a.style),n.beginPath(),r(n,t,a,{start:e,end:e+i-1})&&n.closePath(),n.stroke()}const _0=typeof Path2D=="function";function b0(n,t,e,i){_0&&!t.options.segment?g0(n,t,e,i):m0(n,t,e,i)}class de extends ae{constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,e){const i=this.options;if((i.tension||i.cubicInterpolationMode==="monotone")&&!i.stepped&&!this._pointsUpdated){const s=i.spanGaps?this._loop:this._fullLoop;oy(this._points,i,t,s,e),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=vy(this,this.options.segment))}first(){const t=this.segments,e=this.points;return t.length&&e[t[0].start]}last(){const t=this.segments,e=this.points,i=t.length;return i&&e[t[i-1].end]}interpolate(t,e){const i=this.options,s=t[e],o=this.points,r=Bu(this,{property:e,start:s,end:s});if(!r.length)return;const a=[],l=p0(i);let c,u;for(c=0,u=r.length;ct!=="borderDash"&&t!=="fill"});function pl(n,t,e,i){const s=n.options,{[e]:o}=n.getProps([e],i);return Math.abs(t-o)n.replace("rgb(","rgba(").replace(")",", 0.5)"));function eh(n){return wo[n%wo.length]}function nh(n){return gl[n%gl.length]}function S0(n,t){return n.borderColor=eh(t),n.backgroundColor=nh(t),++t}function C0(n,t){return n.backgroundColor=n.data.map(()=>eh(t++)),t}function T0(n,t){return n.backgroundColor=n.data.map(()=>nh(t++)),t}function O0(n){let t=0;return(e,i)=>{const s=n.getDatasetMeta(i).controller;s instanceof Le?t=C0(e,t):s instanceof In?t=T0(e,t):s&&(t=S0(e,t))}}function ml(n){let t;for(t in n)if(n[t].borderColor||n[t].backgroundColor)return!0;return!1}function D0(n){return n&&(n.borderColor||n.backgroundColor)}var M0={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(n,t,e){if(!e.enabled)return;const{data:{datasets:i},options:s}=n.config,{elements:o}=s;if(!e.forceOverride&&(ml(i)||D0(s)||o&&ml(o)))return;const r=O0(n);i.forEach(r)}};function k0(n,t,e,i,s){const o=s.samples||i;if(o>=e)return n.slice(t,t+e);const r=[],a=(e-2)/(o-2);let l=0;const c=t+e-1;let u=t,h,d,f,p,g;for(r[l++]=n[u],h=0;hf&&(f=p,d=n[v],g=v);r[l++]=d,u=g}return r[l++]=n[c],r}function L0(n,t,e,i){let s=0,o=0,r,a,l,c,u,h,d,f,p,g;const _=[],b=t+e-1,v=n[t].x,x=n[b].x-v;for(r=t;rg&&(g=c,d=r),s=(o*s+a.x)/++o;else{const M=r-1;if(!Q(h)&&!Q(d)){const P=Math.min(h,d),N=Math.max(h,d);P!==f&&P!==M&&_.push({...n[P],x:s}),N!==f&&N!==M&&_.push({...n[N],x:s})}r>0&&M!==f&&_.push(n[M]),_.push(a),u=A,o=0,p=g=c,h=d=f=r}}return _}function ih(n){if(n._decimated){const t=n._data;delete n._decimated,delete n._data,Object.defineProperty(n,"data",{configurable:!0,enumerable:!0,writable:!0,value:t})}}function _l(n){n.data.datasets.forEach(t=>{ih(t)})}function P0(n,t){const e=t.length;let i=0,s;const{iScale:o}=n,{min:r,max:a,minDefined:l,maxDefined:c}=o.getUserBounds();return l&&(i=ft(te(t,o.axis,r).lo,0,e-1)),c?s=ft(te(t,o.axis,a).hi+1,i,e)-i:s=e-i,{start:i,count:s}}var R0={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(n,t,e)=>{if(!e.enabled){_l(n);return}const i=n.width;n.data.datasets.forEach((s,o)=>{const{_data:r,indexAxis:a}=s,l=n.getDatasetMeta(o),c=r||s.data;if(An([a,n.options.indexAxis])==="y"||!l.controller.supportsDecimation)return;const u=n.scales[l.xAxisID];if(u.type!=="linear"&&u.type!=="time"||n.options.parsing)return;let{start:h,count:d}=P0(l,c);const f=e.threshold||4*i;if(d<=f){ih(s);return}Q(r)&&(s._data=c,delete s.data,Object.defineProperty(s,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(g){this._data=g}}));let p;switch(e.algorithm){case"lttb":p=k0(c,h,d,i,e);break;case"min-max":p=L0(c,h,d,i);break;default:throw new Error(`Unsupported decimation algorithm '${e.algorithm}'`)}s._decimated=p})},destroy(n){_l(n)}};function I0(n,t,e){const i=n.segments,s=n.points,o=t.points,r=[];for(const a of i){let{start:l,end:c}=a;c=mr(l,c,s);const u=Ao(e,s[l],s[c],a.loop);if(!t.segments){r.push({source:a,target:u,start:s[l],end:s[c]});continue}const h=Bu(t,u);for(const d of h){const f=Ao(e,o[d.start],o[d.end],d.loop),p=$u(a,s,f);for(const g of p)r.push({source:g,target:d,start:{[e]:bl(u,f,"start",Math.max)},end:{[e]:bl(u,f,"end",Math.min)}})}}return r}function Ao(n,t,e,i){if(i)return;let s=t[n],o=e[n];return n==="angle"&&(s=St(s),o=St(o)),{property:n,start:s,end:o}}function N0(n,t){const{x:e=null,y:i=null}=n||{},s=t.points,o=[];return t.segments.forEach(({start:r,end:a})=>{a=mr(r,a,s);const l=s[r],c=s[a];i!==null?(o.push({x:l.x,y:i}),o.push({x:c.x,y:i})):e!==null&&(o.push({x:e,y:l.y}),o.push({x:e,y:c.y}))}),o}function mr(n,t,e){for(;t>n;t--){const i=e[t];if(!isNaN(i.x)&&!isNaN(i.y))break}return t}function bl(n,t,e,i){return n&&t?i(n[e],t[e]):n?n[e]:t?t[e]:0}function sh(n,t){let e=[],i=!1;return it(n)?(i=!0,e=n):e=N0(n,t),e.length?new de({points:e,options:{tension:0},_loop:i,_fullLoop:i}):null}function yl(n){return n&&n.fill!==!1}function F0(n,t,e){let s=n[t].fill;const o=[t];let r;if(!e)return s;for(;s!==!1&&o.indexOf(s)===-1;){if(!rt(s))return s;if(r=n[s],!r)return!1;if(r.visible)return s;o.push(s),s=r.fill}return!1}function $0(n,t,e){const i=V0(n);if(X(i))return isNaN(i.value)?!1:i;let s=parseFloat(i);return rt(s)&&Math.floor(s)===s?B0(i[0],t,s,e):["origin","start","end","stack","shape"].indexOf(i)>=0&&i}function B0(n,t,e,i){return(n==="-"||n==="+")&&(e=t+e),e===t||e<0||e>=i?!1:e}function H0(n,t){let e=null;return n==="start"?e=t.bottom:n==="end"?e=t.top:X(n)?e=t.getPixelForValue(n.value):t.getBasePixel&&(e=t.getBasePixel()),e}function z0(n,t,e){let i;return n==="start"?i=e:n==="end"?i=t.options.reverse?t.min:t.max:X(n)?i=n.value:i=t.getBaseValue(),i}function V0(n){const t=n.options,e=t.fill;let i=K(e&&e.target,e);return i===void 0&&(i=!!t.backgroundColor),i===!1||i===null?!1:i===!0?"origin":i}function j0(n){const{scale:t,index:e,line:i}=n,s=[],o=i.segments,r=i.points,a=W0(t,e);a.push(sh({x:null,y:t.bottom},i));for(let l=0;l=0;--r){const a=s[r].$filler;a&&(a.line.updateControlPoints(o,a.axis),i&&a.fill&&eo(n.ctx,a,o))}},beforeDatasetsDraw(n,t,e){if(e.drawTime!=="beforeDatasetsDraw")return;const i=n.getSortedVisibleDatasetMetas();for(let s=i.length-1;s>=0;--s){const o=i[s].$filler;yl(o)&&eo(n.ctx,o,n.chartArea)}},beforeDatasetDraw(n,t,e){const i=t.meta.$filler;!yl(i)||e.drawTime!=="beforeDatasetDraw"||eo(n.ctx,i,n.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const wl=(n,t)=>{let{boxHeight:e=t,boxWidth:i=t}=n;return n.usePointStyle&&(e=Math.min(e,t),i=n.pointStyleWidth||Math.min(i,t)),{boxWidth:i,boxHeight:e,itemHeight:Math.max(t,e)}},eE=(n,t)=>n!==null&&t!==null&&n.datasetIndex===t.datasetIndex&&n.index===t.index;class Al extends ae{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e,i){this.maxWidth=t,this.maxHeight=e,this._margins=i,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let e=et(t.generateLabels,[this.chart],this)||[];t.filter&&(e=e.filter(i=>t.filter(i,this.chart.data))),t.sort&&(e=e.sort((i,s)=>t.sort(i,s,this.chart.data))),this.options.reverse&&e.reverse(),this.legendItems=e}fit(){const{options:t,ctx:e}=this;if(!t.display){this.width=this.height=0;return}const i=t.labels,s=dt(i.font),o=s.size,r=this._computeTitleHeight(),{boxWidth:a,itemHeight:l}=wl(i,o);let c,u;e.font=s.string,this.isHorizontal()?(c=this.maxWidth,u=this._fitRows(r,o,a,l)+10):(u=this.maxHeight,c=this._fitCols(r,s,a,l)+10),this.width=Math.min(c,t.maxWidth||this.maxWidth),this.height=Math.min(u,t.maxHeight||this.maxHeight)}_fitRows(t,e,i,s){const{ctx:o,maxWidth:r,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],u=s+a;let h=t;o.textAlign="left",o.textBaseline="middle";let d=-1,f=-u;return this.legendItems.forEach((p,g)=>{const _=i+e/2+o.measureText(p.text).width;(g===0||c[c.length-1]+_+2*a>r)&&(h+=u,c[c.length-(g>0?0:1)]=0,f+=u,d++),l[g]={left:0,top:f,row:d,width:_,height:s},c[c.length-1]+=_+a}),h}_fitCols(t,e,i,s){const{ctx:o,maxHeight:r,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],u=r-t;let h=a,d=0,f=0,p=0,g=0;return this.legendItems.forEach((_,b)=>{const{itemWidth:v,itemHeight:w}=nE(i,e,o,_,s);b>0&&f+w+2*a>u&&(h+=d+a,c.push({width:d,height:f}),p+=d+a,g++,d=f=0),l[b]={left:p,top:f,col:g,width:v,height:w},d=Math.max(d,v),f+=w+a}),h+=d,c.push({width:d,height:f}),h}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:i,labels:{padding:s},rtl:o}}=this,r=Ze(o,this.left,this.width);if(this.isHorizontal()){let a=0,l=gt(i,this.left+s,this.right-this.lineWidths[a]);for(const c of e)a!==c.row&&(a=c.row,l=gt(i,this.left+s,this.right-this.lineWidths[a])),c.top+=this.top+t+s,c.left=r.leftForLtr(r.x(l),c.width),l+=c.width+s}else{let a=0,l=gt(i,this.top+t+s,this.bottom-this.columnSizes[a].height);for(const c of e)c.col!==a&&(a=c.col,l=gt(i,this.top+t+s,this.bottom-this.columnSizes[a].height)),c.top=l,c.left+=this.left+s,c.left=r.leftForLtr(r.x(c.left),c.width),l+=c.height+s}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;_s(t,this),this._draw(),bs(t)}}_draw(){const{options:t,columnSizes:e,lineWidths:i,ctx:s}=this,{align:o,labels:r}=t,a=at.color,l=Ze(t.rtl,this.left,this.width),c=dt(r.font),{padding:u}=r,h=c.size,d=h/2;let f;this.drawTitle(),s.textAlign=l.textAlign("left"),s.textBaseline="middle",s.lineWidth=.5,s.font=c.string;const{boxWidth:p,boxHeight:g,itemHeight:_}=wl(r,h),b=function(M,P,N){if(isNaN(p)||p<=0||isNaN(g)||g<0)return;s.save();const k=K(N.lineWidth,1);if(s.fillStyle=K(N.fillStyle,a),s.lineCap=K(N.lineCap,"butt"),s.lineDashOffset=K(N.lineDashOffset,0),s.lineJoin=K(N.lineJoin,"miter"),s.lineWidth=k,s.strokeStyle=K(N.strokeStyle,a),s.setLineDash(K(N.lineDash,[])),r.usePointStyle){const m={radius:g*Math.SQRT2/2,pointStyle:N.pointStyle,rotation:N.rotation,borderWidth:k},E=l.xPlus(M,p/2),I=P+d;Tu(s,m,E,I,r.pointStyleWidth&&p)}else{const m=P+Math.max((h-g)/2,0),E=l.leftForLtr(M,p),I=Re(N.borderRadius);s.beginPath(),Object.values(I).some(y=>y!==0)?Vn(s,{x:E,y:m,w:p,h:g,radius:I}):s.rect(E,m,p,g),s.fill(),k!==0&&s.stroke()}s.restore()},v=function(M,P,N){Be(s,N.text,M,P+_/2,c,{strikethrough:N.hidden,textAlign:l.textAlign(N.textAlign)})},w=this.isHorizontal(),x=this._computeTitleHeight();w?f={x:gt(o,this.left+u,this.right-i[0]),y:this.top+u+x,line:0}:f={x:this.left+u,y:gt(o,this.top+x+u,this.bottom-e[0].height),line:0},Iu(this.ctx,t.textDirection);const A=_+u;this.legendItems.forEach((M,P)=>{s.strokeStyle=M.fontColor,s.fillStyle=M.fontColor;const N=s.measureText(M.text).width,k=l.textAlign(M.textAlign||(M.textAlign=r.textAlign)),m=p+d+N;let E=f.x,I=f.y;l.setWidth(this.width),w?P>0&&E+m+u>this.right&&(I=f.y+=A,f.line++,E=f.x=gt(o,this.left+u,this.right-i[f.line])):P>0&&I+A>this.bottom&&(E=f.x=E+e[f.line].width+u,f.line++,I=f.y=gt(o,this.top+x+u,this.bottom-e[f.line].height));const y=l.x(E);if(b(y,I,M),E=wb(k,E+p+d,w?E+m:this.right,t.rtl),v(l.x(E),I,M),w)f.x+=m+u;else if(typeof M.text!="string"){const O=c.lineHeight;f.y+=rh(M,O)+u}else f.y+=A}),Nu(this.ctx,t.textDirection)}drawTitle(){const t=this.options,e=t.title,i=dt(e.font),s=_t(e.padding);if(!e.display)return;const o=Ze(t.rtl,this.left,this.width),r=this.ctx,a=e.position,l=i.size/2,c=s.top+l;let u,h=this.left,d=this.width;if(this.isHorizontal())d=Math.max(...this.lineWidths),u=this.top+c,h=gt(t.align,h,this.right-d);else{const p=this.columnSizes.reduce((g,_)=>Math.max(g,_.height),0);u=c+gt(t.align,this.top,this.bottom-p-t.labels.padding-this._computeTitleHeight())}const f=gt(a,h,h+d);r.textAlign=o.textAlign(ar(a)),r.textBaseline="middle",r.strokeStyle=e.color,r.fillStyle=e.color,r.font=i.string,Be(r,e.text,f,u,i)}_computeTitleHeight(){const t=this.options.title,e=dt(t.font),i=_t(t.padding);return t.display?e.lineHeight+i.height:0}_getLegendItemAt(t,e){let i,s,o;if(Qt(t,this.left,this.right)&&Qt(e,this.top,this.bottom)){for(o=this.legendHitBoxes,i=0;io.length>r.length?o:r)),t+e.size/2+i.measureText(s).width}function sE(n,t,e){let i=n;return typeof t.text!="string"&&(i=rh(t,e)),i}function rh(n,t){const e=n.text?n.text.length:0;return t*e}function oE(n,t){return!!((n==="mousemove"||n==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(n==="click"||n==="mouseup"))}var rE={id:"legend",_element:Al,start(n,t,e){const i=n.legend=new Al({ctx:n.ctx,options:e,chart:n});mt.configure(n,i,e),mt.addBox(n,i)},stop(n){mt.removeBox(n,n.legend),delete n.legend},beforeUpdate(n,t,e){const i=n.legend;mt.configure(n,i,e),i.options=e},afterUpdate(n){const t=n.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(n,t){t.replay||n.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(n,t,e){const i=t.datasetIndex,s=e.chart;s.isDatasetVisible(i)?(s.hide(i),t.hidden=!0):(s.show(i),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:n=>n.chart.options.color,boxWidth:40,padding:10,generateLabels(n){const t=n.data.datasets,{labels:{usePointStyle:e,pointStyle:i,textAlign:s,color:o,useBorderRadius:r,borderRadius:a}}=n.legend.options;return n._getSortedDatasetMetas().map(l=>{const c=l.controller.getStyle(e?0:void 0),u=_t(c.borderWidth);return{text:t[l.index].label,fillStyle:c.backgroundColor,fontColor:o,hidden:!l.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(u.width+u.height)/4,strokeStyle:c.borderColor,pointStyle:i||c.pointStyle,rotation:c.rotation,textAlign:s||c.textAlign,borderRadius:r&&(a||c.borderRadius),datasetIndex:l.index}},this)}},title:{color:n=>n.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:n=>!n.startsWith("on"),labels:{_scriptable:n=>!["generateLabels","filter","sort"].includes(n)}}};class _r extends ae{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e){const i=this.options;if(this.left=0,this.top=0,!i.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=t,this.height=this.bottom=e;const s=it(i.text)?i.text.length:1;this._padding=_t(i.padding);const o=s*dt(i.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){const t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){const{top:e,left:i,bottom:s,right:o,options:r}=this,a=r.align;let l=0,c,u,h;return this.isHorizontal()?(u=gt(a,i,o),h=e+t,c=o-i):(r.position==="left"?(u=i+t,h=gt(a,s,e),l=ot*-.5):(u=o-t,h=gt(a,e,s),l=ot*.5),c=s-e),{titleX:u,titleY:h,maxWidth:c,rotation:l}}draw(){const t=this.ctx,e=this.options;if(!e.display)return;const i=dt(e.font),o=i.lineHeight/2+this._padding.top,{titleX:r,titleY:a,maxWidth:l,rotation:c}=this._drawArgs(o);Be(t,e.text,0,0,i,{color:e.color,maxWidth:l,rotation:c,textAlign:ar(e.align),textBaseline:"middle",translation:[r,a]})}}function aE(n,t){const e=new _r({ctx:n.ctx,options:t,chart:n});mt.configure(n,e,t),mt.addBox(n,e),n.titleBlock=e}var lE={id:"title",_element:_r,start(n,t,e){aE(n,e)},stop(n){const t=n.titleBlock;mt.removeBox(n,t),delete n.titleBlock},beforeUpdate(n,t,e){const i=n.titleBlock;mt.configure(n,i,e),i.options=e},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const xi=new WeakMap;var cE={id:"subtitle",start(n,t,e){const i=new _r({ctx:n.ctx,options:e,chart:n});mt.configure(n,i,e),mt.addBox(n,i),xi.set(n,i)},stop(n){mt.removeBox(n,xi.get(n)),xi.delete(n)},beforeUpdate(n,t,e){const i=xi.get(n);mt.configure(n,i,e),i.options=e},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Tn={average(n){if(!n.length)return!1;let t,e,i=new Set,s=0,o=0;for(t=0,e=n.length;ta+l)/i.size,y:s/o}},nearest(n,t){if(!n.length)return!1;let e=t.x,i=t.y,s=Number.POSITIVE_INFINITY,o,r,a;for(o=0,r=n.length;oa({chart:t,initial:e.initial,numSteps:r,currentStep:Math.min(i-e.start,r)}))}_refresh(){this._request||(this._running=!0,this._request=yu.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let e=0;this._charts.forEach((i,s)=>{if(!i.running||!i.items.length)return;const o=i.items;let r=o.length-1,a=!1,l;for(;r>=0;--r)l=o[r],l._active?(l._total>i.duration&&(i.duration=l._total),l.tick(t),a=!0):(o[r]=o[o.length-1],o.pop());a&&(s.draw(),this._notify(s,i,t,"progress")),o.length||(i.running=!1,this._notify(s,i,t,"complete"),i.initial=!1),e+=o.length}),this._lastDate=t,e===0&&(this._running=!1)}_getAnims(t){const e=this._charts;let i=e.get(t);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,i)),i}listen(t,e,i){this._getAnims(t).listeners[e].push(i)}add(t,e){!e||!e.length||this._getAnims(t).items.push(...e)}has(t){return this._getAnims(t).items.length>0}start(t){const e=this._charts.get(t);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce((i,s)=>Math.max(i,s._duration),0),this._refresh())}running(t){if(!this._running)return!1;const e=this._charts.get(t);return!(!e||!e.running||!e.items.length)}stop(t){const e=this._charts.get(t);if(!e||!e.items.length)return;const i=e.items;let s=i.length-1;for(;s>=0;--s)i[s].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var Xt=new _y;const Na="transparent",by={boolean(n,t,e){return e>.5?t:n},color(n,t,e){const i=Ca(n||Na),s=i.valid&&Ca(t||Na);return s&&s.valid?s.mix(i,e).hexString():t},number(n,t,e){return n+(t-n)*e}};class yy{constructor(t,e,i,s){const o=e[i];s=Sn([t.to,s,o,t.from]);const r=Sn([t.from,o,s]);this._active=!0,this._fn=t.fn||by[t.type||typeof r],this._easing=Rn[t.easing]||Rn.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=e,this._prop=i,this._from=r,this._to=s,this._promises=void 0}active(){return this._active}update(t,e,i){if(this._active){this._notify(!1);const s=this._target[this._prop],o=i-this._start,r=this._duration-o;this._start=i,this._duration=Math.floor(Math.max(r,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=Sn([t.to,e,s,t.from]),this._from=Sn([t.from,s,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,i=this._duration,s=this._prop,o=this._from,r=this._loop,a=this._to;let l;if(this._active=o!==a&&(r||e1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[s]=this._fn(o,a,l)}wait(){const t=this._promises||(this._promises=[]);return new Promise((e,i)=>{t.push({res:e,rej:i})})}_notify(t){const e=t?"res":"rej",i=this._promises||[];for(let s=0;s{const o=t[s];if(!X(o))return;const r={};for(const a of e)r[a]=o[a];(ot(o.properties)&&o.properties||[s]).forEach(a=>{(a===s||!i.has(a))&&i.set(a,r)})})}_animateOptions(t,e){const i=e.options,s=Ey(t,i);if(!s)return[];const o=this._createAnimations(s,i);return i.$shared&&vy(t.options.$animations,i).then(()=>{t.options=i},()=>{}),o}_createAnimations(t,e){const i=this._properties,s=[],o=t.$animations||(t.$animations={}),r=Object.keys(e),a=Date.now();let l;for(l=r.length-1;l>=0;--l){const c=r[l];if(c.charAt(0)==="$")continue;if(c==="options"){s.push(...this._animateOptions(t,e));continue}const u=e[c];let h=o[c];const d=i.get(c);if(h)if(d&&h.active()){h.update(d,u,a);continue}else h.cancel();if(!d||!d.duration){t[c]=u;continue}o[c]=h=new yy(d,t,c,u),s.push(h)}return s}update(t,e){if(this._properties.size===0){Object.assign(t,e);return}const i=this._createAnimations(t,e);if(i.length)return Xt.add(this._chart,i),!0}}function vy(n,t){const e=[],i=Object.keys(t);for(let s=0;s0||!e&&o<0)return s.index}return null}function za(n,t){const{chart:e,_cachedMeta:i}=n,s=e._stacks||(e._stacks={}),{iScale:o,vScale:r,index:a}=i,l=o.axis,c=r.axis,u=Sy(o,r,i),h=t.length;let d;for(let f=0;fe[i].axis===t).shift()}function Oy(n,t){return we(n,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function Dy(n,t,e){return we(n,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:e,index:t,mode:"default",type:"data"})}function yn(n,t){const e=n.controller.index,i=n.vScale&&n.vScale.axis;if(i){t=t||n._parsed;for(const s of t){const o=s._stacks;if(!o||o[i]===void 0||o[i][e]===void 0)return;delete o[i][e],o[i]._visualValues!==void 0&&o[i]._visualValues[e]!==void 0&&delete o[i]._visualValues[e]}}}const Us=n=>n==="reset"||n==="none",Va=(n,t)=>t?n:Object.assign({},n),My=(n,t,e)=>n&&!t.hidden&&t._stacked&&{keys:$u(e,!0),values:null};class Ft{constructor(t,e){this.chart=t,this._ctx=t.ctx,this.index=e,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=Ba(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&yn(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,e=this._cachedMeta,i=this.getDataset(),s=(h,d,f,p)=>h==="x"?d:h==="r"?p:f,o=e.xAxisID=K(i.xAxisID,Ys(t,"x")),r=e.yAxisID=K(i.yAxisID,Ys(t,"y")),a=e.rAxisID=K(i.rAxisID,Ys(t,"r")),l=e.indexAxis,c=e.iAxisID=s(l,o,r,a),u=e.vAxisID=s(l,r,o,a);e.xScale=this.getScaleForId(o),e.yScale=this.getScaleForId(r),e.rScale=this.getScaleForId(a),e.iScale=this.getScaleForId(c),e.vScale=this.getScaleForId(u)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const e=this._cachedMeta;return t===e.iScale?e.vScale:e.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&wa(this._data,this),t._stacked&&yn(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),i=this._data;if(X(e))this._data=Ay(e);else if(i!==e){if(i){wa(i,this);const s=this._cachedMeta;yn(s),s._parsed=[]}e&&Object.isExtensible(e)&&gb(e,this),this._syncList=[],this._data=e}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const e=this._cachedMeta,i=this.getDataset();let s=!1;this._dataCheck();const o=e._stacked;e._stacked=Ba(e.vScale,e),e.stack!==i.stack&&(s=!0,yn(e),e.stack=i.stack),this._resyncElements(t),(s||o!==e._stacked)&&za(this,e._parsed)}configure(){const t=this.chart.config,e=t.datasetScopeKeys(this._type),i=t.getOptionScopes(this.getDataset(),e,!0);this.options=t.createResolver(i,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,e){const{_cachedMeta:i,_data:s}=this,{iScale:o,_stacked:r}=i,a=o.axis;let l=t===0&&e===s.length?!0:i._sorted,c=t>0&&i._parsed[t-1],u,h,d;if(this._parsing===!1)i._parsed=s,i._sorted=!0,d=s;else{ot(s[t])?d=this.parseArrayData(i,s,t,e):X(s[t])?d=this.parseObjectData(i,s,t,e):d=this.parsePrimitiveData(i,s,t,e);const f=()=>h[a]===null||c&&h[a]g||h=0;--d)if(!p()){this.updateRangeFromParsed(c,t,f,l);break}}return c}getAllParsedValues(t){const e=this._cachedMeta._parsed,i=[];let s,o,r;for(s=0,o=e.length;s=0&&tthis.getContext(i,s,e),g=c.resolveNamedOptions(d,f,p,h);return g.$shared&&(g.$shared=l,o[r]=Object.freeze(Va(g,l))),g}_resolveAnimations(t,e,i){const s=this.chart,o=this._cachedDataOpts,r=`animation-${e}`,a=o[r];if(a)return a;let l;if(s.options.animation!==!1){const u=this.chart.config,h=u.datasetAnimationScopeKeys(this._type,e),d=u.getOptionScopes(this.getDataset(),h);l=u.createResolver(d,this.getContext(t,i,e))}const c=new Fu(s,l&&l.animations);return l&&l._cacheable&&(o[r]=Object.freeze(c)),c}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||Us(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){const i=this.resolveDataElementOptions(t,e),s=this._sharedOptions,o=this.getSharedOptions(i),r=this.includeOptions(e,o)||o!==s;return this.updateSharedOptions(o,e,i),{sharedOptions:o,includeOptions:r}}updateElement(t,e,i,s){Us(s)?Object.assign(t,i):this._resolveAnimations(e,s).update(t,i)}updateSharedOptions(t,e,i){t&&!Us(e)&&this._resolveAnimations(void 0,e).update(t,i)}_setStyle(t,e,i,s){t.active=s;const o=this.getStyle(e,s);this._resolveAnimations(e,i,s).update(t,{options:!s&&this.getSharedOptions(o)||o})}removeHoverStyle(t,e,i){this._setStyle(t,i,"active",!1)}setHoverStyle(t,e,i){this._setStyle(t,i,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const e=this._data,i=this._cachedMeta.data;for(const[a,l,c]of this._syncList)this[a](l,c);this._syncList=[];const s=i.length,o=e.length,r=Math.min(o,s);r&&this.parse(0,r),o>s?this._insertElements(s,o-s,t):o{for(c.length+=e,a=c.length-1;a>=r;a--)c[a]=c[a-e]};for(l(o),a=t;as-o))}return n._cache.$bar}function Ly(n){const t=n.iScale,e=ky(t,n.type);let i=t._length,s,o,r,a;const l=()=>{r===32767||r===-32768||(zn(a)&&(i=Math.min(i,Math.abs(r-a)||i)),a=r)};for(s=0,o=e.length;s0?s[n-1]:null,a=nMath.abs(a)&&(l=a,c=r),t[e.axis]=c,t._custom={barStart:l,barEnd:c,start:s,end:o,min:r,max:a}}function Bu(n,t,e,i){return ot(n)?Iy(n,t,e,i):t[e.axis]=e.parse(n,i),t}function ja(n,t,e,i){const s=n.iScale,o=n.vScale,r=s.getLabels(),a=s===o,l=[];let c,u,h,d;for(c=e,u=e+i;c=e?1:-1)}function Fy(n){let t,e,i,s,o;return n.horizontal?(t=n.base>n.x,e="left",i="right"):(t=n.basel.controller.options.grouped),o=i.options.stacked,r=[],a=l=>{const c=l.controller.getParsed(e),u=c&&c[l.vScale.axis];if(Q(u)||isNaN(u))return!0};for(const l of s)if(!(e!==void 0&&a(l))&&((o===!1||r.indexOf(l.stack)===-1||o===void 0&&l.stack===void 0)&&r.push(l.stack),l.index===t))break;return r.length||r.push(void 0),r}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,e,i){const s=this._getStacks(t,i),o=e!==void 0?s.indexOf(e):-1;return o===-1?s.length-1:o}_getRuler(){const t=this.options,e=this._cachedMeta,i=e.iScale,s=[];let o,r;for(o=0,r=e.data.length;o=0;--i)e=Math.max(e,t[i].size(this.resolveDataElementOptions(i))/2);return e>0&&e}getLabelAndValue(t){const e=this._cachedMeta,i=this.chart.data.labels||[],{xScale:s,yScale:o}=e,r=this.getParsed(t),a=s.getLabelForValue(r.x),l=o.getLabelForValue(r.y),c=r._custom;return{label:i[t]||"",value:"("+a+", "+l+(c?", "+c:"")+")"}}update(t){const e=this._cachedMeta.data;this.updateElements(e,0,e.length,t)}updateElements(t,e,i,s){const o=s==="reset",{iScale:r,vScale:a}=this._cachedMeta,{sharedOptions:l,includeOptions:c}=this._getSharedOptions(e,s),u=r.axis,h=a.axis;for(let d=e;dVn(w,a,l,!0)?1:Math.max(x,x*e,A,A*e),p=(w,x,A)=>Vn(w,a,l,!0)?-1:Math.min(x,x*e,A,A*e),g=f(0,c,h),_=f(ct,u,d),b=p(st,c,h),v=p(st+ct,u,d);i=(g-b)/2,s=(_-v)/2,o=-(g+b)/2,r=-(_+v)/2}return{ratioX:i,ratioY:s,offsetX:o,offsetY:r}}class Le extends Ft{constructor(t,e){super(t,e),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,e){const i=this.getDataset().data,s=this._cachedMeta;if(this._parsing===!1)s._parsed=i;else{let o=l=>+i[l];if(X(i[t])){const{key:l="value"}=this._parsing;o=c=>+be(i[c],l)}let r,a;for(r=t,a=t+e;r0&&!isNaN(t)?it*(Math.abs(t)/e):0}getLabelAndValue(t){const e=this._cachedMeta,i=this.chart,s=i.data.labels||[],o=ni(e._parsed[t],i.options.locale);return{label:s[t]||"",value:o}}getMaxBorderWidth(t){let e=0;const i=this.chart;let s,o,r,a,l;if(!t){for(s=0,o=i.data.datasets.length;st!=="spacing",_indexable:t=>t!=="spacing"&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")}),z(Le,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:i,color:s}}=t.legend.options;return e.labels.map((o,r)=>{const l=t.getDatasetMeta(0).controller.getStyle(r);return{text:o,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:s,lineWidth:l.borderWidth,pointStyle:i,hidden:!t.getDataVisibility(r),index:r}})}return[]}},onClick(t,e,i){i.chart.toggleDataVisibility(e.index),i.chart.update()}}}});class Ii extends Ft{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const e=this._cachedMeta,{dataset:i,data:s=[],_dataset:o}=e,r=this.chart._animationsDisabled;let{start:a,count:l}=Eu(e,s,r);this._drawStart=a,this._drawCount=l,xu(e)&&(a=0,l=s.length),i._chart=this.chart,i._datasetIndex=this.index,i._decimated=!!o._decimated,i.points=s;const c=this.resolveDatasetElementOptions(t);this.options.showLine||(c.borderWidth=0),c.segment=this.options.segment,this.updateElement(i,void 0,{animated:!r,options:c},t),this.updateElements(s,a,l,t)}updateElements(t,e,i,s){const o=s==="reset",{iScale:r,vScale:a,_stacked:l,_dataset:c}=this._cachedMeta,{sharedOptions:u,includeOptions:h}=this._getSharedOptions(e,s),d=r.axis,f=a.axis,{spanGaps:p,segment:g}=this.options,_=cn(p)?p:Number.POSITIVE_INFINITY,b=this.chart._animationsDisabled||o||s==="none",v=e+i,w=t.length;let x=e>0&&this.getParsed(e-1);for(let A=0;A=v){P.skip=!0;continue}const N=this.getParsed(A),k=Q(N[f]),m=P[d]=r.getPixelForValue(N[d],A),E=P[f]=o||k?a.getBasePixel():a.getPixelForValue(l?this.applyStack(a,N,l):N[f],A);P.skip=isNaN(m)||isNaN(E)||k,P.stop=A>0&&Math.abs(N[d]-x[d])>_,g&&(P.parsed=N,P.raw=c.data[A]),h&&(P.options=u||this.resolveDataElementOptions(A,M.active?"active":s)),b||this.updateElement(M,A,P,s),x=N}}getMaxOverflow(){const t=this._cachedMeta,e=t.dataset,i=e.options&&e.options.borderWidth||0,s=t.data||[];if(!s.length)return i;const o=s[0].size(this.resolveDataElementOptions(0)),r=s[s.length-1].size(this.resolveDataElementOptions(s.length-1));return Math.max(i,o,r)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}z(Ii,"id","line"),z(Ii,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),z(Ii,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});class Nn extends Ft{constructor(t,e){super(t,e),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const e=this._cachedMeta,i=this.chart,s=i.data.labels||[],o=ni(e._parsed[t].r,i.options.locale);return{label:s[t]||"",value:o}}parseObjectData(t,e,i,s){return Mu.bind(this)(t,e,i,s)}update(t){const e=this._cachedMeta.data;this._updateRadius(),this.updateElements(e,0,e.length,t)}getMinMax(){const t=this._cachedMeta,e={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach((i,s)=>{const o=this.getParsed(s).r;!isNaN(o)&&this.chart.getDataVisibility(s)&&(oe.max&&(e.max=o))}),e}_updateRadius(){const t=this.chart,e=t.chartArea,i=t.options,s=Math.min(e.right-e.left,e.bottom-e.top),o=Math.max(s/2,0),r=Math.max(i.cutoutPercentage?o/100*i.cutoutPercentage:1,0),a=(o-r)/t.getVisibleDatasetCount();this.outerRadius=o-a*this.index,this.innerRadius=this.outerRadius-a}updateElements(t,e,i,s){const o=s==="reset",r=this.chart,l=r.options.animation,c=this._cachedMeta.rScale,u=c.xCenter,h=c.yCenter,d=c.getIndexAngle(0)-.5*st;let f=d,p;const g=360/this.countVisibleElements();for(p=0;p{!isNaN(this.getParsed(s).r)&&this.chart.getDataVisibility(s)&&e++}),e}_computeAngle(t,e,i){return this.chart.getDataVisibility(t)?Nt(this.resolveDataElementOptions(t,e).angle||i):0}}z(Nn,"id","polarArea"),z(Nn,"defaults",{dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0}),z(Nn,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:i,color:s}}=t.legend.options;return e.labels.map((o,r)=>{const l=t.getDatasetMeta(0).controller.getStyle(r);return{text:o,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:s,lineWidth:l.borderWidth,pointStyle:i,hidden:!t.getDataVisibility(r),index:r}})}return[]}},onClick(t,e,i){i.chart.toggleDataVisibility(e.index),i.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}});class bo extends Le{}z(bo,"id","pie"),z(bo,"defaults",{cutout:0,rotation:0,circumference:360,radius:"100%"});class Ni extends Ft{getLabelAndValue(t){const e=this._cachedMeta.vScale,i=this.getParsed(t);return{label:e.getLabels()[t],value:""+e.getLabelForValue(i[e.axis])}}parseObjectData(t,e,i,s){return Mu.bind(this)(t,e,i,s)}update(t){const e=this._cachedMeta,i=e.dataset,s=e.data||[],o=e.iScale.getLabels();if(i.points=s,t!=="resize"){const r=this.resolveDatasetElementOptions(t);this.options.showLine||(r.borderWidth=0);const a={_loop:!0,_fullLoop:o.length===s.length,options:r};this.updateElement(i,void 0,a,t)}this.updateElements(s,0,s.length,t)}updateElements(t,e,i,s){const o=this._cachedMeta.rScale,r=s==="reset";for(let a=e;a0&&this.getParsed(e-1);for(let x=e;x0&&Math.abs(M[f]-w[f])>b,_&&(P.parsed=M,P.raw=c.data[x]),d&&(P.options=h||this.resolveDataElementOptions(x,A.active?"active":s)),v||this.updateElement(A,x,P,s),w=M}this.updateSharedOptions(h,s,u)}getMaxOverflow(){const t=this._cachedMeta,e=t.data||[];if(!this.options.showLine){let a=0;for(let l=e.length-1;l>=0;--l)a=Math.max(a,e[l].size(this.resolveDataElementOptions(l))/2);return a>0&&a}const i=t.dataset,s=i.options&&i.options.borderWidth||0;if(!e.length)return s;const o=e[0].size(this.resolveDataElementOptions(0)),r=e[e.length-1].size(this.resolveDataElementOptions(e.length-1));return Math.max(s,o,r)/2}}z(Fi,"id","scatter"),z(Fi,"defaults",{datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1}),z(Fi,"overrides",{interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}});var Vy=Object.freeze({__proto__:null,BarController:Pi,BubbleController:Ri,DoughnutController:Le,LineController:Ii,PieController:bo,PolarAreaController:Nn,RadarController:Ni,ScatterController:Fi});function Ce(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class dr{constructor(t){z(this,"options");this.options=t||{}}static override(t){Object.assign(dr.prototype,t)}init(){}formats(){return Ce()}parse(){return Ce()}format(){return Ce()}add(){return Ce()}diff(){return Ce()}startOf(){return Ce()}endOf(){return Ce()}}var jy={_date:dr};function Wy(n,t,e,i){const{controller:s,data:o,_sorted:r}=n,a=s._cachedMeta.iScale;if(a&&t===a.axis&&t!=="r"&&r&&o.length){const l=a._reversePixels?fb:ee;if(i){if(s._sharedOptions){const c=o[0],u=typeof c.getRange=="function"&&c.getRange(t);if(u){const h=l(o,t,e-u),d=l(o,t,e+u);return{lo:h.lo,hi:d.hi}}}}else return l(o,t,e)}return{lo:0,hi:o.length-1}}function ii(n,t,e,i,s){const o=n.getSortedVisibleDatasetMetas(),r=e[t];for(let a=0,l=o.length;a{l[r](t[e],s)&&(o.push({element:l,datasetIndex:c,index:u}),a=a||l.inRange(t.x,t.y,s))}),i&&!a?[]:o}var Ky={evaluateInteractionItems:ii,modes:{index(n,t,e,i){const s=Oe(t,n),o=e.axis||"x",r=e.includeInvisible||!1,a=e.intersect?Gs(n,s,o,i,r):Xs(n,s,o,!1,i,r),l=[];return a.length?(n.getSortedVisibleDatasetMetas().forEach(c=>{const u=a[0].index,h=c.data[u];h&&!h.skip&&l.push({element:h,datasetIndex:c.index,index:u})}),l):[]},dataset(n,t,e,i){const s=Oe(t,n),o=e.axis||"xy",r=e.includeInvisible||!1;let a=e.intersect?Gs(n,s,o,i,r):Xs(n,s,o,!1,i,r);if(a.length>0){const l=a[0].datasetIndex,c=n.getDatasetMeta(l).data;a=[];for(let u=0;ue.pos===t)}function Ua(n,t){return n.filter(e=>Hu.indexOf(e.pos)===-1&&e.box.axis===t)}function En(n,t){return n.sort((e,i)=>{const s=t?i:e,o=t?e:i;return s.weight===o.weight?s.index-o.index:s.weight-o.weight})}function Gy(n){const t=[];let e,i,s,o,r,a;for(e=0,i=(n||[]).length;ec.box.fullSize),!0),i=En(vn(t,"left"),!0),s=En(vn(t,"right")),o=En(vn(t,"top"),!0),r=En(vn(t,"bottom")),a=Ua(t,"x"),l=Ua(t,"y");return{fullSize:e,leftAndTop:i.concat(o),rightAndBottom:s.concat(l).concat(r).concat(a),chartArea:vn(t,"chartArea"),vertical:i.concat(s).concat(l),horizontal:o.concat(r).concat(a)}}function Ka(n,t,e,i){return Math.max(n[e],t[e])+Math.max(n[i],t[i])}function zu(n,t){n.top=Math.max(n.top,t.top),n.left=Math.max(n.left,t.left),n.bottom=Math.max(n.bottom,t.bottom),n.right=Math.max(n.right,t.right)}function Qy(n,t,e,i){const{pos:s,box:o}=e,r=n.maxPadding;if(!X(s)){e.size&&(n[s]-=e.size);const h=i[e.stack]||{size:0,count:1};h.size=Math.max(h.size,e.horizontal?o.height:o.width),e.size=h.size/h.count,n[s]+=e.size}o.getPadding&&zu(r,o.getPadding());const a=Math.max(0,t.outerWidth-Ka(r,n,"left","right")),l=Math.max(0,t.outerHeight-Ka(r,n,"top","bottom")),c=a!==n.w,u=l!==n.h;return n.w=a,n.h=l,e.horizontal?{same:c,other:u}:{same:u,other:c}}function tv(n){const t=n.maxPadding;function e(i){const s=Math.max(t[i]-n[i],0);return n[i]+=s,s}n.y+=e("top"),n.x+=e("left"),e("right"),e("bottom")}function ev(n,t){const e=t.maxPadding;function i(s){const o={left:0,top:0,right:0,bottom:0};return s.forEach(r=>{o[r]=Math.max(t[r],e[r])}),o}return i(n?["left","right"]:["top","bottom"])}function Cn(n,t,e,i){const s=[];let o,r,a,l,c,u;for(o=0,r=n.length,c=0;o{typeof g.beforeLayout=="function"&&g.beforeLayout()});const u=l.reduce((g,_)=>_.box.options&&_.box.options.display===!1?g:g+1,0)||1,h=Object.freeze({outerWidth:t,outerHeight:e,padding:s,availableWidth:o,availableHeight:r,vBoxMaxWidth:o/2/u,hBoxMaxHeight:r/2}),d=Object.assign({},s);zu(d,_t(i));const f=Object.assign({maxPadding:d,w:o,h:r,x:s.left,y:s.top},s),p=Jy(l.concat(c),h);Cn(a.fullSize,f,h,p),Cn(l,f,h,p),Cn(c,f,h,p)&&Cn(l,f,h,p),tv(f),Ga(a.leftAndTop,f,h,p),f.x+=f.w,f.y+=f.h,Ga(a.rightAndBottom,f,h,p),n.chartArea={left:f.left,top:f.top,right:f.left+f.w,bottom:f.top+f.h,height:f.h,width:f.w},tt(a.chartArea,g=>{const _=g.box;Object.assign(_,n.chartArea),_.update(f.w,f.h,{left:0,top:0,right:0,bottom:0})})}};class Vu{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,i){}removeEventListener(t,e,i){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,i,s){return e=Math.max(0,e||t.width),i=i||t.height,{width:e,height:Math.max(0,s?Math.floor(e/s):i)}}isAttached(t){return!0}updateConfig(t){}}class nv extends Vu{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const $i="$chartjs",iv={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Xa=n=>n===null||n==="";function sv(n,t){const e=n.style,i=n.getAttribute("height"),s=n.getAttribute("width");if(n[$i]={initial:{height:i,width:s,style:{display:e.display,height:e.height,width:e.width}}},e.display=e.display||"block",e.boxSizing=e.boxSizing||"border-box",Xa(s)){const o=La(n,"width");o!==void 0&&(n.width=o)}if(Xa(i))if(n.style.height==="")n.height=n.width/(t||2);else{const o=La(n,"height");o!==void 0&&(n.height=o)}return n}const ju=ry?{passive:!0}:!1;function ov(n,t,e){n&&n.addEventListener(t,e,ju)}function rv(n,t,e){n&&n.canvas&&n.canvas.removeEventListener(t,e,ju)}function av(n,t){const e=iv[n.type]||n.type,{x:i,y:s}=Oe(n,t);return{type:e,chart:t,native:n,x:i!==void 0?i:null,y:s!==void 0?s:null}}function Zi(n,t){for(const e of n)if(e===t||e.contains(t))return!0}function lv(n,t,e){const i=n.canvas,s=new MutationObserver(o=>{let r=!1;for(const a of o)r=r||Zi(a.addedNodes,i),r=r&&!Zi(a.removedNodes,i);r&&e()});return s.observe(document,{childList:!0,subtree:!0}),s}function cv(n,t,e){const i=n.canvas,s=new MutationObserver(o=>{let r=!1;for(const a of o)r=r||Zi(a.removedNodes,i),r=r&&!Zi(a.addedNodes,i);r&&e()});return s.observe(document,{childList:!0,subtree:!0}),s}const Wn=new Map;let Ja=0;function Wu(){const n=window.devicePixelRatio;n!==Ja&&(Ja=n,Wn.forEach((t,e)=>{e.currentDevicePixelRatio!==n&&t()}))}function uv(n,t){Wn.size||window.addEventListener("resize",Wu),Wn.set(n,t)}function hv(n){Wn.delete(n),Wn.size||window.removeEventListener("resize",Wu)}function dv(n,t,e){const i=n.canvas,s=i&&hr(i);if(!s)return;const o=vu((a,l)=>{const c=s.clientWidth;e(a,l),c{const l=a[0],c=l.contentRect.width,u=l.contentRect.height;c===0&&u===0||o(c,u)});return r.observe(s),uv(n,o),r}function Js(n,t,e){e&&e.disconnect(),t==="resize"&&hv(n)}function fv(n,t,e){const i=n.canvas,s=vu(o=>{n.ctx!==null&&e(av(o,n))},n);return ov(i,t,s),s}class pv extends Vu{acquireContext(t,e){const i=t&&t.getContext&&t.getContext("2d");return i&&i.canvas===t?(sv(t,e),i):null}releaseContext(t){const e=t.canvas;if(!e[$i])return!1;const i=e[$i].initial;["height","width"].forEach(o=>{const r=i[o];Q(r)?e.removeAttribute(o):e.setAttribute(o,r)});const s=i.style||{};return Object.keys(s).forEach(o=>{e.style[o]=s[o]}),e.width=e.width,delete e[$i],!0}addEventListener(t,e,i){this.removeEventListener(t,e);const s=t.$proxies||(t.$proxies={}),r={attach:lv,detach:cv,resize:dv}[e]||fv;s[e]=r(t,e,i)}removeEventListener(t,e){const i=t.$proxies||(t.$proxies={}),s=i[e];if(!s)return;({attach:Js,detach:Js,resize:Js}[e]||rv)(t,e,s),i[e]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,i,s){return oy(t,e,i,s)}isAttached(t){const e=hr(t);return!!(e&&e.isConnected)}}function gv(n){return!ur()||typeof OffscreenCanvas<"u"&&n instanceof OffscreenCanvas?nv:pv}var Ti;let ae=(Ti=class{constructor(){z(this,"x");z(this,"y");z(this,"active",!1);z(this,"options");z(this,"$animations")}tooltipPosition(t){const{x:e,y:i}=this.getProps(["x","y"],t);return{x:e,y:i}}hasValue(){return cn(this.x)&&cn(this.y)}getProps(t,e){const i=this.$animations;if(!e||!i)return this;const s={};return t.forEach(o=>{s[o]=i[o]&&i[o].active()?i[o]._to:this[o]}),s}},z(Ti,"defaults",{}),z(Ti,"defaultRoutes"),Ti);function mv(n,t){const e=n.options.ticks,i=_v(n),s=Math.min(e.maxTicksLimit||i,i),o=e.major.enabled?yv(t):[],r=o.length,a=o[0],l=o[r-1],c=[];if(r>s)return vv(t,c,o,r/s),c;const u=bv(o,t,s);if(r>0){let h,d;const f=r>1?Math.round((l-a)/(r-1)):null;for(vi(t,c,u,Q(f)?0:a-f,a),h=0,d=r-1;hs)return l}return Math.max(s,1)}function yv(n){const t=[];let e,i;for(e=0,i=n.length;en==="left"?"right":n==="right"?"left":n,Za=(n,t,e)=>t==="top"||t==="left"?n[t]+e:n[t]-e,Qa=(n,t)=>Math.min(t||n,n);function tl(n,t){const e=[],i=n.length/t,s=n.length;let o=0;for(;or+a)))return l}function Av(n,t){tt(n,e=>{const i=e.gc,s=i.length/2;let o;if(s>t){for(o=0;oi?i:e,i=s&&e>i?e:i,{min:At(e,At(i,e)),max:At(i,At(e,i))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){et(this.options.beforeUpdate,[this])}update(t,e,i){const{beginAtZero:s,grace:o,ticks:r}=this.options,a=r.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,this._margins=i=Object.assign({left:0,right:0,top:0,bottom:0},i),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+i.left+i.right:this.height+i.top+i.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=Fb(this,o,s),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=a=o||i<=1||!this.isHorizontal()){this.labelRotation=s;return}const u=this._getLabelSizes(),h=u.widest.width,d=u.highest.height,f=ft(this.chart.width-h,0,this.maxWidth);a=t.offset?this.maxWidth/i:f/(i-1),h+6>a&&(a=f/(i-(t.offset?.5:1)),l=this.maxHeight-xn(t.grid)-e.padding-el(t.title,this.chart.options.font),c=Math.sqrt(h*h+d*d),r=nr(Math.min(Math.asin(ft((u.highest.height+6)/a,-1,1)),Math.asin(ft(l/c,-1,1))-Math.asin(ft(d/c,-1,1)))),r=Math.max(s,Math.min(o,r))),this.labelRotation=r}afterCalculateLabelRotation(){et(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){et(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:e,options:{ticks:i,title:s,grid:o}}=this,r=this._isVisible(),a=this.isHorizontal();if(r){const l=el(s,e.options.font);if(a?(t.width=this.maxWidth,t.height=xn(o)+l):(t.height=this.maxHeight,t.width=xn(o)+l),i.display&&this.ticks.length){const{first:c,last:u,widest:h,highest:d}=this._getLabelSizes(),f=i.padding*2,p=Nt(this.labelRotation),g=Math.cos(p),_=Math.sin(p);if(a){const b=i.mirror?0:_*h.width+g*d.height;t.height=Math.min(this.maxHeight,t.height+b+f)}else{const b=i.mirror?0:g*h.width+_*d.height;t.width=Math.min(this.maxWidth,t.width+b+f)}this._calculatePadding(c,u,_,g)}}this._handleMargins(),a?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,e,i,s){const{ticks:{align:o,padding:r},position:a}=this.options,l=this.labelRotation!==0,c=a!=="top"&&this.axis==="x";if(this.isHorizontal()){const u=this.getPixelForTick(0)-this.left,h=this.right-this.getPixelForTick(this.ticks.length-1);let d=0,f=0;l?c?(d=s*t.width,f=i*e.height):(d=i*t.height,f=s*e.width):o==="start"?f=e.width:o==="end"?d=t.width:o!=="inner"&&(d=t.width/2,f=e.width/2),this.paddingLeft=Math.max((d-u+r)*this.width/(this.width-u),0),this.paddingRight=Math.max((f-h+r)*this.width/(this.width-h),0)}else{let u=e.height/2,h=t.height/2;o==="start"?(u=0,h=t.height):o==="end"&&(u=e.height,h=0),this.paddingTop=u+r,this.paddingBottom=h+r}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){et(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:e}=this.options;return e==="top"||e==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let e,i;for(e=0,i=t.length;e({width:r[k]||0,height:a[k]||0});return{first:N(0),last:N(e-1),widest:N(M),highest:N(P),widths:r,heights:a}}getLabelForValue(t){return t}getPixelForValue(t,e){return NaN}getValueForPixel(t){}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const e=this._startPixel+t*this._length;return db(this._alignToPixels?Se(this.chart,e,0):e)}getDecimalForPixel(t){const e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:e}=this;return t<0&&e<0?e:t>0&&e>0?t:0}getContext(t){const e=this.ticks||[];if(t>=0&&ta*s?a/i:l/s:l*s0}_computeGridLineItems(t){const e=this.axis,i=this.chart,s=this.options,{grid:o,position:r,border:a}=s,l=o.offset,c=this.isHorizontal(),h=this.ticks.length+(l?1:0),d=xn(o),f=[],p=a.setContext(this.getContext()),g=p.display?p.width:0,_=g/2,b=function(C){return Se(i,C,g)};let v,w,x,A,M,P,N,k,m,E,I,y;if(r==="top")v=b(this.bottom),P=this.bottom-d,k=v-_,E=b(t.top)+_,y=t.bottom;else if(r==="bottom")v=b(this.top),E=t.top,y=b(t.bottom)-_,P=v+_,k=this.top+d;else if(r==="left")v=b(this.right),M=this.right-d,N=v-_,m=b(t.left)+_,I=t.right;else if(r==="right")v=b(this.left),m=t.left,I=b(t.right)-_,M=v+_,N=this.left+d;else if(e==="x"){if(r==="center")v=b((t.top+t.bottom)/2+.5);else if(X(r)){const C=Object.keys(r)[0],L=r[C];v=b(this.chart.scales[C].getPixelForValue(L))}E=t.top,y=t.bottom,P=v+_,k=P+d}else if(e==="y"){if(r==="center")v=b((t.left+t.right)/2);else if(X(r)){const C=Object.keys(r)[0],L=r[C];v=b(this.chart.scales[C].getPixelForValue(L))}M=v-_,N=M-d,m=t.left,I=t.right}const O=K(s.ticks.maxTicksLimit,h),S=Math.max(1,Math.ceil(h/O));for(w=0;w0&&(U-=j/2);break}W={left:U,top:q,width:j+T.width,height:V+T.height,color:S.backdropColor}}_.push({label:x,font:k,textOffset:I,options:{rotation:g,color:L,strokeColor:D,strokeWidth:B,textAlign:F,textBaseline:y,translation:[A,M],backdrop:W}})}return _}_getXAxisLabelAlignment(){const{position:t,ticks:e}=this.options;if(-Nt(this.labelRotation))return t==="top"?"left":"right";let s="center";return e.align==="start"?s="left":e.align==="end"?s="right":e.align==="inner"&&(s="inner"),s}_getYAxisLabelAlignment(t){const{position:e,ticks:{crossAlign:i,mirror:s,padding:o}}=this.options,r=this._getLabelSizes(),a=t+o,l=r.widest.width;let c,u;return e==="left"?s?(u=this.right+o,i==="near"?c="left":i==="center"?(c="center",u+=l/2):(c="right",u+=l)):(u=this.right-a,i==="near"?c="right":i==="center"?(c="center",u-=l/2):(c="left",u=this.left)):e==="right"?s?(u=this.left+o,i==="near"?c="right":i==="center"?(c="center",u-=l/2):(c="left",u-=l)):(u=this.left+a,i==="near"?c="left":i==="center"?(c="center",u+=l/2):(c="right",u=this.right)):c="right",{textAlign:c,x:u}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,e=this.options.position;if(e==="left"||e==="right")return{top:0,left:this.left,bottom:t.height,right:this.right};if(e==="top"||e==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:t.width}}drawBackground(){const{ctx:t,options:{backgroundColor:e},left:i,top:s,width:o,height:r}=this;e&&(t.save(),t.fillStyle=e,t.fillRect(i,s,o,r),t.restore())}getLineWidthForValue(t){const e=this.options.grid;if(!this._isVisible()||!e.display)return 0;const s=this.ticks.findIndex(o=>o.value===t);return s>=0?e.setContext(this.getContext(s)).lineWidth:0}drawGrid(t){const e=this.options.grid,i=this.ctx,s=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let o,r;const a=(l,c,u)=>{!u.width||!u.color||(i.save(),i.lineWidth=u.width,i.strokeStyle=u.color,i.setLineDash(u.borderDash||[]),i.lineDashOffset=u.borderDashOffset,i.beginPath(),i.moveTo(l.x,l.y),i.lineTo(c.x,c.y),i.stroke(),i.restore())};if(e.display)for(o=0,r=s.length;o{this.draw(o)}}]:[{z:i,draw:o=>{this.drawBackground(),this.drawGrid(o),this.drawTitle()}},{z:s,draw:()=>{this.drawBorder()}},{z:e,draw:o=>{this.drawLabels(o)}}]}getMatchingVisibleMetas(t){const e=this.chart.getSortedVisibleDatasetMetas(),i=this.axis+"AxisID",s=[];let o,r;for(o=0,r=e.length;o{const i=e.split("."),s=i.pop(),o=[n].concat(i).join("."),r=t[e].split("."),a=r.pop(),l=r.join(".");at.route(o,s,l,a)})}function kv(n){return"id"in n&&"defaults"in n}class Lv{constructor(){this.controllers=new Ei(Ft,"datasets",!0),this.elements=new Ei(ae,"elements"),this.plugins=new Ei(Object,"plugins"),this.scales=new Ei(je,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,e,i){[...e].forEach(s=>{const o=i||this._getRegistryForType(s);i||o.isForType(s)||o===this.plugins&&s.id?this._exec(t,o,s):tt(s,r=>{const a=i||this._getRegistryForType(r);this._exec(t,a,r)})})}_exec(t,e,i){const s=er(t);et(i["before"+s],[],i),e[t](i),et(i["after"+s],[],i)}_getRegistryForType(t){for(let e=0;eo.filter(a=>!r.some(l=>a.plugin.id===l.plugin.id));this._notify(s(e,i),t,"stop"),this._notify(s(i,e),t,"start")}}function Rv(n){const t={},e=[],i=Object.keys(Ht.plugins.items);for(let o=0;o1&&nl(n[0].toLowerCase());if(i)return i}throw new Error(`Cannot determine type of '${n}' axis. Please provide 'axis' or 'position' option.`)}function il(n,t,e){if(e[t+"AxisID"]===n)return{axis:t}}function zv(n,t){if(t.data&&t.data.datasets){const e=t.data.datasets.filter(i=>i.xAxisID===n||i.yAxisID===n);if(e.length)return il(n,"x",e[0])||il(n,"y",e[0])}return{}}function Vv(n,t){const e=Be[n.type]||{scales:{}},i=t.scales||{},s=yo(n.type,t),o=Object.create(null);return Object.keys(i).forEach(r=>{const a=i[r];if(!X(a))return console.error(`Invalid scale configuration for scale: ${r}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${r}`);const l=vo(r,a,zv(r,n),at.scales[a.type]),c=Bv(l,s),u=e.scales||{};o[r]=Ln(Object.create(null),[{axis:l},a,u[l],u[c]])}),n.data.datasets.forEach(r=>{const a=r.type||n.type,l=r.indexAxis||yo(a,t),u=(Be[a]||{}).scales||{};Object.keys(u).forEach(h=>{const d=$v(h,l),f=r[d+"AxisID"]||d;o[f]=o[f]||Object.create(null),Ln(o[f],[{axis:d},i[f],u[h]])})}),Object.keys(o).forEach(r=>{const a=o[r];Ln(a,[at.scales[a.type],at.scale])}),o}function qu(n){const t=n.options||(n.options={});t.plugins=K(t.plugins,{}),t.scales=Vv(n,t)}function Yu(n){return n=n||{},n.datasets=n.datasets||[],n.labels=n.labels||[],n}function jv(n){return n=n||{},n.data=Yu(n.data),qu(n),n}const sl=new Map,Uu=new Set;function xi(n,t){let e=sl.get(n);return e||(e=t(),sl.set(n,e),Uu.add(e)),e}const wn=(n,t,e)=>{const i=be(t,e);i!==void 0&&n.add(i)};class Wv{constructor(t){this._config=jv(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=Yu(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),qu(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return xi(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,e){return xi(`${t}.transition.${e}`,()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,e){return xi(`${t}-${e}`,()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]])}pluginScopeKeys(t){const e=t.id,i=this.type;return xi(`${i}-plugin-${e}`,()=>[[`plugins.${e}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,e){const i=this._scopeCache;let s=i.get(t);return(!s||e)&&(s=new Map,i.set(t,s)),s}getOptionScopes(t,e,i){const{options:s,type:o}=this,r=this._cachedScopes(t,i),a=r.get(e);if(a)return a;const l=new Set;e.forEach(u=>{t&&(l.add(t),u.forEach(h=>wn(l,t,h))),u.forEach(h=>wn(l,s,h)),u.forEach(h=>wn(l,Be[o]||{},h)),u.forEach(h=>wn(l,at,h)),u.forEach(h=>wn(l,mo,h))});const c=Array.from(l);return c.length===0&&c.push(Object.create(null)),Uu.has(e)&&r.set(e,c),c}chartOptionScopes(){const{options:t,type:e}=this;return[t,Be[e]||{},at.datasets[e]||{},{type:e},at,mo]}resolveNamedOptions(t,e,i,s=[""]){const o={$shared:!0},{resolver:r,subPrefixes:a}=ol(this._resolverCache,t,s);let l=r;if(Yv(r,e)){o.$shared=!1,i=ye(i)?i():i;const c=this.createResolver(t,i,a);l=un(r,i,c)}for(const c of e)o[c]=l[c];return o}createResolver(t,e,i=[""],s){const{resolver:o}=ol(this._resolverCache,t,i);return X(e)?un(o,e,void 0,s):o}}function ol(n,t,e){let i=n.get(t);i||(i=new Map,n.set(t,i));const s=e.join();let o=i.get(s);return o||(o={resolver:ar(t,e),subPrefixes:e.filter(a=>!a.toLowerCase().includes("hover"))},i.set(s,o)),o}const qv=n=>X(n)&&Object.getOwnPropertyNames(n).some(t=>ye(n[t]));function Yv(n,t){const{isScriptable:e,isIndexable:i}=Cu(n);for(const s of t){const o=e(s),r=i(s),a=(r||o)&&n[s];if(o&&(ye(a)||qv(a))||r&&ot(a))return!0}return!1}var Uv="4.4.2";const Kv=["top","bottom","left","right","chartArea"];function rl(n,t){return n==="top"||n==="bottom"||Kv.indexOf(n)===-1&&t==="x"}function al(n,t){return function(e,i){return e[n]===i[n]?e[t]-i[t]:e[n]-i[n]}}function ll(n){const t=n.chart,e=t.options.animation;t.notifyPlugins("afterRender"),et(e&&e.onComplete,[n],t)}function Gv(n){const t=n.chart,e=t.options.animation;et(e&&e.onProgress,[n],t)}function Ku(n){return ur()&&typeof n=="string"?n=document.getElementById(n):n&&n.length&&(n=n[0]),n&&n.canvas&&(n=n.canvas),n}const Bi={},cl=n=>{const t=Ku(n);return Object.values(Bi).filter(e=>e.canvas===t).pop()};function Xv(n,t,e){const i=Object.keys(n);for(const s of i){const o=+s;if(o>=t){const r=n[s];delete n[s],(e>0||o>t)&&(n[o+e]=r)}}}function Jv(n,t,e,i){return!e||n.type==="mouseout"?null:i?t:n}function wi(n,t,e){return n.options.clip?n[e]:t[e]}function Zv(n,t){const{xScale:e,yScale:i}=n;return e&&i?{left:wi(e,t,"left"),right:wi(e,t,"right"),top:wi(i,t,"top"),bottom:wi(i,t,"bottom")}:t}class Qt{static register(...t){Ht.add(...t),ul()}static unregister(...t){Ht.remove(...t),ul()}constructor(t,e){const i=this.config=new Wv(e),s=Ku(t),o=cl(s);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas with ID '"+o.canvas.id+"' can be reused.");const r=i.createResolver(i.chartOptionScopes(),this.getContext());this.platform=new(i.platform||gv(s)),this.platform.updateConfig(i);const a=this.platform.acquireContext(s,r.aspectRatio),l=a&&a.canvas,c=l&&l.height,u=l&&l.width;if(this.id=tb(),this.ctx=a,this.canvas=l,this.width=u,this.height=c,this._options=r,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new Pv,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=mb(h=>this.update(h),r.resizeDelay||0),this._dataChanges=[],Bi[this.id]=this,!a||!l){console.error("Failed to create chart: can't acquire context from the given item");return}Xt.listen(this,"complete",ll),Xt.listen(this,"progress",Gv),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:e},width:i,height:s,_aspectRatio:o}=this;return Q(t)?e&&o?o:s?i/s:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return Ht}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():ka(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Oa(this.canvas,this.ctx),this}stop(){return Xt.stop(this),this}resize(t,e){Xt.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const i=this.options,s=this.canvas,o=i.maintainAspectRatio&&this.aspectRatio,r=this.platform.getMaximumSize(s,t,e,o),a=i.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=r.width,this.height=r.height,this._aspectRatio=this.aspectRatio,ka(this,a,!0)&&(this.notifyPlugins("resize",{size:r}),et(i.onResize,[this,r],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const e=this.options.scales||{};tt(e,(i,s)=>{i.id=s})}buildOrUpdateScales(){const t=this.options,e=t.scales,i=this.scales,s=Object.keys(i).reduce((r,a)=>(r[a]=!1,r),{});let o=[];e&&(o=o.concat(Object.keys(e).map(r=>{const a=e[r],l=vo(r,a),c=l==="r",u=l==="x";return{options:a,dposition:c?"chartArea":u?"bottom":"left",dtype:c?"radialLinear":u?"category":"linear"}}))),tt(o,r=>{const a=r.options,l=a.id,c=vo(l,a),u=K(a.type,r.dtype);(a.position===void 0||rl(a.position,c)!==rl(r.dposition))&&(a.position=r.dposition),s[l]=!0;let h=null;if(l in i&&i[l].type===u)h=i[l];else{const d=Ht.getScale(u);h=new d({id:l,type:u,ctx:this.ctx,chart:this}),i[h.id]=h}h.init(a,t)}),tt(s,(r,a)=>{r||delete i[a]}),tt(i,r=>{mt.configure(this,r,r.options),mt.addBox(this,r)})}_updateMetasets(){const t=this._metasets,e=this.data.datasets.length,i=t.length;if(t.sort((s,o)=>s.index-o.index),i>e){for(let s=e;se.length&&delete this._stacks,t.forEach((i,s)=>{e.filter(o=>o===i._dataset).length===0&&this._destroyDatasetMeta(s)})}buildOrUpdateControllers(){const t=[],e=this.data.datasets;let i,s;for(this._removeUnreferencedMetasets(),i=0,s=e.length;i{this.getDatasetMeta(e).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const e=this.config;e.update();const i=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),s=this._animationsDisabled=!i.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let r=0;for(let c=0,u=this.data.datasets.length;c{c.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(al("z","_idx"));const{_active:a,_lastEvent:l}=this;l?this._eventHandler(l,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){tt(this.scales,t=>{mt.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),i=new Set(t.events);(!ya(e,i)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(const{method:i,start:s,count:o}of e){const r=i==="_removeElements"?-o:o;Xv(t,s,r)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const e=this.data.datasets.length,i=o=>new Set(t.filter(r=>r[0]===o).map((r,a)=>a+","+r.splice(1).join(","))),s=i(0);for(let o=1;oo.split(",")).map(o=>({method:o[1],start:+o[2],count:+o[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;mt.update(this,this.width,this.height,t);const e=this.chartArea,i=e.width<=0||e.height<=0;this._layers=[],tt(this.boxes,s=>{i&&s.position==="chartArea"||(s.configure&&s.configure(),this._layers.push(...s._layers()))},this),this._layers.forEach((s,o)=>{s._idx=o}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let e=0,i=this.data.datasets.length;e=0;--e)this._drawDataset(t[e]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const e=this.ctx,i=t._clip,s=!i.disabled,o=Zv(t,this.chartArea),r={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",r)!==!1&&(s&&ms(e,{left:i.left===!1?0:o.left-i.left,right:i.right===!1?this.width:o.right+i.right,top:i.top===!1?0:o.top-i.top,bottom:i.bottom===!1?this.height:o.bottom+i.bottom}),t.controller.draw(),s&&_s(e),r.cancelable=!1,this.notifyPlugins("afterDatasetDraw",r))}isPointInArea(t){return ne(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,i,s){const o=Ky.modes[e];return typeof o=="function"?o(this,t,i,s):[]}getDatasetMeta(t){const e=this.data.datasets[t],i=this._metasets;let s=i.filter(o=>o&&o._dataset===e).pop();return s||(s={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e&&e.order||0,index:t,_dataset:e,_parsed:[],_sorted:!1},i.push(s)),s}getContext(){return this.$context||(this.$context=we(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const e=this.data.datasets[t];if(!e)return!1;const i=this.getDatasetMeta(t);return typeof i.hidden=="boolean"?!i.hidden:!e.hidden}setDatasetVisibility(t,e){const i=this.getDatasetMeta(t);i.hidden=!e}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,e,i){const s=i?"show":"hide",o=this.getDatasetMeta(t),r=o.controller._resolveAnimations(void 0,s);zn(e)?(o.data[e].hidden=!i,this.update()):(this.setDatasetVisibility(t,i),r.update(o,{visible:i}),this.update(a=>a.datasetIndex===t?s:void 0))}hide(t,e){this._updateVisibility(t,e,!1)}show(t,e){this._updateVisibility(t,e,!0)}_destroyDatasetMeta(t){const e=this._metasets[t];e&&e.controller&&e.controller._destroy(),delete this._metasets[t]}_stop(){let t,e;for(this.stop(),Xt.remove(this),t=0,e=this.data.datasets.length;t{e.addEventListener(this,o,r),t[o]=r},s=(o,r,a)=>{o.offsetX=r,o.offsetY=a,this._eventHandler(o)};tt(this.options.events,o=>i(o,s))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,e=this.platform,i=(l,c)=>{e.addEventListener(this,l,c),t[l]=c},s=(l,c)=>{t[l]&&(e.removeEventListener(this,l,c),delete t[l])},o=(l,c)=>{this.canvas&&this.resize(l,c)};let r;const a=()=>{s("attach",a),this.attached=!0,this.resize(),i("resize",o),i("detach",r)};r=()=>{this.attached=!1,s("resize",o),this._stop(),this._resize(0,0),i("attach",a)},e.isAttached(this.canvas)?a():r()}unbindEvents(){tt(this._listeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._listeners={},tt(this._responsiveListeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,e,i){const s=i?"set":"remove";let o,r,a,l;for(e==="dataset"&&(o=this.getDatasetMeta(t[0].datasetIndex),o.controller["_"+s+"DatasetHoverStyle"]()),a=0,l=t.length;a{const a=this.getDatasetMeta(o);if(!a)throw new Error("No dataset found at index "+o);return{datasetIndex:o,element:a.data[r],index:r}});!Ui(i,e)&&(this._active=i,this._lastEvent=null,this._updateHoverStyles(i,e))}notifyPlugins(t,e,i){return this._plugins.notify(this,t,e,i)}isPluginEnabled(t){return this._plugins._cache.filter(e=>e.plugin.id===t).length===1}_updateHoverStyles(t,e,i){const s=this.options.hover,o=(l,c)=>l.filter(u=>!c.some(h=>u.datasetIndex===h.datasetIndex&&u.index===h.index)),r=o(e,t),a=i?t:o(t,e);r.length&&this.updateHoverStyle(r,s.mode,!1),a.length&&s.mode&&this.updateHoverStyle(a,s.mode,!0)}_eventHandler(t,e){const i={event:t,replay:e,cancelable:!0,inChartArea:this.isPointInArea(t)},s=r=>(r.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",i,s)===!1)return;const o=this._handleEvent(t,e,i.inChartArea);return i.cancelable=!1,this.notifyPlugins("afterEvent",i,s),(o||i.changed)&&this.render(),this}_handleEvent(t,e,i){const{_active:s=[],options:o}=this,r=e,a=this._getActiveElements(t,s,i,r),l=rb(t),c=Jv(t,this._lastEvent,i,l);i&&(this._lastEvent=null,et(o.onHover,[t,a,this],this),l&&et(o.onClick,[t,a,this],this));const u=!Ui(a,s);return(u||e)&&(this._active=a,this._updateHoverStyles(a,s,e)),this._lastEvent=c,u}_getActiveElements(t,e,i,s){if(t.type==="mouseout")return[];if(!i)return e;const o=this.options.hover;return this.getElementsAtEventForMode(t,o.mode,o,s)}}z(Qt,"defaults",at),z(Qt,"instances",Bi),z(Qt,"overrides",Be),z(Qt,"registry",Ht),z(Qt,"version",Uv),z(Qt,"getChart",cl);function ul(){return tt(Qt.instances,n=>n._plugins.invalidate())}function Qv(n,t,e){const{startAngle:i,pixelMargin:s,x:o,y:r,outerRadius:a,innerRadius:l}=t;let c=s/a;n.beginPath(),n.arc(o,r,a,i-c,e+c),l>s?(c=s/l,n.arc(o,r,l,e+c,i-c,!0)):n.arc(o,r,s,e+ct,i-ct),n.closePath(),n.clip()}function t0(n){return rr(n,["outerStart","outerEnd","innerStart","innerEnd"])}function e0(n,t,e,i){const s=t0(n.options.borderRadius),o=(e-t)/2,r=Math.min(o,i*t/2),a=l=>{const c=(e-Math.min(o,l))*i/2;return ft(l,0,Math.min(o,c))};return{outerStart:a(s.outerStart),outerEnd:a(s.outerEnd),innerStart:ft(s.innerStart,0,r),innerEnd:ft(s.innerEnd,0,r)}}function Ke(n,t,e,i){return{x:e+n*Math.cos(t),y:i+n*Math.sin(t)}}function Qi(n,t,e,i,s,o){const{x:r,y:a,startAngle:l,pixelMargin:c,innerRadius:u}=t,h=Math.max(t.outerRadius+i+e-c,0),d=u>0?u+i+e+c:0;let f=0;const p=s-l;if(i){const S=u>0?u-i:0,C=h>0?h-i:0,L=(S+C)/2,D=L!==0?p*L/(L+i):p;f=(p-D)/2}const g=Math.max(.001,p*h-e/st)/h,_=(p-g)/2,b=l+_+f,v=s-_-f,{outerStart:w,outerEnd:x,innerStart:A,innerEnd:M}=e0(t,d,h,v-b),P=h-w,N=h-x,k=b+w/P,m=v-x/N,E=d+A,I=d+M,y=b+A/E,O=v-M/I;if(n.beginPath(),o){const S=(k+m)/2;if(n.arc(r,a,h,k,S),n.arc(r,a,h,S,m),x>0){const B=Ke(N,m,r,a);n.arc(B.x,B.y,x,m,v+ct)}const C=Ke(I,v,r,a);if(n.lineTo(C.x,C.y),M>0){const B=Ke(I,O,r,a);n.arc(B.x,B.y,M,v+ct,O+Math.PI)}const L=(v-M/d+(b+A/d))/2;if(n.arc(r,a,d,v-M/d,L,!0),n.arc(r,a,d,L,b+A/d,!0),A>0){const B=Ke(E,y,r,a);n.arc(B.x,B.y,A,y+Math.PI,b-ct)}const D=Ke(P,b,r,a);if(n.lineTo(D.x,D.y),w>0){const B=Ke(P,k,r,a);n.arc(B.x,B.y,w,b-ct,k)}}else{n.moveTo(r,a);const S=Math.cos(k)*h+r,C=Math.sin(k)*h+a;n.lineTo(S,C);const L=Math.cos(m)*h+r,D=Math.sin(m)*h+a;n.lineTo(L,D)}n.closePath()}function n0(n,t,e,i,s){const{fullCircles:o,startAngle:r,circumference:a}=t;let l=t.endAngle;if(o){Qi(n,t,e,i,l,s);for(let c=0;c=it||Vn(r,l,c),_=te(a,u+f,h+f);return g&&_}getCenterPoint(e){const{x:i,y:s,startAngle:o,endAngle:r,innerRadius:a,outerRadius:l}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],e),{offset:c,spacing:u}=this.options,h=(o+r)/2,d=(a+l+u+c)/2;return{x:i+Math.cos(h)*d,y:s+Math.sin(h)*d}}tooltipPosition(e){return this.getCenterPoint(e)}draw(e){const{options:i,circumference:s}=this,o=(i.offset||0)/4,r=(i.spacing||0)/2,a=i.circular;if(this.pixelMargin=i.borderAlign==="inner"?.33:0,this.fullCircles=s>it?Math.floor(s/it):0,s===0||this.innerRadius<0||this.outerRadius<0)return;e.save();const l=(this.startAngle+this.endAngle)/2;e.translate(Math.cos(l)*o,Math.sin(l)*o);const c=1-Math.sin(Math.min(st,s||0)),u=o*c;e.fillStyle=i.backgroundColor,e.strokeStyle=i.borderColor,n0(e,this,u,r,a),i0(e,this,u,r,a),e.restore()}}z(Tn,"id","arc"),z(Tn,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),z(Tn,"defaultRoutes",{backgroundColor:"backgroundColor"}),z(Tn,"descriptors",{_scriptable:!0,_indexable:e=>e!=="borderDash"});function Gu(n,t,e=t){n.lineCap=K(e.borderCapStyle,t.borderCapStyle),n.setLineDash(K(e.borderDash,t.borderDash)),n.lineDashOffset=K(e.borderDashOffset,t.borderDashOffset),n.lineJoin=K(e.borderJoinStyle,t.borderJoinStyle),n.lineWidth=K(e.borderWidth,t.borderWidth),n.strokeStyle=K(e.borderColor,t.borderColor)}function s0(n,t,e){n.lineTo(e.x,e.y)}function o0(n){return n.stepped?Ob:n.tension||n.cubicInterpolationMode==="monotone"?Db:s0}function Xu(n,t,e={}){const i=n.length,{start:s=0,end:o=i-1}=e,{start:r,end:a}=t,l=Math.max(s,r),c=Math.min(o,a),u=sa&&o>a;return{count:i,start:l,loop:t.loop,ilen:c(r+(c?a-x:x))%o,w=()=>{g!==_&&(n.lineTo(u,_),n.lineTo(u,g),n.lineTo(u,b))};for(l&&(f=s[v(0)],n.moveTo(f.x,f.y)),d=0;d<=a;++d){if(f=s[v(d)],f.skip)continue;const x=f.x,A=f.y,M=x|0;M===p?(A_&&(_=A),u=(h*u+x)/++h):(w(),n.lineTo(x,A),p=M,h=0,g=_=A),b=A}w()}function Eo(n){const t=n.options,e=t.borderDash&&t.borderDash.length;return!n._decimated&&!n._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!e?a0:r0}function l0(n){return n.stepped?ay:n.tension||n.cubicInterpolationMode==="monotone"?ly:De}function c0(n,t,e,i){let s=t._path;s||(s=t._path=new Path2D,t.path(s,e,i)&&s.closePath()),Gu(n,t.options),n.stroke(s)}function u0(n,t,e,i){const{segments:s,options:o}=t,r=Eo(t);for(const a of s)Gu(n,o,a.style),n.beginPath(),r(n,t,a,{start:e,end:e+i-1})&&n.closePath(),n.stroke()}const h0=typeof Path2D=="function";function d0(n,t,e,i){h0&&!t.options.segment?c0(n,t,e,i):u0(n,t,e,i)}class de extends ae{constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,e){const i=this.options;if((i.tension||i.cubicInterpolationMode==="monotone")&&!i.stepped&&!this._pointsUpdated){const s=i.spanGaps?this._loop:this._fullLoop;Qb(this._points,i,t,s,e),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=py(this,this.options.segment))}first(){const t=this.segments,e=this.points;return t.length&&e[t[0].start]}last(){const t=this.segments,e=this.points,i=t.length;return i&&e[t[i-1].end]}interpolate(t,e){const i=this.options,s=t[e],o=this.points,r=Nu(this,{property:e,start:s,end:s});if(!r.length)return;const a=[],l=l0(i);let c,u;for(c=0,u=r.length;ct!=="borderDash"&&t!=="fill"});function hl(n,t,e,i){const s=n.options,{[e]:o}=n.getProps([e],i);return Math.abs(t-o)n.replace("rgb(","rgba(").replace(")",", 0.5)"));function Zu(n){return xo[n%xo.length]}function Qu(n){return dl[n%dl.length]}function y0(n,t){return n.borderColor=Zu(t),n.backgroundColor=Qu(t),++t}function v0(n,t){return n.backgroundColor=n.data.map(()=>Zu(t++)),t}function E0(n,t){return n.backgroundColor=n.data.map(()=>Qu(t++)),t}function x0(n){let t=0;return(e,i)=>{const s=n.getDatasetMeta(i).controller;s instanceof Le?t=v0(e,t):s instanceof Nn?t=E0(e,t):s&&(t=y0(e,t))}}function fl(n){let t;for(t in n)if(n[t].borderColor||n[t].backgroundColor)return!0;return!1}function w0(n){return n&&(n.borderColor||n.backgroundColor)}var A0={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(n,t,e){if(!e.enabled)return;const{data:{datasets:i},options:s}=n.config,{elements:o}=s;if(!e.forceOverride&&(fl(i)||w0(s)||o&&fl(o)))return;const r=x0(n);i.forEach(r)}};function S0(n,t,e,i,s){const o=s.samples||i;if(o>=e)return n.slice(t,t+e);const r=[],a=(e-2)/(o-2);let l=0;const c=t+e-1;let u=t,h,d,f,p,g;for(r[l++]=n[u],h=0;hf&&(f=p,d=n[v],g=v);r[l++]=d,u=g}return r[l++]=n[c],r}function C0(n,t,e,i){let s=0,o=0,r,a,l,c,u,h,d,f,p,g;const _=[],b=t+e-1,v=n[t].x,x=n[b].x-v;for(r=t;rg&&(g=c,d=r),s=(o*s+a.x)/++o;else{const M=r-1;if(!Q(h)&&!Q(d)){const P=Math.min(h,d),N=Math.max(h,d);P!==f&&P!==M&&_.push({...n[P],x:s}),N!==f&&N!==M&&_.push({...n[N],x:s})}r>0&&M!==f&&_.push(n[M]),_.push(a),u=A,o=0,p=g=c,h=d=f=r}}return _}function th(n){if(n._decimated){const t=n._data;delete n._decimated,delete n._data,Object.defineProperty(n,"data",{configurable:!0,enumerable:!0,writable:!0,value:t})}}function pl(n){n.data.datasets.forEach(t=>{th(t)})}function T0(n,t){const e=t.length;let i=0,s;const{iScale:o}=n,{min:r,max:a,minDefined:l,maxDefined:c}=o.getUserBounds();return l&&(i=ft(ee(t,o.axis,r).lo,0,e-1)),c?s=ft(ee(t,o.axis,a).hi+1,i,e)-i:s=e-i,{start:i,count:s}}var O0={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(n,t,e)=>{if(!e.enabled){pl(n);return}const i=n.width;n.data.datasets.forEach((s,o)=>{const{_data:r,indexAxis:a}=s,l=n.getDatasetMeta(o),c=r||s.data;if(Sn([a,n.options.indexAxis])==="y"||!l.controller.supportsDecimation)return;const u=n.scales[l.xAxisID];if(u.type!=="linear"&&u.type!=="time"||n.options.parsing)return;let{start:h,count:d}=T0(l,c);const f=e.threshold||4*i;if(d<=f){th(s);return}Q(r)&&(s._data=c,delete s.data,Object.defineProperty(s,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(g){this._data=g}}));let p;switch(e.algorithm){case"lttb":p=S0(c,h,d,i,e);break;case"min-max":p=C0(c,h,d,i);break;default:throw new Error(`Unsupported decimation algorithm '${e.algorithm}'`)}s._decimated=p})},destroy(n){pl(n)}};function D0(n,t,e){const i=n.segments,s=n.points,o=t.points,r=[];for(const a of i){let{start:l,end:c}=a;c=fr(l,c,s);const u=wo(e,s[l],s[c],a.loop);if(!t.segments){r.push({source:a,target:u,start:s[l],end:s[c]});continue}const h=Nu(t,u);for(const d of h){const f=wo(e,o[d.start],o[d.end],d.loop),p=Iu(a,s,f);for(const g of p)r.push({source:g,target:d,start:{[e]:gl(u,f,"start",Math.max)},end:{[e]:gl(u,f,"end",Math.min)}})}}return r}function wo(n,t,e,i){if(i)return;let s=t[n],o=e[n];return n==="angle"&&(s=St(s),o=St(o)),{property:n,start:s,end:o}}function M0(n,t){const{x:e=null,y:i=null}=n||{},s=t.points,o=[];return t.segments.forEach(({start:r,end:a})=>{a=fr(r,a,s);const l=s[r],c=s[a];i!==null?(o.push({x:l.x,y:i}),o.push({x:c.x,y:i})):e!==null&&(o.push({x:e,y:l.y}),o.push({x:e,y:c.y}))}),o}function fr(n,t,e){for(;t>n;t--){const i=e[t];if(!isNaN(i.x)&&!isNaN(i.y))break}return t}function gl(n,t,e,i){return n&&t?i(n[e],t[e]):n?n[e]:t?t[e]:0}function eh(n,t){let e=[],i=!1;return ot(n)?(i=!0,e=n):e=M0(n,t),e.length?new de({points:e,options:{tension:0},_loop:i,_fullLoop:i}):null}function ml(n){return n&&n.fill!==!1}function k0(n,t,e){let s=n[t].fill;const o=[t];let r;if(!e)return s;for(;s!==!1&&o.indexOf(s)===-1;){if(!rt(s))return s;if(r=n[s],!r)return!1;if(r.visible)return s;o.push(s),s=r.fill}return!1}function L0(n,t,e){const i=N0(n);if(X(i))return isNaN(i.value)?!1:i;let s=parseFloat(i);return rt(s)&&Math.floor(s)===s?P0(i[0],t,s,e):["origin","start","end","stack","shape"].indexOf(i)>=0&&i}function P0(n,t,e,i){return(n==="-"||n==="+")&&(e=t+e),e===t||e<0||e>=i?!1:e}function R0(n,t){let e=null;return n==="start"?e=t.bottom:n==="end"?e=t.top:X(n)?e=t.getPixelForValue(n.value):t.getBasePixel&&(e=t.getBasePixel()),e}function I0(n,t,e){let i;return n==="start"?i=e:n==="end"?i=t.options.reverse?t.min:t.max:X(n)?i=n.value:i=t.getBaseValue(),i}function N0(n){const t=n.options,e=t.fill;let i=K(e&&e.target,e);return i===void 0&&(i=!!t.backgroundColor),i===!1||i===null?!1:i===!0?"origin":i}function F0(n){const{scale:t,index:e,line:i}=n,s=[],o=i.segments,r=i.points,a=$0(t,e);a.push(eh({x:null,y:t.bottom},i));for(let l=0;l=0;--r){const a=s[r].$filler;a&&(a.line.updateControlPoints(o,a.axis),i&&a.fill&&to(n.ctx,a,o))}},beforeDatasetsDraw(n,t,e){if(e.drawTime!=="beforeDatasetsDraw")return;const i=n.getSortedVisibleDatasetMetas();for(let s=i.length-1;s>=0;--s){const o=i[s].$filler;ml(o)&&to(n.ctx,o,n.chartArea)}},beforeDatasetDraw(n,t,e){const i=t.meta.$filler;!ml(i)||e.drawTime!=="beforeDatasetDraw"||to(n.ctx,i,n.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const vl=(n,t)=>{let{boxHeight:e=t,boxWidth:i=t}=n;return n.usePointStyle&&(e=Math.min(e,t),i=n.pointStyleWidth||Math.min(i,t)),{boxWidth:i,boxHeight:e,itemHeight:Math.max(t,e)}},G0=(n,t)=>n!==null&&t!==null&&n.datasetIndex===t.datasetIndex&&n.index===t.index;class El extends ae{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e,i){this.maxWidth=t,this.maxHeight=e,this._margins=i,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let e=et(t.generateLabels,[this.chart],this)||[];t.filter&&(e=e.filter(i=>t.filter(i,this.chart.data))),t.sort&&(e=e.sort((i,s)=>t.sort(i,s,this.chart.data))),this.options.reverse&&e.reverse(),this.legendItems=e}fit(){const{options:t,ctx:e}=this;if(!t.display){this.width=this.height=0;return}const i=t.labels,s=dt(i.font),o=s.size,r=this._computeTitleHeight(),{boxWidth:a,itemHeight:l}=vl(i,o);let c,u;e.font=s.string,this.isHorizontal()?(c=this.maxWidth,u=this._fitRows(r,o,a,l)+10):(u=this.maxHeight,c=this._fitCols(r,s,a,l)+10),this.width=Math.min(c,t.maxWidth||this.maxWidth),this.height=Math.min(u,t.maxHeight||this.maxHeight)}_fitRows(t,e,i,s){const{ctx:o,maxWidth:r,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],u=s+a;let h=t;o.textAlign="left",o.textBaseline="middle";let d=-1,f=-u;return this.legendItems.forEach((p,g)=>{const _=i+e/2+o.measureText(p.text).width;(g===0||c[c.length-1]+_+2*a>r)&&(h+=u,c[c.length-(g>0?0:1)]=0,f+=u,d++),l[g]={left:0,top:f,row:d,width:_,height:s},c[c.length-1]+=_+a}),h}_fitCols(t,e,i,s){const{ctx:o,maxHeight:r,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],u=r-t;let h=a,d=0,f=0,p=0,g=0;return this.legendItems.forEach((_,b)=>{const{itemWidth:v,itemHeight:w}=X0(i,e,o,_,s);b>0&&f+w+2*a>u&&(h+=d+a,c.push({width:d,height:f}),p+=d+a,g++,d=f=0),l[b]={left:p,top:f,col:g,width:v,height:w},d=Math.max(d,v),f+=w+a}),h+=d,c.push({width:d,height:f}),h}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:i,labels:{padding:s},rtl:o}}=this,r=Qe(o,this.left,this.width);if(this.isHorizontal()){let a=0,l=gt(i,this.left+s,this.right-this.lineWidths[a]);for(const c of e)a!==c.row&&(a=c.row,l=gt(i,this.left+s,this.right-this.lineWidths[a])),c.top+=this.top+t+s,c.left=r.leftForLtr(r.x(l),c.width),l+=c.width+s}else{let a=0,l=gt(i,this.top+t+s,this.bottom-this.columnSizes[a].height);for(const c of e)c.col!==a&&(a=c.col,l=gt(i,this.top+t+s,this.bottom-this.columnSizes[a].height)),c.top=l,c.left+=this.left+s,c.left=r.leftForLtr(r.x(c.left),c.width),l+=c.height+s}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;ms(t,this),this._draw(),_s(t)}}_draw(){const{options:t,columnSizes:e,lineWidths:i,ctx:s}=this,{align:o,labels:r}=t,a=at.color,l=Qe(t.rtl,this.left,this.width),c=dt(r.font),{padding:u}=r,h=c.size,d=h/2;let f;this.drawTitle(),s.textAlign=l.textAlign("left"),s.textBaseline="middle",s.lineWidth=.5,s.font=c.string;const{boxWidth:p,boxHeight:g,itemHeight:_}=vl(r,h),b=function(M,P,N){if(isNaN(p)||p<=0||isNaN(g)||g<0)return;s.save();const k=K(N.lineWidth,1);if(s.fillStyle=K(N.fillStyle,a),s.lineCap=K(N.lineCap,"butt"),s.lineDashOffset=K(N.lineDashOffset,0),s.lineJoin=K(N.lineJoin,"miter"),s.lineWidth=k,s.strokeStyle=K(N.strokeStyle,a),s.setLineDash(K(N.lineDash,[])),r.usePointStyle){const m={radius:g*Math.SQRT2/2,pointStyle:N.pointStyle,rotation:N.rotation,borderWidth:k},E=l.xPlus(M,p/2),I=P+d;Au(s,m,E,I,r.pointStyleWidth&&p)}else{const m=P+Math.max((h-g)/2,0),E=l.leftForLtr(M,p),I=Ie(N.borderRadius);s.beginPath(),Object.values(I).some(y=>y!==0)?jn(s,{x:E,y:m,w:p,h:g,radius:I}):s.rect(E,m,p,g),s.fill(),k!==0&&s.stroke()}s.restore()},v=function(M,P,N){He(s,N.text,M,P+_/2,c,{strikethrough:N.hidden,textAlign:l.textAlign(N.textAlign)})},w=this.isHorizontal(),x=this._computeTitleHeight();w?f={x:gt(o,this.left+u,this.right-i[0]),y:this.top+u+x,line:0}:f={x:this.left+u,y:gt(o,this.top+x+u,this.bottom-e[0].height),line:0},Lu(this.ctx,t.textDirection);const A=_+u;this.legendItems.forEach((M,P)=>{s.strokeStyle=M.fontColor,s.fillStyle=M.fontColor;const N=s.measureText(M.text).width,k=l.textAlign(M.textAlign||(M.textAlign=r.textAlign)),m=p+d+N;let E=f.x,I=f.y;l.setWidth(this.width),w?P>0&&E+m+u>this.right&&(I=f.y+=A,f.line++,E=f.x=gt(o,this.left+u,this.right-i[f.line])):P>0&&I+A>this.bottom&&(E=f.x=E+e[f.line].width+u,f.line++,I=f.y=gt(o,this.top+x+u,this.bottom-e[f.line].height));const y=l.x(E);if(b(y,I,M),E=_b(k,E+p+d,w?E+m:this.right,t.rtl),v(l.x(E),I,M),w)f.x+=m+u;else if(typeof M.text!="string"){const O=c.lineHeight;f.y+=ih(M,O)+u}else f.y+=A}),Pu(this.ctx,t.textDirection)}drawTitle(){const t=this.options,e=t.title,i=dt(e.font),s=_t(e.padding);if(!e.display)return;const o=Qe(t.rtl,this.left,this.width),r=this.ctx,a=e.position,l=i.size/2,c=s.top+l;let u,h=this.left,d=this.width;if(this.isHorizontal())d=Math.max(...this.lineWidths),u=this.top+c,h=gt(t.align,h,this.right-d);else{const p=this.columnSizes.reduce((g,_)=>Math.max(g,_.height),0);u=c+gt(t.align,this.top,this.bottom-p-t.labels.padding-this._computeTitleHeight())}const f=gt(a,h,h+d);r.textAlign=o.textAlign(sr(a)),r.textBaseline="middle",r.strokeStyle=e.color,r.fillStyle=e.color,r.font=i.string,He(r,e.text,f,u,i)}_computeTitleHeight(){const t=this.options.title,e=dt(t.font),i=_t(t.padding);return t.display?e.lineHeight+i.height:0}_getLegendItemAt(t,e){let i,s,o;if(te(t,this.left,this.right)&&te(e,this.top,this.bottom)){for(o=this.legendHitBoxes,i=0;io.length>r.length?o:r)),t+e.size/2+i.measureText(s).width}function Z0(n,t,e){let i=n;return typeof t.text!="string"&&(i=ih(t,e)),i}function ih(n,t){const e=n.text?n.text.length:0;return t*e}function Q0(n,t){return!!((n==="mousemove"||n==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(n==="click"||n==="mouseup"))}var tE={id:"legend",_element:El,start(n,t,e){const i=n.legend=new El({ctx:n.ctx,options:e,chart:n});mt.configure(n,i,e),mt.addBox(n,i)},stop(n){mt.removeBox(n,n.legend),delete n.legend},beforeUpdate(n,t,e){const i=n.legend;mt.configure(n,i,e),i.options=e},afterUpdate(n){const t=n.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(n,t){t.replay||n.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(n,t,e){const i=t.datasetIndex,s=e.chart;s.isDatasetVisible(i)?(s.hide(i),t.hidden=!0):(s.show(i),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:n=>n.chart.options.color,boxWidth:40,padding:10,generateLabels(n){const t=n.data.datasets,{labels:{usePointStyle:e,pointStyle:i,textAlign:s,color:o,useBorderRadius:r,borderRadius:a}}=n.legend.options;return n._getSortedDatasetMetas().map(l=>{const c=l.controller.getStyle(e?0:void 0),u=_t(c.borderWidth);return{text:t[l.index].label,fillStyle:c.backgroundColor,fontColor:o,hidden:!l.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(u.width+u.height)/4,strokeStyle:c.borderColor,pointStyle:i||c.pointStyle,rotation:c.rotation,textAlign:s||c.textAlign,borderRadius:r&&(a||c.borderRadius),datasetIndex:l.index}},this)}},title:{color:n=>n.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:n=>!n.startsWith("on"),labels:{_scriptable:n=>!["generateLabels","filter","sort"].includes(n)}}};class pr extends ae{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e){const i=this.options;if(this.left=0,this.top=0,!i.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=t,this.height=this.bottom=e;const s=ot(i.text)?i.text.length:1;this._padding=_t(i.padding);const o=s*dt(i.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){const t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){const{top:e,left:i,bottom:s,right:o,options:r}=this,a=r.align;let l=0,c,u,h;return this.isHorizontal()?(u=gt(a,i,o),h=e+t,c=o-i):(r.position==="left"?(u=i+t,h=gt(a,s,e),l=st*-.5):(u=o-t,h=gt(a,e,s),l=st*.5),c=s-e),{titleX:u,titleY:h,maxWidth:c,rotation:l}}draw(){const t=this.ctx,e=this.options;if(!e.display)return;const i=dt(e.font),o=i.lineHeight/2+this._padding.top,{titleX:r,titleY:a,maxWidth:l,rotation:c}=this._drawArgs(o);He(t,e.text,0,0,i,{color:e.color,maxWidth:l,rotation:c,textAlign:sr(e.align),textBaseline:"middle",translation:[r,a]})}}function eE(n,t){const e=new pr({ctx:n.ctx,options:t,chart:n});mt.configure(n,e,t),mt.addBox(n,e),n.titleBlock=e}var nE={id:"title",_element:pr,start(n,t,e){eE(n,e)},stop(n){const t=n.titleBlock;mt.removeBox(n,t),delete n.titleBlock},beforeUpdate(n,t,e){const i=n.titleBlock;mt.configure(n,i,e),i.options=e},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Ai=new WeakMap;var iE={id:"subtitle",start(n,t,e){const i=new pr({ctx:n.ctx,options:e,chart:n});mt.configure(n,i,e),mt.addBox(n,i),Ai.set(n,i)},stop(n){mt.removeBox(n,Ai.get(n)),Ai.delete(n)},beforeUpdate(n,t,e){const i=Ai.get(n);mt.configure(n,i,e),i.options=e},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const On={average(n){if(!n.length)return!1;let t,e,i=new Set,s=0,o=0;for(t=0,e=n.length;ta+l)/i.size,y:s/o}},nearest(n,t){if(!n.length)return!1;let e=t.x,i=t.y,s=Number.POSITIVE_INFINITY,o,r,a;for(o=0,r=n.length;o-1?n.split(` -`):n}function uE(n,t){const{element:e,datasetIndex:i,index:s}=t,o=n.getDatasetMeta(i).controller,{label:r,value:a}=o.getLabelAndValue(s);return{chart:n,label:r,parsed:o.getParsed(s),raw:n.data.datasets[i].data[s],formattedValue:a,dataset:o.getDataset(),dataIndex:s,datasetIndex:i,element:e}}function Sl(n,t){const e=n.chart.ctx,{body:i,footer:s,title:o}=n,{boxWidth:r,boxHeight:a}=t,l=dt(t.bodyFont),c=dt(t.titleFont),u=dt(t.footerFont),h=o.length,d=s.length,f=i.length,p=_t(t.padding);let g=p.height,_=0,b=i.reduce((x,A)=>x+A.before.length+A.lines.length+A.after.length,0);if(b+=n.beforeBody.length+n.afterBody.length,h&&(g+=h*c.lineHeight+(h-1)*t.titleSpacing+t.titleMarginBottom),b){const x=t.displayColors?Math.max(a,l.lineHeight):l.lineHeight;g+=f*x+(b-f)*l.lineHeight+(b-1)*t.bodySpacing}d&&(g+=t.footerMarginTop+d*u.lineHeight+(d-1)*t.footerSpacing);let v=0;const w=function(x){_=Math.max(_,e.measureText(x).width+v)};return e.save(),e.font=c.string,tt(n.title,w),e.font=l.string,tt(n.beforeBody.concat(n.afterBody),w),v=t.displayColors?r+2+t.boxPadding:0,tt(i,x=>{tt(x.before,w),tt(x.lines,w),tt(x.after,w)}),v=0,e.font=u.string,tt(n.footer,w),e.restore(),_+=p.width,{width:_,height:g}}function hE(n,t){const{y:e,height:i}=t;return en.height-i/2?"bottom":"center"}function dE(n,t,e,i){const{x:s,width:o}=i,r=e.caretSize+e.caretPadding;if(n==="left"&&s+o+r>t.width||n==="right"&&s-o-r<0)return!0}function fE(n,t,e,i){const{x:s,width:o}=e,{width:r,chartArea:{left:a,right:l}}=n;let c="center";return i==="center"?c=s<=(a+l)/2?"left":"right":s<=o/2?c="left":s>=r-o/2&&(c="right"),dE(c,n,t,e)&&(c="center"),c}function Cl(n,t,e){const i=e.yAlign||t.yAlign||hE(n,e);return{xAlign:e.xAlign||t.xAlign||fE(n,t,e,i),yAlign:i}}function pE(n,t){let{x:e,width:i}=n;return t==="right"?e-=i:t==="center"&&(e-=i/2),e}function gE(n,t,e){let{y:i,height:s}=n;return t==="top"?i+=e:t==="bottom"?i-=s+e:i-=s/2,i}function Tl(n,t,e,i){const{caretSize:s,caretPadding:o,cornerRadius:r}=n,{xAlign:a,yAlign:l}=e,c=s+o,{topLeft:u,topRight:h,bottomLeft:d,bottomRight:f}=Re(r);let p=pE(t,a);const g=gE(t,l,c);return l==="center"?a==="left"?p+=c:a==="right"&&(p-=c):a==="left"?p-=Math.max(u,d)+s:a==="right"&&(p+=Math.max(h,f)+s),{x:ft(p,0,i.width-t.width),y:ft(g,0,i.height-t.height)}}function wi(n,t,e){const i=_t(e.padding);return t==="center"?n.x+n.width/2:t==="right"?n.x+n.width-i.right:n.x+i.left}function Ol(n){return $t([],Xt(n))}function mE(n,t,e){return we(n,{tooltip:t,tooltipItems:e,type:"tooltip"})}function Dl(n,t){const e=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return e?n.override(e):n}const ah={beforeTitle:Kt,title(n){if(n.length>0){const t=n[0],e=t.chart.data.labels,i=e?e.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(i>0&&t.dataIndex"u"?ah[t].call(e,i):s}class So extends ae{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const e=this.chart,i=this.options.setContext(this.getContext()),s=i.enabled&&e.options.animation&&i.animations,o=new Hu(this.chart,s);return s._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=mE(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,e){const{callbacks:i}=e,s=vt(i,"beforeTitle",this,t),o=vt(i,"title",this,t),r=vt(i,"afterTitle",this,t);let a=[];return a=$t(a,Xt(s)),a=$t(a,Xt(o)),a=$t(a,Xt(r)),a}getBeforeBody(t,e){return Ol(vt(e.callbacks,"beforeBody",this,t))}getBody(t,e){const{callbacks:i}=e,s=[];return tt(t,o=>{const r={before:[],lines:[],after:[]},a=Dl(i,o);$t(r.before,Xt(vt(a,"beforeLabel",this,o))),$t(r.lines,vt(a,"label",this,o)),$t(r.after,Xt(vt(a,"afterLabel",this,o))),s.push(r)}),s}getAfterBody(t,e){return Ol(vt(e.callbacks,"afterBody",this,t))}getFooter(t,e){const{callbacks:i}=e,s=vt(i,"beforeFooter",this,t),o=vt(i,"footer",this,t),r=vt(i,"afterFooter",this,t);let a=[];return a=$t(a,Xt(s)),a=$t(a,Xt(o)),a=$t(a,Xt(r)),a}_createItems(t){const e=this._active,i=this.chart.data,s=[],o=[],r=[];let a=[],l,c;for(l=0,c=e.length;lt.filter(u,h,d,i))),t.itemSort&&(a=a.sort((u,h)=>t.itemSort(u,h,i))),tt(a,u=>{const h=Dl(t.callbacks,u);s.push(vt(h,"labelColor",this,u)),o.push(vt(h,"labelPointStyle",this,u)),r.push(vt(h,"labelTextColor",this,u))}),this.labelColors=s,this.labelPointStyles=o,this.labelTextColors=r,this.dataPoints=a,a}update(t,e){const i=this.options.setContext(this.getContext()),s=this._active;let o,r=[];if(!s.length)this.opacity!==0&&(o={opacity:0});else{const a=Tn[i.position].call(this,s,this._eventPosition);r=this._createItems(i),this.title=this.getTitle(r,i),this.beforeBody=this.getBeforeBody(r,i),this.body=this.getBody(r,i),this.afterBody=this.getAfterBody(r,i),this.footer=this.getFooter(r,i);const l=this._size=Sl(this,i),c=Object.assign({},a,l),u=Cl(this.chart,i,c),h=Tl(i,c,u,this.chart);this.xAlign=u.xAlign,this.yAlign=u.yAlign,o={opacity:1,x:h.x,y:h.y,width:l.width,height:l.height,caretX:a.x,caretY:a.y}}this._tooltipItems=r,this.$context=void 0,o&&this._resolveAnimations().update(this,o),t&&i.external&&i.external.call(this,{chart:this.chart,tooltip:this,replay:e})}drawCaret(t,e,i,s){const o=this.getCaretPosition(t,i,s);e.lineTo(o.x1,o.y1),e.lineTo(o.x2,o.y2),e.lineTo(o.x3,o.y3)}getCaretPosition(t,e,i){const{xAlign:s,yAlign:o}=this,{caretSize:r,cornerRadius:a}=i,{topLeft:l,topRight:c,bottomLeft:u,bottomRight:h}=Re(a),{x:d,y:f}=t,{width:p,height:g}=e;let _,b,v,w,x,A;return o==="center"?(x=f+g/2,s==="left"?(_=d,b=_-r,w=x+r,A=x-r):(_=d+p,b=_+r,w=x-r,A=x+r),v=_):(s==="left"?b=d+Math.max(l,u)+r:s==="right"?b=d+p-Math.max(c,h)-r:b=this.caretX,o==="top"?(w=f,x=w-r,_=b-r,v=b+r):(w=f+g,x=w+r,_=b+r,v=b-r),A=w),{x1:_,x2:b,x3:v,y1:w,y2:x,y3:A}}drawTitle(t,e,i){const s=this.title,o=s.length;let r,a,l;if(o){const c=Ze(i.rtl,this.x,this.width);for(t.x=wi(this,i.titleAlign,i),e.textAlign=c.textAlign(i.titleAlign),e.textBaseline="middle",r=dt(i.titleFont),a=i.titleSpacing,e.fillStyle=i.titleColor,e.font=r.string,l=0;lv!==0)?(t.beginPath(),t.fillStyle=o.multiKeyBackground,Vn(t,{x:g,y:p,w:c,h:l,radius:b}),t.fill(),t.stroke(),t.fillStyle=r.backgroundColor,t.beginPath(),Vn(t,{x:_,y:p+1,w:c-2,h:l-2,radius:b}),t.fill()):(t.fillStyle=o.multiKeyBackground,t.fillRect(g,p,c,l),t.strokeRect(g,p,c,l),t.fillStyle=r.backgroundColor,t.fillRect(_,p+1,c-2,l-2))}t.fillStyle=this.labelTextColors[i]}drawBody(t,e,i){const{body:s}=this,{bodySpacing:o,bodyAlign:r,displayColors:a,boxHeight:l,boxWidth:c,boxPadding:u}=i,h=dt(i.bodyFont);let d=h.lineHeight,f=0;const p=Ze(i.rtl,this.x,this.width),g=function(N){e.fillText(N,p.x(t.x+f),t.y+d/2),t.y+=d+o},_=p.textAlign(r);let b,v,w,x,A,M,P;for(e.textAlign=r,e.textBaseline="middle",e.font=h.string,t.x=wi(this,_,i),e.fillStyle=i.bodyColor,tt(this.beforeBody,g),f=a&&_!=="right"?r==="center"?c/2+u:c+2+u:0,x=0,M=s.length;x0&&e.stroke()}_updateAnimationTarget(t){const e=this.chart,i=this.$animations,s=i&&i.x,o=i&&i.y;if(s||o){const r=Tn[t.position].call(this,this._active,this._eventPosition);if(!r)return;const a=this._size=Sl(this,t),l=Object.assign({},r,this._size),c=Cl(e,t,l),u=Tl(t,l,c,e);(s._to!==u.x||o._to!==u.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=a.width,this.height=a.height,this.caretX=r.x,this.caretY=r.y,this._resolveAnimations().update(this,u))}}_willRender(){return!!this.opacity}draw(t){const e=this.options.setContext(this.getContext());let i=this.opacity;if(!i)return;this._updateAnimationTarget(e);const s={width:this.width,height:this.height},o={x:this.x,y:this.y};i=Math.abs(i)<.001?0:i;const r=_t(e.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;e.enabled&&a&&(t.save(),t.globalAlpha=i,this.drawBackground(o,t,s,e),Iu(t,e.textDirection),o.y+=r.top,this.drawTitle(o,t,e),this.drawBody(o,t,e),this.drawFooter(o,t,e),Nu(t,e.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){const i=this._active,s=t.map(({datasetIndex:a,index:l})=>{const c=this.chart.getDatasetMeta(a);if(!c)throw new Error("Cannot find a dataset at index "+a);return{datasetIndex:a,element:c.data[l],index:l}}),o=!Ui(i,s),r=this._positionChanged(s,e);(o||r)&&(this._active=s,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,e,i=!0){if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const s=this.options,o=this._active||[],r=this._getActiveElements(t,o,e,i),a=this._positionChanged(r,t),l=e||!Ui(r,o)||a;return l&&(this._active=r,(s.enabled||s.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),l}_getActiveElements(t,e,i,s){const o=this.options;if(t.type==="mouseout")return[];if(!s)return e.filter(a=>this.chart.data.datasets[a.datasetIndex]&&this.chart.getDatasetMeta(a.datasetIndex).controller.getParsed(a.index)!==void 0);const r=this.chart.getElementsAtEventForMode(t,o.mode,o,i);return o.reverse&&r.reverse(),r}_positionChanged(t,e){const{caretX:i,caretY:s,options:o}=this,r=Tn[o.position].call(this,t,e);return r!==!1&&(i!==r.x||s!==r.y)}}z(So,"positioners",Tn);var _E={id:"tooltip",_element:So,positioners:Tn,afterInit(n,t,e){e&&(n.tooltip=new So({chart:n,options:e}))},beforeUpdate(n,t,e){n.tooltip&&n.tooltip.initialize(e)},reset(n,t,e){n.tooltip&&n.tooltip.initialize(e)},afterDraw(n){const t=n.tooltip;if(t&&t._willRender()){const e={tooltip:t};if(n.notifyPlugins("beforeTooltipDraw",{...e,cancelable:!0})===!1)return;t.draw(n.ctx),n.notifyPlugins("afterTooltipDraw",e)}},afterEvent(n,t){if(n.tooltip){const e=t.replay;n.tooltip.handleEvent(t.event,e,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(n,t)=>t.bodyFont.size,boxWidth:(n,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:ah},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:n=>n!=="filter"&&n!=="itemSort"&&n!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},bE=Object.freeze({__proto__:null,Colors:M0,Decimation:R0,Filler:tE,Legend:rE,SubTitle:cE,Title:lE,Tooltip:_E});const yE=(n,t,e,i)=>(typeof t=="string"?(e=n.push(t)-1,i.unshift({index:e,label:t})):isNaN(t)&&(e=null),e);function vE(n,t,e,i){const s=n.indexOf(t);if(s===-1)return yE(n,t,e,i);const o=n.lastIndexOf(t);return s!==o?e:s}const EE=(n,t)=>n===null?null:ft(Math.round(n),0,t);function Ml(n){const t=this.getLabels();return n>=0&&ne.length-1?null:this.getPixelForValue(e[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}z(Co,"id","category"),z(Co,"defaults",{ticks:{callback:Ml}});function xE(n,t){const e=[],{bounds:s,step:o,min:r,max:a,precision:l,count:c,maxTicks:u,maxDigits:h,includeBounds:d}=n,f=o||1,p=u-1,{min:g,max:_}=t,b=!Q(r),v=!Q(a),w=!Q(c),x=(_-g)/(h+1);let A=Aa((_-g)/p/f)*f,M,P,N,k;if(A<1e-14&&!b&&!v)return[{value:g},{value:_}];k=Math.ceil(_/A)-Math.floor(g/A),k>p&&(A=Aa(k*A/p/f)*f),Q(l)||(M=Math.pow(10,l),A=Math.ceil(A*M)/M),s==="ticks"?(P=Math.floor(g/A)*A,N=Math.ceil(_/A)*A):(P=g,N=_),b&&v&&o&&mb((a-r)/o,A/1e3)?(k=Math.round(Math.min((a-r)/A,u)),A=(a-r)/k,P=r,N=a):w?(P=b?r:P,N=v?a:N,k=c-1,A=(N-P)/k):(k=(N-P)/A,Ln(k,Math.round(k),A/1e3)?k=Math.round(k):k=Math.ceil(k));const m=Math.max(Sa(A),Sa(P));M=Math.pow(10,Q(l)?m:l),P=Math.round(P*M)/M,N=Math.round(N*M)/M;let E=0;for(b&&(d&&P!==r?(e.push({value:r}),Pa)break;e.push({value:I})}return v&&d&&N!==a?e.length&&Ln(e[e.length-1].value,a,kl(a,x,n))?e[e.length-1].value=a:e.push({value:a}):(!v||N===a)&&e.push({value:N}),e}function kl(n,t,{horizontal:e,minRotation:i}){const s=It(i),o=(e?Math.sin(s):Math.cos(s))||.001,r=.75*t*(""+n).length;return Math.min(t/o,r)}class ts extends Ve{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,e){return Q(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:e,maxDefined:i}=this.getUserBounds();let{min:s,max:o}=this;const r=l=>s=e?s:l,a=l=>o=i?o:l;if(t){const l=jt(s),c=jt(o);l<0&&c<0?a(0):l>0&&c>0&&r(0)}if(s===o){let l=o===0?1:Math.abs(o*.05);a(o+l),t||r(s-l)}this.min=s,this.max=o}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:e,stepSize:i}=t,s;return i?(s=Math.ceil(this.max/i)-Math.floor(this.min/i)+1,s>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${i} would result generating up to ${s} ticks. Limiting to 1000.`),s=1e3)):(s=this.computeTickLimit(),e=e||11),e&&(s=Math.min(e,s)),s}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,e=t.ticks;let i=this.getTickLimit();i=Math.max(2,i);const s={maxTicks:i,bounds:t.bounds,min:t.min,max:t.max,precision:e.precision,step:e.stepSize,count:e.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:e.minRotation||0,includeBounds:e.includeBounds!==!1},o=this._range||this,r=xE(s,o);return t.bounds==="ticks"&&bu(r,this,"value"),t.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}configure(){const t=this.ticks;let e=this.min,i=this.max;if(super.configure(),this.options.offset&&t.length){const s=(i-e)/Math.max(t.length-1,1)/2;e-=s,i+=s}this._startValue=e,this._endValue=i,this._valueRange=i-e}getLabelForValue(t){return ti(t,this.chart.options.locale,this.options.ticks.format)}}class To extends ts{determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=rt(t)?t:0,this.max=rt(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),e=t?this.width:this.height,i=It(this.options.ticks.minRotation),s=(t?Math.sin(i):Math.cos(i))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,o.lineHeight/s))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}z(To,"id","linear"),z(To,"defaults",{ticks:{callback:ms.formatters.numeric}});const Wn=n=>Math.floor(he(n)),Te=(n,t)=>Math.pow(10,Wn(n)+t);function Ll(n){return n/Math.pow(10,Wn(n))===1}function Pl(n,t,e){const i=Math.pow(10,e),s=Math.floor(n/i);return Math.ceil(t/i)-s}function wE(n,t){const e=t-n;let i=Wn(e);for(;Pl(n,t,i)>10;)i++;for(;Pl(n,t,i)<10;)i--;return Math.min(i,Wn(n))}function AE(n,{min:t,max:e}){t=At(n.min,t);const i=[],s=Wn(t);let o=wE(t,e),r=o<0?Math.pow(10,Math.abs(o)):1;const a=Math.pow(10,o),l=s>o?Math.pow(10,s):0,c=Math.round((t-l)*r)/r,u=Math.floor((t-l)/a/10)*a*10;let h=Math.floor((c-u)/Math.pow(10,o)),d=At(n.min,Math.round((l+u+h*Math.pow(10,o))*r)/r);for(;d=10?h=h<15?15:20:h++,h>=20&&(o++,h=2,r=o>=0?1:r),d=Math.round((l+u+h*Math.pow(10,o))*r)/r;const f=At(n.max,d);return i.push({value:f,major:Ll(f),significand:h}),i}class Oo extends Ve{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,e){const i=ts.prototype.parse.apply(this,[t,e]);if(i===0){this._zero=!0;return}return rt(i)&&i>0?i:null}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=rt(t)?Math.max(0,t):null,this.max=rt(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!rt(this._userMin)&&(this.min=t===Te(this.min,0)?Te(this.min,-1):Te(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let i=this.min,s=this.max;const o=a=>i=t?i:a,r=a=>s=e?s:a;i===s&&(i<=0?(o(1),r(10)):(o(Te(i,-1)),r(Te(s,1)))),i<=0&&o(Te(s,-1)),s<=0&&r(Te(i,1)),this.min=i,this.max=s}buildTicks(){const t=this.options,e={min:this._userMin,max:this._userMax},i=AE(e,this);return t.bounds==="ticks"&&bu(i,this,"value"),t.reverse?(i.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),i}getLabelForValue(t){return t===void 0?"0":ti(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=he(t),this._valueRange=he(this.max)-he(t)}getPixelForValue(t){return(t===void 0||t===0)&&(t=this.min),t===null||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(he(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const e=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+e*this._valueRange)}}z(Oo,"id","logarithmic"),z(Oo,"defaults",{ticks:{callback:ms.formatters.logarithmic,major:{enabled:!0}}});function Do(n){const t=n.ticks;if(t.display&&n.display){const e=_t(t.backdropPadding);return K(t.font&&t.font.size,at.font.size)+e.height}return 0}function SE(n,t,e){return e=it(e)?e:[e],{w:Pb(n,t.string,e),h:e.length*t.lineHeight}}function Rl(n,t,e,i,s){return n===i||n===s?{start:t-e/2,end:t+e/2}:ns?{start:t-e,end:t}:{start:t,end:t+e}}function CE(n){const t={l:n.left+n._padding.left,r:n.right-n._padding.right,t:n.top+n._padding.top,b:n.bottom-n._padding.bottom},e=Object.assign({},t),i=[],s=[],o=n._pointLabels.length,r=n.options.pointLabels,a=r.centerPointLabels?ot/o:0;for(let l=0;lt.r&&(a=(i.end-t.r)/o,n.r=Math.max(n.r,t.r+a)),s.startt.b&&(l=(s.end-t.b)/r,n.b=Math.max(n.b,t.b+l))}function OE(n,t,e){const i=n.drawingArea,{extra:s,additionalAngle:o,padding:r,size:a}=e,l=n.getPointPosition(t,i+s+r,o),c=Math.round(or(St(l.angle+ct))),u=PE(l.y,a.h,c),h=kE(c),d=LE(l.x,a.w,h);return{visible:!0,x:l.x,y:u,textAlign:h,left:d,top:u,right:d+a.w,bottom:u+a.h}}function DE(n,t){if(!t)return!0;const{left:e,top:i,right:s,bottom:o}=n;return!(ee({x:e,y:i},t)||ee({x:e,y:o},t)||ee({x:s,y:i},t)||ee({x:s,y:o},t))}function ME(n,t,e){const i=[],s=n._pointLabels.length,o=n.options,{centerPointLabels:r,display:a}=o.pointLabels,l={extra:Do(o)/2,additionalAngle:r?ot/s:0};let c;for(let u=0;u270||e<90)&&(n-=t),n}function RE(n,t,e){const{left:i,top:s,right:o,bottom:r}=e,{backdropColor:a}=t;if(!Q(a)){const l=Re(t.borderRadius),c=_t(t.backdropPadding);n.fillStyle=a;const u=i-c.left,h=s-c.top,d=o-i+c.width,f=r-s+c.height;Object.values(l).some(p=>p!==0)?(n.beginPath(),Vn(n,{x:u,y:h,w:d,h:f,radius:l}),n.fill()):n.fillRect(u,h,d,f)}}function IE(n,t){const{ctx:e,options:{pointLabels:i}}=n;for(let s=t-1;s>=0;s--){const o=n._pointLabelItems[s];if(!o.visible)continue;const r=i.setContext(n.getPointLabelContext(s));RE(e,r,o);const a=dt(r.font),{x:l,y:c,textAlign:u}=o;Be(e,n._pointLabels[s],l,c+a.lineHeight/2,a,{color:r.color,textAlign:u,textBaseline:"middle"})}}function lh(n,t,e,i){const{ctx:s}=n;if(e)s.arc(n.xCenter,n.yCenter,t,0,st);else{let o=n.getPointPosition(0,t);s.moveTo(o.x,o.y);for(let r=1;r{const s=et(this.options.pointLabels.callback,[e,i],this);return s||s===0?s:""}).filter((e,i)=>this.chart.getDataVisibility(i))}fit(){const t=this.options;t.display&&t.pointLabels.display?CE(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,e,i,s){this.xCenter+=Math.floor((t-e)/2),this.yCenter+=Math.floor((i-s)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,e,i,s))}getIndexAngle(t){const e=st/(this._pointLabels.length||1),i=this.options.startAngle||0;return St(t*e+It(i))}getDistanceFromCenterForValue(t){if(Q(t))return NaN;const e=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*e:(t-this.min)*e}getValueForDistanceFromCenter(t){if(Q(t))return NaN;const e=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-e:this.min+e}getPointLabelContext(t){const e=this._pointLabels||[];if(t>=0&&t{if(h!==0||h===0&&this.min<0){l=this.getDistanceFromCenterForValue(u.value);const d=this.getContext(h),f=s.setContext(d),p=o.setContext(d);NE(this,f,l,r,p)}}),i.display){for(t.save(),a=r-1;a>=0;a--){const u=i.setContext(this.getPointLabelContext(a)),{color:h,lineWidth:d}=u;!d||!h||(t.lineWidth=d,t.strokeStyle=h,t.setLineDash(u.borderDash),t.lineDashOffset=u.borderDashOffset,l=this.getDistanceFromCenterForValue(e.ticks.reverse?this.min:this.max),c=this.getPointPosition(a,l),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(c.x,c.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,e=this.options,i=e.ticks;if(!i.display)return;const s=this.getIndexAngle(0);let o,r;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(s),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((a,l)=>{if(l===0&&this.min>=0&&!e.reverse)return;const c=i.setContext(this.getContext(l)),u=dt(c.font);if(o=this.getDistanceFromCenterForValue(this.ticks[l].value),c.showLabelBackdrop){t.font=u.string,r=t.measureText(a.label).width,t.fillStyle=c.backdropColor;const h=_t(c.backdropPadding);t.fillRect(-r/2-h.left,-o-u.size/2-h.top,r+h.width,u.size+h.height)}Be(t,a.label,0,-o,u,{color:c.color,strokeColor:c.textStrokeColor,strokeWidth:c.textStrokeWidth})}),t.restore()}drawTitle(){}}z(On,"id","radialLinear"),z(On,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:ms.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(t){return t},padding:5,centerPointLabels:!1}}),z(On,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),z(On,"descriptors",{angleLines:{_fallback:"grid"}});const vs={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},xt=Object.keys(vs);function Il(n,t){return n-t}function Nl(n,t){if(Q(t))return null;const e=n._adapter,{parser:i,round:s,isoWeekday:o}=n._parseOpts;let r=t;return typeof i=="function"&&(r=i(r)),rt(r)||(r=typeof i=="string"?e.parse(r,i):e.parse(r)),r===null?null:(s&&(r=s==="week"&&(ln(o)||o===!0)?e.startOf(r,"isoWeek",o):e.startOf(r,s)),+r)}function Fl(n,t,e,i){const s=xt.length;for(let o=xt.indexOf(n);o=xt.indexOf(e);o--){const r=xt[o];if(vs[r].common&&n._adapter.diff(s,i,r)>=t-1)return r}return xt[e?xt.indexOf(e):0]}function BE(n){for(let t=xt.indexOf(n)+1,e=xt.length;t=t?e[i]:e[s];n[o]=!0}}function HE(n,t,e,i){const s=n._adapter,o=+s.startOf(t[0].value,i),r=t[t.length-1].value;let a,l;for(a=o;a<=r;a=+s.add(a,1,i))l=e[a],l>=0&&(t[l].major=!0);return t}function Bl(n,t,e){const i=[],s={},o=t.length;let r,a;for(r=0;r+t.value))}initOffsets(t=[]){let e=0,i=0,s,o;this.options.offset&&t.length&&(s=this.getDecimalForValue(t[0]),t.length===1?e=1-s:e=(this.getDecimalForValue(t[1])-s)/2,o=this.getDecimalForValue(t[t.length-1]),t.length===1?i=o:i=(o-this.getDecimalForValue(t[t.length-2]))/2);const r=t.length<3?.5:.25;e=ft(e,0,r),i=ft(i,0,r),this._offsets={start:e,end:i,factor:1/(e+1+i)}}_generate(){const t=this._adapter,e=this.min,i=this.max,s=this.options,o=s.time,r=o.unit||Fl(o.minUnit,e,i,this._getLabelCapacity(e)),a=K(s.ticks.stepSize,1),l=r==="week"?o.isoWeekday:!1,c=ln(l)||l===!0,u={};let h=e,d,f;if(c&&(h=+t.startOf(h,"isoWeek",l)),h=+t.startOf(h,c?"day":r),t.diff(i,e,r)>1e5*a)throw new Error(e+" and "+i+" are too far apart with stepSize of "+a+" "+r);const p=s.ticks.source==="data"&&this.getDataTimestamps();for(d=h,f=0;d+g)}getLabelForValue(t){const e=this._adapter,i=this.options.time;return i.tooltipFormat?e.format(t,i.tooltipFormat):e.format(t,i.displayFormats.datetime)}format(t,e){const s=this.options.time.displayFormats,o=this._unit,r=e||s[o];return this._adapter.format(t,r)}_tickFormatFunction(t,e,i,s){const o=this.options,r=o.ticks.callback;if(r)return et(r,[t,e,i],this);const a=o.time.displayFormats,l=this._unit,c=this._majorUnit,u=l&&a[l],h=c&&a[c],d=i[e],f=c&&h&&d&&d.major;return this._adapter.format(t,s||(f?h:u))}generateTickLabels(t){let e,i,s;for(e=0,i=t.length;e0?a:1}getDataTimestamps(){let t=this._cache.data||[],e,i;if(t.length)return t;const s=this.getMatchingVisibleMetas();if(this._normalized&&s.length)return this._cache.data=s[0].controller.getAllParsedValues(this);for(e=0,i=s.length;e=n[i].pos&&t<=n[s].pos&&({lo:i,hi:s}=te(n,"pos",t)),{pos:o,time:a}=n[i],{pos:r,time:l}=n[s]):(t>=n[i].time&&t<=n[s].time&&({lo:i,hi:s}=te(n,"time",t)),{time:o,pos:a}=n[i],{time:r,pos:l}=n[s]);const c=r-o;return c?a+(l-a)*(t-o)/c:a}class Mo extends qn{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),e=this._table=this.buildLookupTable(t);this._minPos=Ai(e,this.min),this._tableRange=Ai(e,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:e,max:i}=this,s=[],o=[];let r,a,l,c,u;for(r=0,a=t.length;r=e&&c<=i&&s.push(c);if(s.length<2)return[{time:e,pos:0},{time:i,pos:1}];for(r=0,a=s.length;rs-o)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const e=this.getDataTimestamps(),i=this.getLabelTimestamps();return e.length&&i.length?t=this.normalize(e.concat(i)):t=e.length?e:i,t=this._cache.all=t,t}getDecimalForValue(t){return(Ai(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const e=this._offsets,i=this.getDecimalForPixel(t)/e.factor-e.end;return Ai(this._table,i*this._tableRange+this._minPos,!0)}}z(Mo,"id","timeseries"),z(Mo,"defaults",qn.defaults);var zE=Object.freeze({__proto__:null,CategoryScale:Co,LinearScale:To,LogarithmicScale:Oo,RadialLinearScale:On,TimeScale:qn,TimeSeriesScale:Mo});const VE=[Ky,A0,bE,zE];Zt.register(...VE);window.bootbox=k_;P_();window.dayjs=I_;window.toastr=F_;window.Chart=Zt; +`):n}function sE(n,t){const{element:e,datasetIndex:i,index:s}=t,o=n.getDatasetMeta(i).controller,{label:r,value:a}=o.getLabelAndValue(s);return{chart:n,label:r,parsed:o.getParsed(s),raw:n.data.datasets[i].data[s],formattedValue:a,dataset:o.getDataset(),dataIndex:s,datasetIndex:i,element:e}}function xl(n,t){const e=n.chart.ctx,{body:i,footer:s,title:o}=n,{boxWidth:r,boxHeight:a}=t,l=dt(t.bodyFont),c=dt(t.titleFont),u=dt(t.footerFont),h=o.length,d=s.length,f=i.length,p=_t(t.padding);let g=p.height,_=0,b=i.reduce((x,A)=>x+A.before.length+A.lines.length+A.after.length,0);if(b+=n.beforeBody.length+n.afterBody.length,h&&(g+=h*c.lineHeight+(h-1)*t.titleSpacing+t.titleMarginBottom),b){const x=t.displayColors?Math.max(a,l.lineHeight):l.lineHeight;g+=f*x+(b-f)*l.lineHeight+(b-1)*t.bodySpacing}d&&(g+=t.footerMarginTop+d*u.lineHeight+(d-1)*t.footerSpacing);let v=0;const w=function(x){_=Math.max(_,e.measureText(x).width+v)};return e.save(),e.font=c.string,tt(n.title,w),e.font=l.string,tt(n.beforeBody.concat(n.afterBody),w),v=t.displayColors?r+2+t.boxPadding:0,tt(i,x=>{tt(x.before,w),tt(x.lines,w),tt(x.after,w)}),v=0,e.font=u.string,tt(n.footer,w),e.restore(),_+=p.width,{width:_,height:g}}function oE(n,t){const{y:e,height:i}=t;return en.height-i/2?"bottom":"center"}function rE(n,t,e,i){const{x:s,width:o}=i,r=e.caretSize+e.caretPadding;if(n==="left"&&s+o+r>t.width||n==="right"&&s-o-r<0)return!0}function aE(n,t,e,i){const{x:s,width:o}=e,{width:r,chartArea:{left:a,right:l}}=n;let c="center";return i==="center"?c=s<=(a+l)/2?"left":"right":s<=o/2?c="left":s>=r-o/2&&(c="right"),rE(c,n,t,e)&&(c="center"),c}function wl(n,t,e){const i=e.yAlign||t.yAlign||oE(n,e);return{xAlign:e.xAlign||t.xAlign||aE(n,t,e,i),yAlign:i}}function lE(n,t){let{x:e,width:i}=n;return t==="right"?e-=i:t==="center"&&(e-=i/2),e}function cE(n,t,e){let{y:i,height:s}=n;return t==="top"?i+=e:t==="bottom"?i-=s+e:i-=s/2,i}function Al(n,t,e,i){const{caretSize:s,caretPadding:o,cornerRadius:r}=n,{xAlign:a,yAlign:l}=e,c=s+o,{topLeft:u,topRight:h,bottomLeft:d,bottomRight:f}=Ie(r);let p=lE(t,a);const g=cE(t,l,c);return l==="center"?a==="left"?p+=c:a==="right"&&(p-=c):a==="left"?p-=Math.max(u,d)+s:a==="right"&&(p+=Math.max(h,f)+s),{x:ft(p,0,i.width-t.width),y:ft(g,0,i.height-t.height)}}function Si(n,t,e){const i=_t(e.padding);return t==="center"?n.x+n.width/2:t==="right"?n.x+n.width-i.right:n.x+i.left}function Sl(n){return Bt([],Jt(n))}function uE(n,t,e){return we(n,{tooltip:t,tooltipItems:e,type:"tooltip"})}function Cl(n,t){const e=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return e?n.override(e):n}const sh={beforeTitle:Gt,title(n){if(n.length>0){const t=n[0],e=t.chart.data.labels,i=e?e.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(i>0&&t.dataIndex"u"?sh[t].call(e,i):s}class Ao extends ae{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const e=this.chart,i=this.options.setContext(this.getContext()),s=i.enabled&&e.options.animation&&i.animations,o=new Fu(this.chart,s);return s._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=uE(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,e){const{callbacks:i}=e,s=vt(i,"beforeTitle",this,t),o=vt(i,"title",this,t),r=vt(i,"afterTitle",this,t);let a=[];return a=Bt(a,Jt(s)),a=Bt(a,Jt(o)),a=Bt(a,Jt(r)),a}getBeforeBody(t,e){return Sl(vt(e.callbacks,"beforeBody",this,t))}getBody(t,e){const{callbacks:i}=e,s=[];return tt(t,o=>{const r={before:[],lines:[],after:[]},a=Cl(i,o);Bt(r.before,Jt(vt(a,"beforeLabel",this,o))),Bt(r.lines,vt(a,"label",this,o)),Bt(r.after,Jt(vt(a,"afterLabel",this,o))),s.push(r)}),s}getAfterBody(t,e){return Sl(vt(e.callbacks,"afterBody",this,t))}getFooter(t,e){const{callbacks:i}=e,s=vt(i,"beforeFooter",this,t),o=vt(i,"footer",this,t),r=vt(i,"afterFooter",this,t);let a=[];return a=Bt(a,Jt(s)),a=Bt(a,Jt(o)),a=Bt(a,Jt(r)),a}_createItems(t){const e=this._active,i=this.chart.data,s=[],o=[],r=[];let a=[],l,c;for(l=0,c=e.length;lt.filter(u,h,d,i))),t.itemSort&&(a=a.sort((u,h)=>t.itemSort(u,h,i))),tt(a,u=>{const h=Cl(t.callbacks,u);s.push(vt(h,"labelColor",this,u)),o.push(vt(h,"labelPointStyle",this,u)),r.push(vt(h,"labelTextColor",this,u))}),this.labelColors=s,this.labelPointStyles=o,this.labelTextColors=r,this.dataPoints=a,a}update(t,e){const i=this.options.setContext(this.getContext()),s=this._active;let o,r=[];if(!s.length)this.opacity!==0&&(o={opacity:0});else{const a=On[i.position].call(this,s,this._eventPosition);r=this._createItems(i),this.title=this.getTitle(r,i),this.beforeBody=this.getBeforeBody(r,i),this.body=this.getBody(r,i),this.afterBody=this.getAfterBody(r,i),this.footer=this.getFooter(r,i);const l=this._size=xl(this,i),c=Object.assign({},a,l),u=wl(this.chart,i,c),h=Al(i,c,u,this.chart);this.xAlign=u.xAlign,this.yAlign=u.yAlign,o={opacity:1,x:h.x,y:h.y,width:l.width,height:l.height,caretX:a.x,caretY:a.y}}this._tooltipItems=r,this.$context=void 0,o&&this._resolveAnimations().update(this,o),t&&i.external&&i.external.call(this,{chart:this.chart,tooltip:this,replay:e})}drawCaret(t,e,i,s){const o=this.getCaretPosition(t,i,s);e.lineTo(o.x1,o.y1),e.lineTo(o.x2,o.y2),e.lineTo(o.x3,o.y3)}getCaretPosition(t,e,i){const{xAlign:s,yAlign:o}=this,{caretSize:r,cornerRadius:a}=i,{topLeft:l,topRight:c,bottomLeft:u,bottomRight:h}=Ie(a),{x:d,y:f}=t,{width:p,height:g}=e;let _,b,v,w,x,A;return o==="center"?(x=f+g/2,s==="left"?(_=d,b=_-r,w=x+r,A=x-r):(_=d+p,b=_+r,w=x-r,A=x+r),v=_):(s==="left"?b=d+Math.max(l,u)+r:s==="right"?b=d+p-Math.max(c,h)-r:b=this.caretX,o==="top"?(w=f,x=w-r,_=b-r,v=b+r):(w=f+g,x=w+r,_=b+r,v=b-r),A=w),{x1:_,x2:b,x3:v,y1:w,y2:x,y3:A}}drawTitle(t,e,i){const s=this.title,o=s.length;let r,a,l;if(o){const c=Qe(i.rtl,this.x,this.width);for(t.x=Si(this,i.titleAlign,i),e.textAlign=c.textAlign(i.titleAlign),e.textBaseline="middle",r=dt(i.titleFont),a=i.titleSpacing,e.fillStyle=i.titleColor,e.font=r.string,l=0;lv!==0)?(t.beginPath(),t.fillStyle=o.multiKeyBackground,jn(t,{x:g,y:p,w:c,h:l,radius:b}),t.fill(),t.stroke(),t.fillStyle=r.backgroundColor,t.beginPath(),jn(t,{x:_,y:p+1,w:c-2,h:l-2,radius:b}),t.fill()):(t.fillStyle=o.multiKeyBackground,t.fillRect(g,p,c,l),t.strokeRect(g,p,c,l),t.fillStyle=r.backgroundColor,t.fillRect(_,p+1,c-2,l-2))}t.fillStyle=this.labelTextColors[i]}drawBody(t,e,i){const{body:s}=this,{bodySpacing:o,bodyAlign:r,displayColors:a,boxHeight:l,boxWidth:c,boxPadding:u}=i,h=dt(i.bodyFont);let d=h.lineHeight,f=0;const p=Qe(i.rtl,this.x,this.width),g=function(N){e.fillText(N,p.x(t.x+f),t.y+d/2),t.y+=d+o},_=p.textAlign(r);let b,v,w,x,A,M,P;for(e.textAlign=r,e.textBaseline="middle",e.font=h.string,t.x=Si(this,_,i),e.fillStyle=i.bodyColor,tt(this.beforeBody,g),f=a&&_!=="right"?r==="center"?c/2+u:c+2+u:0,x=0,M=s.length;x0&&e.stroke()}_updateAnimationTarget(t){const e=this.chart,i=this.$animations,s=i&&i.x,o=i&&i.y;if(s||o){const r=On[t.position].call(this,this._active,this._eventPosition);if(!r)return;const a=this._size=xl(this,t),l=Object.assign({},r,this._size),c=wl(e,t,l),u=Al(t,l,c,e);(s._to!==u.x||o._to!==u.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=a.width,this.height=a.height,this.caretX=r.x,this.caretY=r.y,this._resolveAnimations().update(this,u))}}_willRender(){return!!this.opacity}draw(t){const e=this.options.setContext(this.getContext());let i=this.opacity;if(!i)return;this._updateAnimationTarget(e);const s={width:this.width,height:this.height},o={x:this.x,y:this.y};i=Math.abs(i)<.001?0:i;const r=_t(e.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;e.enabled&&a&&(t.save(),t.globalAlpha=i,this.drawBackground(o,t,s,e),Lu(t,e.textDirection),o.y+=r.top,this.drawTitle(o,t,e),this.drawBody(o,t,e),this.drawFooter(o,t,e),Pu(t,e.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){const i=this._active,s=t.map(({datasetIndex:a,index:l})=>{const c=this.chart.getDatasetMeta(a);if(!c)throw new Error("Cannot find a dataset at index "+a);return{datasetIndex:a,element:c.data[l],index:l}}),o=!Ui(i,s),r=this._positionChanged(s,e);(o||r)&&(this._active=s,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,e,i=!0){if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const s=this.options,o=this._active||[],r=this._getActiveElements(t,o,e,i),a=this._positionChanged(r,t),l=e||!Ui(r,o)||a;return l&&(this._active=r,(s.enabled||s.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),l}_getActiveElements(t,e,i,s){const o=this.options;if(t.type==="mouseout")return[];if(!s)return e.filter(a=>this.chart.data.datasets[a.datasetIndex]&&this.chart.getDatasetMeta(a.datasetIndex).controller.getParsed(a.index)!==void 0);const r=this.chart.getElementsAtEventForMode(t,o.mode,o,i);return o.reverse&&r.reverse(),r}_positionChanged(t,e){const{caretX:i,caretY:s,options:o}=this,r=On[o.position].call(this,t,e);return r!==!1&&(i!==r.x||s!==r.y)}}z(Ao,"positioners",On);var hE={id:"tooltip",_element:Ao,positioners:On,afterInit(n,t,e){e&&(n.tooltip=new Ao({chart:n,options:e}))},beforeUpdate(n,t,e){n.tooltip&&n.tooltip.initialize(e)},reset(n,t,e){n.tooltip&&n.tooltip.initialize(e)},afterDraw(n){const t=n.tooltip;if(t&&t._willRender()){const e={tooltip:t};if(n.notifyPlugins("beforeTooltipDraw",{...e,cancelable:!0})===!1)return;t.draw(n.ctx),n.notifyPlugins("afterTooltipDraw",e)}},afterEvent(n,t){if(n.tooltip){const e=t.replay;n.tooltip.handleEvent(t.event,e,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(n,t)=>t.bodyFont.size,boxWidth:(n,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:sh},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:n=>n!=="filter"&&n!=="itemSort"&&n!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},dE=Object.freeze({__proto__:null,Colors:A0,Decimation:O0,Filler:K0,Legend:tE,SubTitle:iE,Title:nE,Tooltip:hE});const fE=(n,t,e,i)=>(typeof t=="string"?(e=n.push(t)-1,i.unshift({index:e,label:t})):isNaN(t)&&(e=null),e);function pE(n,t,e,i){const s=n.indexOf(t);if(s===-1)return fE(n,t,e,i);const o=n.lastIndexOf(t);return s!==o?e:s}const gE=(n,t)=>n===null?null:ft(Math.round(n),0,t);function Tl(n){const t=this.getLabels();return n>=0&&ne.length-1?null:this.getPixelForValue(e[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}z(So,"id","category"),z(So,"defaults",{ticks:{callback:Tl}});function mE(n,t){const e=[],{bounds:s,step:o,min:r,max:a,precision:l,count:c,maxTicks:u,maxDigits:h,includeBounds:d}=n,f=o||1,p=u-1,{min:g,max:_}=t,b=!Q(r),v=!Q(a),w=!Q(c),x=(_-g)/(h+1);let A=Ea((_-g)/p/f)*f,M,P,N,k;if(A<1e-14&&!b&&!v)return[{value:g},{value:_}];k=Math.ceil(_/A)-Math.floor(g/A),k>p&&(A=Ea(k*A/p/f)*f),Q(l)||(M=Math.pow(10,l),A=Math.ceil(A*M)/M),s==="ticks"?(P=Math.floor(g/A)*A,N=Math.ceil(_/A)*A):(P=g,N=_),b&&v&&o&&ub((a-r)/o,A/1e3)?(k=Math.round(Math.min((a-r)/A,u)),A=(a-r)/k,P=r,N=a):w?(P=b?r:P,N=v?a:N,k=c-1,A=(N-P)/k):(k=(N-P)/A,Pn(k,Math.round(k),A/1e3)?k=Math.round(k):k=Math.ceil(k));const m=Math.max(xa(A),xa(P));M=Math.pow(10,Q(l)?m:l),P=Math.round(P*M)/M,N=Math.round(N*M)/M;let E=0;for(b&&(d&&P!==r?(e.push({value:r}),Pa)break;e.push({value:I})}return v&&d&&N!==a?e.length&&Pn(e[e.length-1].value,a,Ol(a,x,n))?e[e.length-1].value=a:e.push({value:a}):(!v||N===a)&&e.push({value:N}),e}function Ol(n,t,{horizontal:e,minRotation:i}){const s=Nt(i),o=(e?Math.sin(s):Math.cos(s))||.001,r=.75*t*(""+n).length;return Math.min(t/o,r)}class ts extends je{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,e){return Q(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:e,maxDefined:i}=this.getUserBounds();let{min:s,max:o}=this;const r=l=>s=e?s:l,a=l=>o=i?o:l;if(t){const l=Wt(s),c=Wt(o);l<0&&c<0?a(0):l>0&&c>0&&r(0)}if(s===o){let l=o===0?1:Math.abs(o*.05);a(o+l),t||r(s-l)}this.min=s,this.max=o}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:e,stepSize:i}=t,s;return i?(s=Math.ceil(this.max/i)-Math.floor(this.min/i)+1,s>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${i} would result generating up to ${s} ticks. Limiting to 1000.`),s=1e3)):(s=this.computeTickLimit(),e=e||11),e&&(s=Math.min(e,s)),s}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,e=t.ticks;let i=this.getTickLimit();i=Math.max(2,i);const s={maxTicks:i,bounds:t.bounds,min:t.min,max:t.max,precision:e.precision,step:e.stepSize,count:e.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:e.minRotation||0,includeBounds:e.includeBounds!==!1},o=this._range||this,r=mE(s,o);return t.bounds==="ticks"&&gu(r,this,"value"),t.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}configure(){const t=this.ticks;let e=this.min,i=this.max;if(super.configure(),this.options.offset&&t.length){const s=(i-e)/Math.max(t.length-1,1)/2;e-=s,i+=s}this._startValue=e,this._endValue=i,this._valueRange=i-e}getLabelForValue(t){return ni(t,this.chart.options.locale,this.options.ticks.format)}}class Co extends ts{determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=rt(t)?t:0,this.max=rt(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),e=t?this.width:this.height,i=Nt(this.options.ticks.minRotation),s=(t?Math.sin(i):Math.cos(i))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,o.lineHeight/s))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}z(Co,"id","linear"),z(Co,"defaults",{ticks:{callback:gs.formatters.numeric}});const qn=n=>Math.floor(he(n)),Te=(n,t)=>Math.pow(10,qn(n)+t);function Dl(n){return n/Math.pow(10,qn(n))===1}function Ml(n,t,e){const i=Math.pow(10,e),s=Math.floor(n/i);return Math.ceil(t/i)-s}function _E(n,t){const e=t-n;let i=qn(e);for(;Ml(n,t,i)>10;)i++;for(;Ml(n,t,i)<10;)i--;return Math.min(i,qn(n))}function bE(n,{min:t,max:e}){t=At(n.min,t);const i=[],s=qn(t);let o=_E(t,e),r=o<0?Math.pow(10,Math.abs(o)):1;const a=Math.pow(10,o),l=s>o?Math.pow(10,s):0,c=Math.round((t-l)*r)/r,u=Math.floor((t-l)/a/10)*a*10;let h=Math.floor((c-u)/Math.pow(10,o)),d=At(n.min,Math.round((l+u+h*Math.pow(10,o))*r)/r);for(;d=10?h=h<15?15:20:h++,h>=20&&(o++,h=2,r=o>=0?1:r),d=Math.round((l+u+h*Math.pow(10,o))*r)/r;const f=At(n.max,d);return i.push({value:f,major:Dl(f),significand:h}),i}class To extends je{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,e){const i=ts.prototype.parse.apply(this,[t,e]);if(i===0){this._zero=!0;return}return rt(i)&&i>0?i:null}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=rt(t)?Math.max(0,t):null,this.max=rt(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!rt(this._userMin)&&(this.min=t===Te(this.min,0)?Te(this.min,-1):Te(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let i=this.min,s=this.max;const o=a=>i=t?i:a,r=a=>s=e?s:a;i===s&&(i<=0?(o(1),r(10)):(o(Te(i,-1)),r(Te(s,1)))),i<=0&&o(Te(s,-1)),s<=0&&r(Te(i,1)),this.min=i,this.max=s}buildTicks(){const t=this.options,e={min:this._userMin,max:this._userMax},i=bE(e,this);return t.bounds==="ticks"&&gu(i,this,"value"),t.reverse?(i.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),i}getLabelForValue(t){return t===void 0?"0":ni(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=he(t),this._valueRange=he(this.max)-he(t)}getPixelForValue(t){return(t===void 0||t===0)&&(t=this.min),t===null||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(he(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const e=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+e*this._valueRange)}}z(To,"id","logarithmic"),z(To,"defaults",{ticks:{callback:gs.formatters.logarithmic,major:{enabled:!0}}});function Oo(n){const t=n.ticks;if(t.display&&n.display){const e=_t(t.backdropPadding);return K(t.font&&t.font.size,at.font.size)+e.height}return 0}function yE(n,t,e){return e=ot(e)?e:[e],{w:Tb(n,t.string,e),h:e.length*t.lineHeight}}function kl(n,t,e,i,s){return n===i||n===s?{start:t-e/2,end:t+e/2}:ns?{start:t-e,end:t}:{start:t,end:t+e}}function vE(n){const t={l:n.left+n._padding.left,r:n.right-n._padding.right,t:n.top+n._padding.top,b:n.bottom-n._padding.bottom},e=Object.assign({},t),i=[],s=[],o=n._pointLabels.length,r=n.options.pointLabels,a=r.centerPointLabels?st/o:0;for(let l=0;lt.r&&(a=(i.end-t.r)/o,n.r=Math.max(n.r,t.r+a)),s.startt.b&&(l=(s.end-t.b)/r,n.b=Math.max(n.b,t.b+l))}function xE(n,t,e){const i=n.drawingArea,{extra:s,additionalAngle:o,padding:r,size:a}=e,l=n.getPointPosition(t,i+s+r,o),c=Math.round(nr(St(l.angle+ct))),u=TE(l.y,a.h,c),h=SE(c),d=CE(l.x,a.w,h);return{visible:!0,x:l.x,y:u,textAlign:h,left:d,top:u,right:d+a.w,bottom:u+a.h}}function wE(n,t){if(!t)return!0;const{left:e,top:i,right:s,bottom:o}=n;return!(ne({x:e,y:i},t)||ne({x:e,y:o},t)||ne({x:s,y:i},t)||ne({x:s,y:o},t))}function AE(n,t,e){const i=[],s=n._pointLabels.length,o=n.options,{centerPointLabels:r,display:a}=o.pointLabels,l={extra:Oo(o)/2,additionalAngle:r?st/s:0};let c;for(let u=0;u270||e<90)&&(n-=t),n}function OE(n,t,e){const{left:i,top:s,right:o,bottom:r}=e,{backdropColor:a}=t;if(!Q(a)){const l=Ie(t.borderRadius),c=_t(t.backdropPadding);n.fillStyle=a;const u=i-c.left,h=s-c.top,d=o-i+c.width,f=r-s+c.height;Object.values(l).some(p=>p!==0)?(n.beginPath(),jn(n,{x:u,y:h,w:d,h:f,radius:l}),n.fill()):n.fillRect(u,h,d,f)}}function DE(n,t){const{ctx:e,options:{pointLabels:i}}=n;for(let s=t-1;s>=0;s--){const o=n._pointLabelItems[s];if(!o.visible)continue;const r=i.setContext(n.getPointLabelContext(s));OE(e,r,o);const a=dt(r.font),{x:l,y:c,textAlign:u}=o;He(e,n._pointLabels[s],l,c+a.lineHeight/2,a,{color:r.color,textAlign:u,textBaseline:"middle"})}}function oh(n,t,e,i){const{ctx:s}=n;if(e)s.arc(n.xCenter,n.yCenter,t,0,it);else{let o=n.getPointPosition(0,t);s.moveTo(o.x,o.y);for(let r=1;r{const s=et(this.options.pointLabels.callback,[e,i],this);return s||s===0?s:""}).filter((e,i)=>this.chart.getDataVisibility(i))}fit(){const t=this.options;t.display&&t.pointLabels.display?vE(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,e,i,s){this.xCenter+=Math.floor((t-e)/2),this.yCenter+=Math.floor((i-s)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,e,i,s))}getIndexAngle(t){const e=it/(this._pointLabels.length||1),i=this.options.startAngle||0;return St(t*e+Nt(i))}getDistanceFromCenterForValue(t){if(Q(t))return NaN;const e=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*e:(t-this.min)*e}getValueForDistanceFromCenter(t){if(Q(t))return NaN;const e=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-e:this.min+e}getPointLabelContext(t){const e=this._pointLabels||[];if(t>=0&&t{if(h!==0||h===0&&this.min<0){l=this.getDistanceFromCenterForValue(u.value);const d=this.getContext(h),f=s.setContext(d),p=o.setContext(d);ME(this,f,l,r,p)}}),i.display){for(t.save(),a=r-1;a>=0;a--){const u=i.setContext(this.getPointLabelContext(a)),{color:h,lineWidth:d}=u;!d||!h||(t.lineWidth=d,t.strokeStyle=h,t.setLineDash(u.borderDash),t.lineDashOffset=u.borderDashOffset,l=this.getDistanceFromCenterForValue(e.ticks.reverse?this.min:this.max),c=this.getPointPosition(a,l),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(c.x,c.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,e=this.options,i=e.ticks;if(!i.display)return;const s=this.getIndexAngle(0);let o,r;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(s),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((a,l)=>{if(l===0&&this.min>=0&&!e.reverse)return;const c=i.setContext(this.getContext(l)),u=dt(c.font);if(o=this.getDistanceFromCenterForValue(this.ticks[l].value),c.showLabelBackdrop){t.font=u.string,r=t.measureText(a.label).width,t.fillStyle=c.backdropColor;const h=_t(c.backdropPadding);t.fillRect(-r/2-h.left,-o-u.size/2-h.top,r+h.width,u.size+h.height)}He(t,a.label,0,-o,u,{color:c.color,strokeColor:c.textStrokeColor,strokeWidth:c.textStrokeWidth})}),t.restore()}drawTitle(){}}z(Dn,"id","radialLinear"),z(Dn,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:gs.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(t){return t},padding:5,centerPointLabels:!1}}),z(Dn,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),z(Dn,"descriptors",{angleLines:{_fallback:"grid"}});const ys={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},xt=Object.keys(ys);function Ll(n,t){return n-t}function Pl(n,t){if(Q(t))return null;const e=n._adapter,{parser:i,round:s,isoWeekday:o}=n._parseOpts;let r=t;return typeof i=="function"&&(r=i(r)),rt(r)||(r=typeof i=="string"?e.parse(r,i):e.parse(r)),r===null?null:(s&&(r=s==="week"&&(cn(o)||o===!0)?e.startOf(r,"isoWeek",o):e.startOf(r,s)),+r)}function Rl(n,t,e,i){const s=xt.length;for(let o=xt.indexOf(n);o=xt.indexOf(e);o--){const r=xt[o];if(ys[r].common&&n._adapter.diff(s,i,r)>=t-1)return r}return xt[e?xt.indexOf(e):0]}function PE(n){for(let t=xt.indexOf(n)+1,e=xt.length;t=t?e[i]:e[s];n[o]=!0}}function RE(n,t,e,i){const s=n._adapter,o=+s.startOf(t[0].value,i),r=t[t.length-1].value;let a,l;for(a=o;a<=r;a=+s.add(a,1,i))l=e[a],l>=0&&(t[l].major=!0);return t}function Nl(n,t,e){const i=[],s={},o=t.length;let r,a;for(r=0;r+t.value))}initOffsets(t=[]){let e=0,i=0,s,o;this.options.offset&&t.length&&(s=this.getDecimalForValue(t[0]),t.length===1?e=1-s:e=(this.getDecimalForValue(t[1])-s)/2,o=this.getDecimalForValue(t[t.length-1]),t.length===1?i=o:i=(o-this.getDecimalForValue(t[t.length-2]))/2);const r=t.length<3?.5:.25;e=ft(e,0,r),i=ft(i,0,r),this._offsets={start:e,end:i,factor:1/(e+1+i)}}_generate(){const t=this._adapter,e=this.min,i=this.max,s=this.options,o=s.time,r=o.unit||Rl(o.minUnit,e,i,this._getLabelCapacity(e)),a=K(s.ticks.stepSize,1),l=r==="week"?o.isoWeekday:!1,c=cn(l)||l===!0,u={};let h=e,d,f;if(c&&(h=+t.startOf(h,"isoWeek",l)),h=+t.startOf(h,c?"day":r),t.diff(i,e,r)>1e5*a)throw new Error(e+" and "+i+" are too far apart with stepSize of "+a+" "+r);const p=s.ticks.source==="data"&&this.getDataTimestamps();for(d=h,f=0;d+g)}getLabelForValue(t){const e=this._adapter,i=this.options.time;return i.tooltipFormat?e.format(t,i.tooltipFormat):e.format(t,i.displayFormats.datetime)}format(t,e){const s=this.options.time.displayFormats,o=this._unit,r=e||s[o];return this._adapter.format(t,r)}_tickFormatFunction(t,e,i,s){const o=this.options,r=o.ticks.callback;if(r)return et(r,[t,e,i],this);const a=o.time.displayFormats,l=this._unit,c=this._majorUnit,u=l&&a[l],h=c&&a[c],d=i[e],f=c&&h&&d&&d.major;return this._adapter.format(t,s||(f?h:u))}generateTickLabels(t){let e,i,s;for(e=0,i=t.length;e0?a:1}getDataTimestamps(){let t=this._cache.data||[],e,i;if(t.length)return t;const s=this.getMatchingVisibleMetas();if(this._normalized&&s.length)return this._cache.data=s[0].controller.getAllParsedValues(this);for(e=0,i=s.length;e=n[i].pos&&t<=n[s].pos&&({lo:i,hi:s}=ee(n,"pos",t)),{pos:o,time:a}=n[i],{pos:r,time:l}=n[s]):(t>=n[i].time&&t<=n[s].time&&({lo:i,hi:s}=ee(n,"time",t)),{time:o,pos:a}=n[i],{time:r,pos:l}=n[s]);const c=r-o;return c?a+(l-a)*(t-o)/c:a}class Do extends Yn{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),e=this._table=this.buildLookupTable(t);this._minPos=Ci(e,this.min),this._tableRange=Ci(e,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:e,max:i}=this,s=[],o=[];let r,a,l,c,u;for(r=0,a=t.length;r=e&&c<=i&&s.push(c);if(s.length<2)return[{time:e,pos:0},{time:i,pos:1}];for(r=0,a=s.length;rs-o)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const e=this.getDataTimestamps(),i=this.getLabelTimestamps();return e.length&&i.length?t=this.normalize(e.concat(i)):t=e.length?e:i,t=this._cache.all=t,t}getDecimalForValue(t){return(Ci(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const e=this._offsets,i=this.getDecimalForPixel(t)/e.factor-e.end;return Ci(this._table,i*this._tableRange+this._minPos,!0)}}z(Do,"id","timeseries"),z(Do,"defaults",Yn.defaults);var IE=Object.freeze({__proto__:null,CategoryScale:So,LinearScale:Co,LogarithmicScale:To,RadialLinearScale:Dn,TimeScale:Yn,TimeSeriesScale:Do});const NE=[Vy,b0,dE,IE];Qt.register(...NE);window.bootbox=S_;T_();window.dayjs=D_;window.toastr=k_;window.Chart=Qt; diff --git a/public/build/assets/datatables-CEJN0LxJ.js b/public/build/assets/datatables-DUQRTXCi.js similarity index 63% rename from public/build/assets/datatables-CEJN0LxJ.js rename to public/build/assets/datatables-DUQRTXCi.js index e4d2bde..56f2221 100644 --- a/public/build/assets/datatables-CEJN0LxJ.js +++ b/public/build/assets/datatables-DUQRTXCi.js @@ -1,6 +1,6 @@ import{j as Ze,r as vn,c as bt,g as ia}from"./jquery-BbSKnqzy.js";/*! DataTables 2.0.5 * © SpryMedia Ltd - datatables.net/license - */var k=Ze,F=function(e,t){if(F.factory(e,t))return F;if(this instanceof F)return k(e).DataTable(t);t=e;var r=this,n=t===void 0,i=this.length;return n&&(t={}),this.api=function(){return new se(this)},this.each(function(){var a={},o=i>1?Jr(a,t,!0):t,l=0,u,h=this.getAttribute("id"),d=!1,s=F.defaults,c=k(this);if(this.nodeName.toLowerCase()!="table"){Ee(null,0,"Non-table node initialisation ("+this.nodeName+")",2);return}k(this).trigger("options.dt",o),Ur(s),wn(s.column),qe(s,s,!0),qe(s.column,s.column,!0),qe(s,k.extend(o,c.data()),!0);var f=F.settings;for(l=0,u=f.length;l").prependTo(this),fastData:function(U,S,L){return Be(v,U,S,L)}});v.nTable=this,v.oInit=o,f.push(v),v.api=new se(v),v.oInstance=r.length===1?r:c.dataTable(),Ur(o),o.aLengthMenu&&!o.iDisplayLength&&(o.iDisplayLength=Array.isArray(o.aLengthMenu[0])?o.aLengthMenu[0][0]:k.isPlainObject(o.aLengthMenu[0])?o.aLengthMenu[0].value:o.aLengthMenu[0]),o=Jr(k.extend(!0,{},s),o),Ve(v.oFeatures,o,["bPaginate","bLengthChange","bFilter","bSort","bSortMulti","bInfo","bProcessing","bAutoWidth","bSortClasses","bServerSide","bDeferRender"]),Ve(v,o,["ajax","fnFormatNumber","sServerMethod","aaSorting","aaSortingFixed","aLengthMenu","sPaginationType","iStateDuration","bSortCellsTop","iTabIndex","sDom","fnStateLoadCallback","fnStateSaveCallback","renderer","searchDelay","rowId","caption","layout",["iCookieDuration","iStateDuration"],["oSearch","oPreviousSearch"],["aoSearchCols","aoPreSearchCols"],["iDisplayLength","_iDisplayLength"]]),Ve(v.oScroll,o,[["sScrollX","sX"],["sScrollXInner","sXInner"],["sScrollY","sY"],["bScrollCollapse","bCollapse"]]),Ve(v.oLanguage,o,"fnInfoCallback"),Ne(v,"aoDrawCallback",o.fnDrawCallback),Ne(v,"aoStateSaveParams",o.fnStateSaveParams),Ne(v,"aoStateLoadParams",o.fnStateLoadParams),Ne(v,"aoStateLoaded",o.fnStateLoaded),Ne(v,"aoRowCallback",o.fnRowCallback),Ne(v,"aoRowCreatedCallback",o.fnCreatedRow),Ne(v,"aoHeaderCallback",o.fnHeaderCallback),Ne(v,"aoFooterCallback",o.fnFooterCallback),Ne(v,"aoInitComplete",o.fnInitComplete),Ne(v,"aoPreDrawCallback",o.fnPreDrawCallback),v.rowIdFn=ot(o.rowId),da(v);var _=v.oClasses;k.extend(_,F.ext.classes,o.oClasses),c.addClass(_.table),v.oFeatures.bPaginate||(o.iDisplayStart=0),v.iInitDisplayStart===void 0&&(v.iInitDisplayStart=o.iDisplayStart,v._iDisplayStart=o.iDisplayStart);var w=v.oLanguage;k.extend(!0,w,o.oLanguage),w.sUrl?(k.ajax({dataType:"json",url:w.sUrl,success:function(U){qe(s.oLanguage,U),k.extend(!0,w,U,v.oInit.oLanguage),ce(v,null,"i18n",[v],!0),Et(v)},error:function(){Ee(v,0,"i18n file loading error",21),Et(v)}}),d=!0):ce(v,null,"i18n",[v]);var C=[],T=this.getElementsByTagName("thead"),E=Dn(v,T[0]);if(o.aoColumns)C=o.aoColumns;else if(E.length)for(l=0,u=E[0].length;l").appendTo(c)),S.html(v.caption)),S.length&&(S[0]._captionSide=S.css("caption-side"),v.captionNode=S[0]),T.length===0&&(T=k("").appendTo(c)),v.nTHead=T[0],k("tr",T).addClass(_.thead.row);var L=c.children("tbody");L.length===0&&(L=k("").insertAfter(T)),v.nTBody=L[0];var g=c.children("tfoot");if(g.length===0&&(g=k("").appendTo(c)),v.nTFoot=g[0],k("tr",g).addClass(_.tfoot.row),o.aaData)for(l=0;l]*>)/g,la=Math.pow(2,28),sa=/^\d{2,4}[./-]\d{1,2}[./-]\d{1,2}([T ]{1}\d{1,2}[:.]\d{2}([.:]\d{2})?)?$/,ua=new RegExp("(\\"+["/",".","*","+","?","|","(",")","[","]","{","}","\\","$","^","-"].join("|\\")+")","g"),vr=/['\u00A0,$£€¥%\u2009\u202F\u20BD\u20a9\u20BArfkɃΞ]/gi,Ue=function(e){return!e||e===!0||e==="-"},bn=function(e){var t=parseInt(e,10);return!isNaN(t)&&isFinite(e)?t:null},yn=function(e,t){return Yt[t]||(Yt[t]=new RegExp(sr(t),"g")),typeof e=="string"&&t!=="."?e.replace(/\./g,"").replace(Yt[t],"."):e},br=function(e,t,r){var n=typeof e,i=n==="string";return n==="number"||n==="bigint"||Ue(e)?!0:(t&&i&&(e=yn(e,t)),r&&i&&(e=e.replace(vr,"")),!isNaN(parseFloat(e))&&isFinite(e))},fa=function(e){return Ue(e)||typeof e=="string"},_n=function(e,t,r){if(Ue(e))return!0;if(typeof e=="string"&&e.match(/<(input|select)/i))return null;var n=fa(e);return n&&br(Je(e),t,r)?!0:null},Fe=function(e,t,r){var n=[],i=0,a=e.length;if(r!==void 0)for(;ila)throw new Error("Exceeded max str len");var t;e=e.replace(mr,"");do t=e,e=e.replace(/