diff --git a/app/PodcasterStats.php b/app/PodcasterStats.php index 8c715d1..b67b080 100644 --- a/app/PodcasterStats.php +++ b/app/PodcasterStats.php @@ -21,7 +21,7 @@ public function trackEpisode($feed, $episode, $userAgent): void return; } - if (option('mauricerenck.podcaster.statsInternal') === true) { + if (option('mauricerenck.podcaster.statsInternal', false) === true) { $trackingDate = time(); $this->upsertEpisode($feed, $episode, $trackingDate); $this->upsertUserAgents($feed, $userAgentData, $trackingDate); @@ -37,7 +37,7 @@ public function trackFeed($feed): void return; } - if (option('mauricerenck.podcaster.statsInternal') === true) { + if (option('mauricerenck.podcaster.statsInternal', false) === true) { $this->upsertFeed($feed); } diff --git a/composer.lock b/composer.lock index cc0d381..61c8c93 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "70b178bc67f60ae9e71d6a34dbcb46dc", + "content-hash": "246d8fcfc5483315f058f344385e167b", "packages": [ { "name": "getkirby/composer-installer", @@ -122,24 +122,24 @@ }, { "name": "matomo/matomo-php-tracker", - "version": "3.2.0", + "version": "3.3.1", "source": { "type": "git", "url": "https://github.com/matomo-org/matomo-php-tracker.git", - "reference": "c9e7816d63ddf99bffb1414cfbe45f4c4edf1d4b" + "reference": "92c2ce658111c7d86a552521c619083e41ebd834" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/matomo-org/matomo-php-tracker/zipball/c9e7816d63ddf99bffb1414cfbe45f4c4edf1d4b", - "reference": "c9e7816d63ddf99bffb1414cfbe45f4c4edf1d4b", + "url": "https://api.github.com/repos/matomo-org/matomo-php-tracker/zipball/92c2ce658111c7d86a552521c619083e41ebd834", + "reference": "92c2ce658111c7d86a552521c619083e41ebd834", "shasum": "" }, "require": { "ext-json": "*", - "php": "^7.0 || ^8.0" + "php": "^7.2 || ^8.0" }, "require-dev": { - "phpunit/phpunit": "^9.3" + "phpunit/phpunit": "^8.5 || ^9.3 || ^10.1" }, "suggest": { "ext-curl": "Using this extension to issue the HTTPS request to Matomo" @@ -174,7 +174,7 @@ "issues": "https://github.com/matomo-org/matomo-php-tracker/issues", "source": "https://github.com/matomo-org/matomo-php-tracker" }, - "time": "2023-03-24T15:16:22+00:00" + "time": "2024-05-21T15:08:28+00:00" } ], "packages-dev": [ @@ -239,16 +239,16 @@ }, { "name": "claviska/simpleimage", - "version": "4.0.6", + "version": "4.2.0", "source": { "type": "git", "url": "https://github.com/claviska/SimpleImage.git", - "reference": "969de5e61810ef91f6f83c475b192c4841367dfa" + "reference": "dfbe53c01dae8467468ef2b817c09b786a7839d2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/claviska/SimpleImage/zipball/969de5e61810ef91f6f83c475b192c4841367dfa", - "reference": "969de5e61810ef91f6f83c475b192c4841367dfa", + "url": "https://api.github.com/repos/claviska/SimpleImage/zipball/dfbe53c01dae8467468ef2b817c09b786a7839d2", + "reference": "dfbe53c01dae8467468ef2b817c09b786a7839d2", "shasum": "" }, "require": { @@ -280,7 +280,7 @@ "description": "A PHP class that makes working with images as simple as possible.", "support": { "issues": "https://github.com/claviska/SimpleImage/issues", - "source": "https://github.com/claviska/SimpleImage/tree/4.0.6" + "source": "https://github.com/claviska/SimpleImage/tree/4.2.0" }, "funding": [ { @@ -288,7 +288,7 @@ "type": "github" } ], - "time": "2023-07-27T16:48:12+00:00" + "time": "2024-04-15T16:07:16+00:00" }, { "name": "composer/semver", @@ -514,21 +514,21 @@ }, { "name": "getkirby/cms", - "version": "4.1.1", + "version": "4.3.0", "source": { "type": "git", "url": "https://github.com/getkirby/kirby.git", - "reference": "1353c9fbe3ede6bee946f527d146841719eef7d5" + "reference": "f9f00b16a22fe9dbbbddc2bfd4719ca3437cbee9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/getkirby/kirby/zipball/1353c9fbe3ede6bee946f527d146841719eef7d5", - "reference": "1353c9fbe3ede6bee946f527d146841719eef7d5", + "url": "https://api.github.com/repos/getkirby/kirby/zipball/f9f00b16a22fe9dbbbddc2bfd4719ca3437cbee9", + "reference": "f9f00b16a22fe9dbbbddc2bfd4719ca3437cbee9", "shasum": "" }, "require": { "christian-riesen/base32": "1.6.0", - "claviska/simpleimage": "4.0.6", + "claviska/simpleimage": "4.2.0", "composer/semver": "3.4.0", "ext-ctype": "*", "ext-curl": "*", @@ -547,9 +547,9 @@ "michelf/php-smartypants": "1.8.1", "php": "~8.1.0 || ~8.2.0 || ~8.3.0", "phpmailer/phpmailer": "6.9.1", - "symfony/polyfill-intl-idn": "1.28.0", - "symfony/polyfill-mbstring": "1.28.0", - "symfony/yaml": "6.4.0" + "symfony/polyfill-intl-idn": "1.29.0", + "symfony/polyfill-mbstring": "1.29.0", + "symfony/yaml": "6.4.8" }, "replace": { "symfony/polyfill-php72": "*" @@ -613,7 +613,7 @@ "type": "custom" } ], - "time": "2024-02-26T10:06:07+00:00" + "time": "2024-06-13T09:58:27+00:00" }, { "name": "laminas/laminas-escaper", @@ -794,16 +794,16 @@ }, { "name": "myclabs/deep-copy", - "version": "1.11.1", + "version": "1.12.0", "source": { "type": "git", "url": "https://github.com/myclabs/DeepCopy.git", - "reference": "7284c22080590fb39f2ffa3e9057f10a4ddd0e0c" + "reference": "3a6b9a42cd8f8771bd4295d13e1423fa7f3d942c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/7284c22080590fb39f2ffa3e9057f10a4ddd0e0c", - "reference": "7284c22080590fb39f2ffa3e9057f10a4ddd0e0c", + "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/3a6b9a42cd8f8771bd4295d13e1423fa7f3d942c", + "reference": "3a6b9a42cd8f8771bd4295d13e1423fa7f3d942c", "shasum": "" }, "require": { @@ -811,11 +811,12 @@ }, "conflict": { "doctrine/collections": "<1.6.8", - "doctrine/common": "<2.13.3 || >=3,<3.2.2" + "doctrine/common": "<2.13.3 || >=3 <3.2.2" }, "require-dev": { "doctrine/collections": "^1.6.8", "doctrine/common": "^2.13.3 || ^3.2.2", + "phpspec/prophecy": "^1.10", "phpunit/phpunit": "^7.5.20 || ^8.5.23 || ^9.5.13" }, "type": "library", @@ -841,7 +842,7 @@ ], "support": { "issues": "https://github.com/myclabs/DeepCopy/issues", - "source": "https://github.com/myclabs/DeepCopy/tree/1.11.1" + "source": "https://github.com/myclabs/DeepCopy/tree/1.12.0" }, "funding": [ { @@ -849,20 +850,20 @@ "type": "tidelift" } ], - "time": "2023-03-08T13:26:56+00:00" + "time": "2024-06-12T14:39:25+00:00" }, { "name": "nikic/php-parser", - "version": "v5.0.1", + "version": "v5.1.0", "source": { "type": "git", "url": "https://github.com/nikic/PHP-Parser.git", - "reference": "2218c2252c874a4624ab2f613d86ac32d227bc69" + "reference": "683130c2ff8c2739f4822ff7ac5c873ec529abd1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/2218c2252c874a4624ab2f613d86ac32d227bc69", - "reference": "2218c2252c874a4624ab2f613d86ac32d227bc69", + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/683130c2ff8c2739f4822ff7ac5c873ec529abd1", + "reference": "683130c2ff8c2739f4822ff7ac5c873ec529abd1", "shasum": "" }, "require": { @@ -873,7 +874,7 @@ }, "require-dev": { "ircmaxell/php-yacc": "^0.0.7", - "phpunit/phpunit": "^7.0 || ^8.0 || ^9.0" + "phpunit/phpunit": "^9.0" }, "bin": [ "bin/php-parse" @@ -905,26 +906,27 @@ ], "support": { "issues": "https://github.com/nikic/PHP-Parser/issues", - "source": "https://github.com/nikic/PHP-Parser/tree/v5.0.1" + "source": "https://github.com/nikic/PHP-Parser/tree/v5.1.0" }, - "time": "2024-02-21T19:24:10+00:00" + "time": "2024-07-01T20:03:41+00:00" }, { "name": "phar-io/manifest", - "version": "2.0.3", + "version": "2.0.4", "source": { "type": "git", "url": "https://github.com/phar-io/manifest.git", - "reference": "97803eca37d319dfa7826cc2437fc020857acb53" + "reference": "54750ef60c58e43759730615a392c31c80e23176" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phar-io/manifest/zipball/97803eca37d319dfa7826cc2437fc020857acb53", - "reference": "97803eca37d319dfa7826cc2437fc020857acb53", + "url": "https://api.github.com/repos/phar-io/manifest/zipball/54750ef60c58e43759730615a392c31c80e23176", + "reference": "54750ef60c58e43759730615a392c31c80e23176", "shasum": "" }, "require": { "ext-dom": "*", + "ext-libxml": "*", "ext-phar": "*", "ext-xmlwriter": "*", "phar-io/version": "^3.0.1", @@ -965,9 +967,15 @@ "description": "Component for reading phar.io manifest information from a PHP Archive (PHAR)", "support": { "issues": "https://github.com/phar-io/manifest/issues", - "source": "https://github.com/phar-io/manifest/tree/2.0.3" + "source": "https://github.com/phar-io/manifest/tree/2.0.4" }, - "time": "2021-07-20T11:28:43+00:00" + "funding": [ + { + "url": "https://github.com/theseer", + "type": "github" + } + ], + "time": "2024-03-03T12:33:53+00:00" }, { "name": "phar-io/version", @@ -1103,16 +1111,16 @@ }, { "name": "phpunit/php-code-coverage", - "version": "9.2.30", + "version": "9.2.31", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-code-coverage.git", - "reference": "ca2bd87d2f9215904682a9cb9bb37dda98e76089" + "reference": "48c34b5d8d983006bd2adc2d0de92963b9155965" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/ca2bd87d2f9215904682a9cb9bb37dda98e76089", - "reference": "ca2bd87d2f9215904682a9cb9bb37dda98e76089", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/48c34b5d8d983006bd2adc2d0de92963b9155965", + "reference": "48c34b5d8d983006bd2adc2d0de92963b9155965", "shasum": "" }, "require": { @@ -1169,7 +1177,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/php-code-coverage/issues", "security": "https://github.com/sebastianbergmann/php-code-coverage/security/policy", - "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2.30" + "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2.31" }, "funding": [ { @@ -1177,7 +1185,7 @@ "type": "github" } ], - "time": "2023-12-22T06:47:57+00:00" + "time": "2024-03-02T06:37:42+00:00" }, { "name": "phpunit/php-file-iterator", @@ -1422,45 +1430,45 @@ }, { "name": "phpunit/phpunit", - "version": "9.6.17", + "version": "9.6.20", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "1a156980d78a6666721b7e8e8502fe210b587fcd" + "reference": "49d7820565836236411f5dc002d16dd689cde42f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/1a156980d78a6666721b7e8e8502fe210b587fcd", - "reference": "1a156980d78a6666721b7e8e8502fe210b587fcd", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/49d7820565836236411f5dc002d16dd689cde42f", + "reference": "49d7820565836236411f5dc002d16dd689cde42f", "shasum": "" }, "require": { - "doctrine/instantiator": "^1.3.1 || ^2", + "doctrine/instantiator": "^1.5.0 || ^2", "ext-dom": "*", "ext-json": "*", "ext-libxml": "*", "ext-mbstring": "*", "ext-xml": "*", "ext-xmlwriter": "*", - "myclabs/deep-copy": "^1.10.1", - "phar-io/manifest": "^2.0.3", - "phar-io/version": "^3.0.2", + "myclabs/deep-copy": "^1.12.0", + "phar-io/manifest": "^2.0.4", + "phar-io/version": "^3.2.1", "php": ">=7.3", - "phpunit/php-code-coverage": "^9.2.28", - "phpunit/php-file-iterator": "^3.0.5", + "phpunit/php-code-coverage": "^9.2.31", + "phpunit/php-file-iterator": "^3.0.6", "phpunit/php-invoker": "^3.1.1", - "phpunit/php-text-template": "^2.0.3", - "phpunit/php-timer": "^5.0.2", - "sebastian/cli-parser": "^1.0.1", - "sebastian/code-unit": "^1.0.6", + "phpunit/php-text-template": "^2.0.4", + "phpunit/php-timer": "^5.0.3", + "sebastian/cli-parser": "^1.0.2", + "sebastian/code-unit": "^1.0.8", "sebastian/comparator": "^4.0.8", - "sebastian/diff": "^4.0.3", - "sebastian/environment": "^5.1.3", - "sebastian/exporter": "^4.0.5", - "sebastian/global-state": "^5.0.1", - "sebastian/object-enumerator": "^4.0.3", - "sebastian/resource-operations": "^3.0.3", - "sebastian/type": "^3.2", + "sebastian/diff": "^4.0.6", + "sebastian/environment": "^5.1.5", + "sebastian/exporter": "^4.0.6", + "sebastian/global-state": "^5.0.7", + "sebastian/object-enumerator": "^4.0.4", + "sebastian/resource-operations": "^3.0.4", + "sebastian/type": "^3.2.1", "sebastian/version": "^3.0.2" }, "suggest": { @@ -1505,7 +1513,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/phpunit/issues", "security": "https://github.com/sebastianbergmann/phpunit/security/policy", - "source": "https://github.com/sebastianbergmann/phpunit/tree/9.6.17" + "source": "https://github.com/sebastianbergmann/phpunit/tree/9.6.20" }, "funding": [ { @@ -1521,20 +1529,20 @@ "type": "tidelift" } ], - "time": "2024-02-23T13:14:51+00:00" + "time": "2024-07-10T11:45:39+00:00" }, { "name": "psr/log", - "version": "3.0.0", + "version": "3.0.1", "source": { "type": "git", "url": "https://github.com/php-fig/log.git", - "reference": "fe5ea303b0887d5caefd3d431c3e61ad47037001" + "reference": "79dff0b268932c640297f5208d6298f71855c03e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-fig/log/zipball/fe5ea303b0887d5caefd3d431c3e61ad47037001", - "reference": "fe5ea303b0887d5caefd3d431c3e61ad47037001", + "url": "https://api.github.com/repos/php-fig/log/zipball/79dff0b268932c640297f5208d6298f71855c03e", + "reference": "79dff0b268932c640297f5208d6298f71855c03e", "shasum": "" }, "require": { @@ -1569,22 +1577,22 @@ "psr-3" ], "support": { - "source": "https://github.com/php-fig/log/tree/3.0.0" + "source": "https://github.com/php-fig/log/tree/3.0.1" }, - "time": "2021-07-14T16:46:02+00:00" + "time": "2024-08-21T13:31:24+00:00" }, { "name": "sebastian/cli-parser", - "version": "1.0.1", + "version": "1.0.2", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/cli-parser.git", - "reference": "442e7c7e687e42adc03470c7b668bc4b2402c0b2" + "reference": "2b56bea83a09de3ac06bb18b92f068e60cc6f50b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/cli-parser/zipball/442e7c7e687e42adc03470c7b668bc4b2402c0b2", - "reference": "442e7c7e687e42adc03470c7b668bc4b2402c0b2", + "url": "https://api.github.com/repos/sebastianbergmann/cli-parser/zipball/2b56bea83a09de3ac06bb18b92f068e60cc6f50b", + "reference": "2b56bea83a09de3ac06bb18b92f068e60cc6f50b", "shasum": "" }, "require": { @@ -1619,7 +1627,7 @@ "homepage": "https://github.com/sebastianbergmann/cli-parser", "support": { "issues": "https://github.com/sebastianbergmann/cli-parser/issues", - "source": "https://github.com/sebastianbergmann/cli-parser/tree/1.0.1" + "source": "https://github.com/sebastianbergmann/cli-parser/tree/1.0.2" }, "funding": [ { @@ -1627,7 +1635,7 @@ "type": "github" } ], - "time": "2020-09-28T06:08:49+00:00" + "time": "2024-03-02T06:27:43+00:00" }, { "name": "sebastian/code-unit", @@ -1873,16 +1881,16 @@ }, { "name": "sebastian/diff", - "version": "4.0.5", + "version": "4.0.6", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/diff.git", - "reference": "74be17022044ebaaecfdf0c5cd504fc9cd5a7131" + "reference": "ba01945089c3a293b01ba9badc29ad55b106b0bc" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/74be17022044ebaaecfdf0c5cd504fc9cd5a7131", - "reference": "74be17022044ebaaecfdf0c5cd504fc9cd5a7131", + "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/ba01945089c3a293b01ba9badc29ad55b106b0bc", + "reference": "ba01945089c3a293b01ba9badc29ad55b106b0bc", "shasum": "" }, "require": { @@ -1927,7 +1935,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/diff/issues", - "source": "https://github.com/sebastianbergmann/diff/tree/4.0.5" + "source": "https://github.com/sebastianbergmann/diff/tree/4.0.6" }, "funding": [ { @@ -1935,7 +1943,7 @@ "type": "github" } ], - "time": "2023-05-07T05:35:17+00:00" + "time": "2024-03-02T06:30:58+00:00" }, { "name": "sebastian/environment", @@ -2002,16 +2010,16 @@ }, { "name": "sebastian/exporter", - "version": "4.0.5", + "version": "4.0.6", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/exporter.git", - "reference": "ac230ed27f0f98f597c8a2b6eb7ac563af5e5b9d" + "reference": "78c00df8f170e02473b682df15bfcdacc3d32d72" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/ac230ed27f0f98f597c8a2b6eb7ac563af5e5b9d", - "reference": "ac230ed27f0f98f597c8a2b6eb7ac563af5e5b9d", + "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/78c00df8f170e02473b682df15bfcdacc3d32d72", + "reference": "78c00df8f170e02473b682df15bfcdacc3d32d72", "shasum": "" }, "require": { @@ -2067,7 +2075,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/exporter/issues", - "source": "https://github.com/sebastianbergmann/exporter/tree/4.0.5" + "source": "https://github.com/sebastianbergmann/exporter/tree/4.0.6" }, "funding": [ { @@ -2075,20 +2083,20 @@ "type": "github" } ], - "time": "2022-09-14T06:03:37+00:00" + "time": "2024-03-02T06:33:00+00:00" }, { "name": "sebastian/global-state", - "version": "5.0.6", + "version": "5.0.7", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/global-state.git", - "reference": "bde739e7565280bda77be70044ac1047bc007e34" + "reference": "bca7df1f32ee6fe93b4d4a9abbf69e13a4ada2c9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/bde739e7565280bda77be70044ac1047bc007e34", - "reference": "bde739e7565280bda77be70044ac1047bc007e34", + "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/bca7df1f32ee6fe93b4d4a9abbf69e13a4ada2c9", + "reference": "bca7df1f32ee6fe93b4d4a9abbf69e13a4ada2c9", "shasum": "" }, "require": { @@ -2131,7 +2139,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/global-state/issues", - "source": "https://github.com/sebastianbergmann/global-state/tree/5.0.6" + "source": "https://github.com/sebastianbergmann/global-state/tree/5.0.7" }, "funding": [ { @@ -2139,7 +2147,7 @@ "type": "github" } ], - "time": "2023-08-02T09:26:13+00:00" + "time": "2024-03-02T06:35:11+00:00" }, { "name": "sebastian/lines-of-code", @@ -2375,16 +2383,16 @@ }, { "name": "sebastian/resource-operations", - "version": "3.0.3", + "version": "3.0.4", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/resource-operations.git", - "reference": "0f4443cb3a1d92ce809899753bc0d5d5a8dd19a8" + "reference": "05d5692a7993ecccd56a03e40cd7e5b09b1d404e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/resource-operations/zipball/0f4443cb3a1d92ce809899753bc0d5d5a8dd19a8", - "reference": "0f4443cb3a1d92ce809899753bc0d5d5a8dd19a8", + "url": "https://api.github.com/repos/sebastianbergmann/resource-operations/zipball/05d5692a7993ecccd56a03e40cd7e5b09b1d404e", + "reference": "05d5692a7993ecccd56a03e40cd7e5b09b1d404e", "shasum": "" }, "require": { @@ -2396,7 +2404,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "3.0-dev" + "dev-main": "3.0-dev" } }, "autoload": { @@ -2417,8 +2425,7 @@ "description": "Provides a list of PHP built-in functions that operate on resources", "homepage": "https://www.github.com/sebastianbergmann/resource-operations", "support": { - "issues": "https://github.com/sebastianbergmann/resource-operations/issues", - "source": "https://github.com/sebastianbergmann/resource-operations/tree/3.0.3" + "source": "https://github.com/sebastianbergmann/resource-operations/tree/3.0.4" }, "funding": [ { @@ -2426,7 +2433,7 @@ "type": "github" } ], - "time": "2020-09-28T06:45:17+00:00" + "time": "2024-03-14T16:00:52+00:00" }, { "name": "sebastian/type", @@ -2539,16 +2546,16 @@ }, { "name": "symfony/deprecation-contracts", - "version": "v3.4.0", + "version": "v3.5.0", "source": { "type": "git", "url": "https://github.com/symfony/deprecation-contracts.git", - "reference": "7c3aff79d10325257a001fcf92d991f24fc967cf" + "reference": "0e0d29ce1f20deffb4ab1b016a7257c4f1e789a1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/7c3aff79d10325257a001fcf92d991f24fc967cf", - "reference": "7c3aff79d10325257a001fcf92d991f24fc967cf", + "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/0e0d29ce1f20deffb4ab1b016a7257c4f1e789a1", + "reference": "0e0d29ce1f20deffb4ab1b016a7257c4f1e789a1", "shasum": "" }, "require": { @@ -2557,7 +2564,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "3.4-dev" + "dev-main": "3.5-dev" }, "thanks": { "name": "symfony/contracts", @@ -2586,7 +2593,7 @@ "description": "A generic function and convention to trigger deprecation notices", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/deprecation-contracts/tree/v3.4.0" + "source": "https://github.com/symfony/deprecation-contracts/tree/v3.5.0" }, "funding": [ { @@ -2602,20 +2609,20 @@ "type": "tidelift" } ], - "time": "2023-05-23T14:45:45+00:00" + "time": "2024-04-18T09:32:20+00:00" }, { "name": "symfony/polyfill-ctype", - "version": "v1.29.0", + "version": "v1.30.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-ctype.git", - "reference": "ef4d7e442ca910c4764bce785146269b30cb5fc4" + "reference": "0424dff1c58f028c451efff2045f5d92410bd540" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/ef4d7e442ca910c4764bce785146269b30cb5fc4", - "reference": "ef4d7e442ca910c4764bce785146269b30cb5fc4", + "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/0424dff1c58f028c451efff2045f5d92410bd540", + "reference": "0424dff1c58f028c451efff2045f5d92410bd540", "shasum": "" }, "require": { @@ -2665,7 +2672,7 @@ "portable" ], "support": { - "source": "https://github.com/symfony/polyfill-ctype/tree/v1.29.0" + "source": "https://github.com/symfony/polyfill-ctype/tree/v1.30.0" }, "funding": [ { @@ -2681,20 +2688,20 @@ "type": "tidelift" } ], - "time": "2024-01-29T20:11:03+00:00" + "time": "2024-05-31T15:07:36+00:00" }, { "name": "symfony/polyfill-intl-idn", - "version": "v1.28.0", + "version": "v1.29.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-intl-idn.git", - "reference": "ecaafce9f77234a6a449d29e49267ba10499116d" + "reference": "a287ed7475f85bf6f61890146edbc932c0fff919" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-intl-idn/zipball/ecaafce9f77234a6a449d29e49267ba10499116d", - "reference": "ecaafce9f77234a6a449d29e49267ba10499116d", + "url": "https://api.github.com/repos/symfony/polyfill-intl-idn/zipball/a287ed7475f85bf6f61890146edbc932c0fff919", + "reference": "a287ed7475f85bf6f61890146edbc932c0fff919", "shasum": "" }, "require": { @@ -2707,9 +2714,6 @@ }, "type": "library", "extra": { - "branch-alias": { - "dev-main": "1.28-dev" - }, "thanks": { "name": "symfony/polyfill", "url": "https://github.com/symfony/polyfill" @@ -2752,7 +2756,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-intl-idn/tree/v1.28.0" + "source": "https://github.com/symfony/polyfill-intl-idn/tree/v1.29.0" }, "funding": [ { @@ -2768,20 +2772,20 @@ "type": "tidelift" } ], - "time": "2023-01-26T09:30:37+00:00" + "time": "2024-01-29T20:11:03+00:00" }, { "name": "symfony/polyfill-intl-normalizer", - "version": "v1.29.0", + "version": "v1.30.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-intl-normalizer.git", - "reference": "bc45c394692b948b4d383a08d7753968bed9a83d" + "reference": "a95281b0be0d9ab48050ebd988b967875cdb9fdb" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/bc45c394692b948b4d383a08d7753968bed9a83d", - "reference": "bc45c394692b948b4d383a08d7753968bed9a83d", + "url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/a95281b0be0d9ab48050ebd988b967875cdb9fdb", + "reference": "a95281b0be0d9ab48050ebd988b967875cdb9fdb", "shasum": "" }, "require": { @@ -2833,7 +2837,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.29.0" + "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.30.0" }, "funding": [ { @@ -2849,20 +2853,20 @@ "type": "tidelift" } ], - "time": "2024-01-29T20:11:03+00:00" + "time": "2024-05-31T15:07:36+00:00" }, { "name": "symfony/polyfill-mbstring", - "version": "v1.28.0", + "version": "v1.29.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-mbstring.git", - "reference": "42292d99c55abe617799667f454222c54c60e229" + "reference": "9773676c8a1bb1f8d4340a62efe641cf76eda7ec" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/42292d99c55abe617799667f454222c54c60e229", - "reference": "42292d99c55abe617799667f454222c54c60e229", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/9773676c8a1bb1f8d4340a62efe641cf76eda7ec", + "reference": "9773676c8a1bb1f8d4340a62efe641cf76eda7ec", "shasum": "" }, "require": { @@ -2876,9 +2880,6 @@ }, "type": "library", "extra": { - "branch-alias": { - "dev-main": "1.28-dev" - }, "thanks": { "name": "symfony/polyfill", "url": "https://github.com/symfony/polyfill" @@ -2916,7 +2917,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.28.0" + "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.29.0" }, "funding": [ { @@ -2932,20 +2933,20 @@ "type": "tidelift" } ], - "time": "2023-07-28T09:04:16+00:00" + "time": "2024-01-29T20:11:03+00:00" }, { "name": "symfony/yaml", - "version": "v6.4.0", + "version": "v6.4.8", "source": { "type": "git", "url": "https://github.com/symfony/yaml.git", - "reference": "4f9237a1bb42455d609e6687d2613dde5b41a587" + "reference": "52903de178d542850f6f341ba92995d3d63e60c9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/yaml/zipball/4f9237a1bb42455d609e6687d2613dde5b41a587", - "reference": "4f9237a1bb42455d609e6687d2613dde5b41a587", + "url": "https://api.github.com/repos/symfony/yaml/zipball/52903de178d542850f6f341ba92995d3d63e60c9", + "reference": "52903de178d542850f6f341ba92995d3d63e60c9", "shasum": "" }, "require": { @@ -2988,7 +2989,7 @@ "description": "Loads and dumps YAML files", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/yaml/tree/v6.4.0" + "source": "https://github.com/symfony/yaml/tree/v6.4.8" }, "funding": [ { @@ -3004,20 +3005,20 @@ "type": "tidelift" } ], - "time": "2023-11-06T11:00:25+00:00" + "time": "2024-05-31T14:49:08+00:00" }, { "name": "theseer/tokenizer", - "version": "1.2.2", + "version": "1.2.3", "source": { "type": "git", "url": "https://github.com/theseer/tokenizer.git", - "reference": "b2ad5003ca10d4ee50a12da31de12a5774ba6b96" + "reference": "737eda637ed5e28c3413cb1ebe8bb52cbf1ca7a2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/theseer/tokenizer/zipball/b2ad5003ca10d4ee50a12da31de12a5774ba6b96", - "reference": "b2ad5003ca10d4ee50a12da31de12a5774ba6b96", + "url": "https://api.github.com/repos/theseer/tokenizer/zipball/737eda637ed5e28c3413cb1ebe8bb52cbf1ca7a2", + "reference": "737eda637ed5e28c3413cb1ebe8bb52cbf1ca7a2", "shasum": "" }, "require": { @@ -3046,7 +3047,7 @@ "description": "A small library for converting tokenized PHP source code into XML and potentially other formats", "support": { "issues": "https://github.com/theseer/tokenizer/issues", - "source": "https://github.com/theseer/tokenizer/tree/1.2.2" + "source": "https://github.com/theseer/tokenizer/tree/1.2.3" }, "funding": [ { @@ -3054,7 +3055,7 @@ "type": "github" } ], - "time": "2023-11-20T00:12:19+00:00" + "time": "2024-03-03T12:36:25+00:00" } ], "aliases": [], diff --git a/index.js b/index.js index 15cba12..b10b2f2 100644 --- a/index.js +++ b/index.js @@ -1,17 +1,17 @@ -(function(){"use strict";function se(F,X,M,z,G,O,le,I){var D=typeof F=="function"?F.options:F;X&&(D.render=X,D.staticRenderFns=M,D._compiled=!0),z&&(D.functional=!0),O&&(D._scopeId="data-v-"+O);var N;if(le?(N=function(V){V=V||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!V&&typeof __VUE_SSR_CONTEXT__<"u"&&(V=__VUE_SSR_CONTEXT__),G&&G.call(this,V),V&&V._registeredComponents&&V._registeredComponents.add(le)},D._ssrRegister=N):G&&(N=I?function(){G.call(this,(D.functional?this.parent:this).$root.$options.shadowRoot)}:G),N)if(D.functional){D._injectStyles=N;var U=D.render;D.render=function(oe,he){return N.call(he),U(oe,he)}}else{var K=D.beforeCreate;D.beforeCreate=K?[].concat(K,N):[N]}return{exports:F,options:D}}const lt={props:{year:Number,month:Number,podcasts:[String],quickReports:Object},data(){return{allEpisodes:[],selectedMonth:this.month,selectedYear:this.year,selectedPodcast:this.podcasts[0].id,selectedEpisode:null,selectedEpisodes:[]}},computed:{podcastOptions(){return this.podcasts.map(F=>({value:F.id,text:F.name}))}},methods:{getDropDownMonths(){return[1,2,3,4,5,6,7,8,9,10,11,12]},setMonth(F){this.selectedMonth=F>13?12:F},setYear(F){this.selectedYear=F>1969?F:1970},setPodcast(F){this.selectedPodcast=F,this.selectedEpisodes=[]},setEpisode(F){this.selectedEpisode=F},addSelectedEpisode(F){this.selectedEpisodes.push(F)},removeSelectedEpisode(F){this.selectedEpisodes=this.selectedEpisodes.filter(X=>X!==F)}}};var ht=function(){var X=this,M=X._self._c;return M("k-inside",[M("k-view",{staticClass:"k-podcaster-view"},[M("k-header",[X._v("Podcaster Analytics")]),M("k-grid",{attrs:{gutter:"small"}},[M("k-column",{attrs:{width:"1/4"}},[M("k-select-field",{attrs:{options:X.podcastOptions,label:"Podcast",name:"select"},on:{input:X.setPodcast},model:{value:X.selectedPodcast,callback:function(z){X.selectedPodcast=z},expression:"selectedPodcast"}})],1),M("k-column",{attrs:{width:"4/4"}},[M("k-line-field"),M("PodStatWidget",{attrs:{selectedPodcast:this.selectedPodcast}}),M("k-line-field")],1),M("k-column",{attrs:{width:"4/6"}},[M("k-headline",{attrs:{size:"huge"}},[X._v("Monthly stats")])],1),M("k-column",{attrs:{width:"1/6"}},[M("k-number-field",{attrs:{step:1,label:"Year"},on:{input:X.setYear},model:{value:X.selectedYear,callback:function(z){X.selectedYear=z},expression:"selectedYear"}})],1),M("k-column",{attrs:{width:"1/6"}},[M("k-number-field",{attrs:{max:12,min:1,step:1,label:"Month"},on:{input:X.setMonth},model:{value:X.selectedMonth,callback:function(z){X.selectedMonth=z},expression:"selectedMonth"}})],1),M("k-column",[M("PodGraphEpisodesMonth",{attrs:{selectedMonth:this.selectedMonth,selectedYear:this.selectedYear,selectedPodcast:this.selectedPodcast}})],1),M("k-column",{attrs:{width:"1/3"}},[M("PodGraphDevices",{attrs:{selectedMonth:this.selectedMonth,selectedYear:this.selectedYear,selectedPodcast:this.selectedPodcast}})],1),M("k-column",{attrs:{width:"1/3"}},[M("PodGraphUserAgents",{attrs:{selectedMonth:this.selectedMonth,selectedYear:this.selectedYear,selectedPodcast:this.selectedPodcast}})],1),M("k-column",{attrs:{width:"1/3"}},[M("PodGraphSystems",{attrs:{selectedMonth:this.selectedMonth,selectedYear:this.selectedYear,selectedPodcast:this.selectedPodcast}})],1),M("k-column",[M("k-line-field"),M("k-headline",{attrs:{size:"huge"}},[X._v("Episode Details")])],1),M("k-column",{attrs:{width:"2/3"}},[M("PodGraphSingleEpisode",{attrs:{selectedPodcast:this.selectedPodcast,selectedEpisodes:this.selectedEpisodes}})],1),M("k-column",{attrs:{width:"1/3"}},[M("PodEpisodesAutocomplete",{attrs:{selectedPodcast:this.selectedPodcast,selectedEpisodes:this.selectedEpisodes,onSelectEpisode:this.addSelectedEpisode,onRemoveEpisode:this.removeSelectedEpisode}}),M("k-headline",[X._v("Top10 Episodes")]),M("PodTopEpisodes",{attrs:{selectedPodcast:this.selectedPodcast,onSelectEpisode:this.addSelectedEpisode}})],1),M("k-column",{attrs:{width:"1/1"}},[M("k-line-field"),M("k-headline",{attrs:{size:"huge"}},[X._v("Episode Downloads")]),M("PodGraphEpisodes",{attrs:{selectedPodcast:this.selectedPodcast}})],1),M("k-column",{attrs:{width:"1/1"}},[M("k-line-field"),M("k-headline",{attrs:{size:"huge"}},[X._v("Feed Downloads")]),M("PodGraphFeeds",{attrs:{selectedPodcast:this.selectedPodcast}})],1)],1)],1)],1)},ct=[],dt=se(lt,ht,ct,!1,null,null,null,null);const gt=dt.exports;var Be=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ut(F){return F&&F.__esModule&&Object.prototype.hasOwnProperty.call(F,"default")?F.default:F}var Ge={exports:{}},Ce={exports:{}};/*! +(function(){"use strict";function ae(F,X,M,z,_,O,ge,E){var H=typeof F=="function"?F.options:F;return X&&(H.render=X,H.staticRenderFns=M,H._compiled=!0),{exports:F,options:H}}const lt={props:{year:Number,month:Number,podcasts:[String],quickReports:Object},data(){return{allEpisodes:[],selectedMonth:this.month,selectedYear:this.year,selectedPodcast:this.podcasts[0].id,selectedEpisode:null,selectedEpisodes:[]}},computed:{podcastOptions(){return this.podcasts.map(F=>({value:F.id,text:F.name}))}},methods:{getDropDownMonths(){return[1,2,3,4,5,6,7,8,9,10,11,12]},setMonth(F){this.selectedMonth=F>13?12:F},setYear(F){this.selectedYear=F>1969?F:1970},setPodcast(F){this.selectedPodcast=F,this.selectedEpisodes=[]},setEpisode(F){this.selectedEpisode=F},addSelectedEpisode(F){this.selectedEpisodes.push(F)},removeSelectedEpisode(F){this.selectedEpisodes=this.selectedEpisodes.filter(X=>X!==F)}}};var ht=function(){var X=this,M=X._self._c;return M("k-inside",[M("k-view",{staticClass:"k-podcaster-view"},[M("k-header",[X._v("Podcaster Analytics")]),M("k-grid",{attrs:{gutter:"small"}},[M("k-column",{attrs:{width:"1/4"}},[M("k-select-field",{attrs:{options:X.podcastOptions,label:"Podcast",name:"select"},on:{input:X.setPodcast},model:{value:X.selectedPodcast,callback:function(z){X.selectedPodcast=z},expression:"selectedPodcast"}})],1),M("k-column",{attrs:{width:"4/4"}},[M("k-line-field"),M("PodStatWidget",{attrs:{selectedPodcast:this.selectedPodcast}}),M("k-line-field")],1),M("k-column",{attrs:{width:"4/6"}},[M("k-headline",{attrs:{size:"huge"}},[X._v("Monthly stats")])],1),M("k-column",{attrs:{width:"1/6"}},[M("k-number-field",{attrs:{step:1,label:"Year"},on:{input:X.setYear},model:{value:X.selectedYear,callback:function(z){X.selectedYear=z},expression:"selectedYear"}})],1),M("k-column",{attrs:{width:"1/6"}},[M("k-number-field",{attrs:{max:12,min:1,step:1,label:"Month"},on:{input:X.setMonth},model:{value:X.selectedMonth,callback:function(z){X.selectedMonth=z},expression:"selectedMonth"}})],1),M("k-column",[M("PodGraphEpisodesMonth",{attrs:{selectedMonth:this.selectedMonth,selectedYear:this.selectedYear,selectedPodcast:this.selectedPodcast}})],1),M("k-column",{attrs:{width:"1/3"}},[M("PodGraphDevices",{attrs:{selectedMonth:this.selectedMonth,selectedYear:this.selectedYear,selectedPodcast:this.selectedPodcast}})],1),M("k-column",{attrs:{width:"1/3"}},[M("PodGraphUserAgents",{attrs:{selectedMonth:this.selectedMonth,selectedYear:this.selectedYear,selectedPodcast:this.selectedPodcast}})],1),M("k-column",{attrs:{width:"1/3"}},[M("PodGraphSystems",{attrs:{selectedMonth:this.selectedMonth,selectedYear:this.selectedYear,selectedPodcast:this.selectedPodcast}})],1),M("k-column",[M("k-line-field"),M("k-headline",{attrs:{size:"huge"}},[X._v("Episode Details")])],1),M("k-column",{attrs:{width:"2/3"}},[M("PodGraphSingleEpisode",{attrs:{selectedPodcast:this.selectedPodcast,selectedEpisodes:this.selectedEpisodes}})],1),M("k-column",{attrs:{width:"1/3"}},[M("PodEpisodesAutocomplete",{attrs:{selectedPodcast:this.selectedPodcast,selectedEpisodes:this.selectedEpisodes,onSelectEpisode:this.addSelectedEpisode,onRemoveEpisode:this.removeSelectedEpisode}}),M("k-headline",[X._v("Top10 Episodes")]),M("PodTopEpisodes",{attrs:{selectedPodcast:this.selectedPodcast,onSelectEpisode:this.addSelectedEpisode}})],1),M("k-column",{attrs:{width:"1/1"}},[M("k-line-field"),M("k-headline",{attrs:{size:"huge"}},[X._v("Episode Downloads")]),M("PodGraphEpisodes",{attrs:{selectedPodcast:this.selectedPodcast}})],1),M("k-column",{attrs:{width:"1/1"}},[M("k-line-field"),M("k-headline",{attrs:{size:"huge"}},[X._v("Feed Downloads")]),M("PodGraphFeeds",{attrs:{selectedPodcast:this.selectedPodcast}})],1)],1)],1)],1)},ct=[],dt=ae(lt,ht,ct);const gt=dt.exports;var Be=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ut(F){return F&&F.__esModule&&Object.prototype.hasOwnProperty.call(F,"default")?F.default:F}var Ge={exports:{}},Ce={exports:{}};/*! * ApexCharts v3.37.0 * (c) 2018-2023 ApexCharts * Released under the MIT License. - */var _e;function pt(){return _e||(_e=1,function(F,X){(function(M,z){F.exports=z()})(Be,function(){function M(v,e){var t=Object.keys(v);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(v);e&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(v,a).enumerable})),t.push.apply(t,i)}return t}function z(v){for(var e=1;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var t,i=U(v);if(e){var a=U(this).constructor;t=Reflect.construct(i,arguments,a)}else t=i.apply(this,arguments);return V(this,t)}}function he(v,e){return function(t){if(Array.isArray(t))return t}(v)||function(t,i){var a=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(a!=null){var s,n,r=[],o=!0,h=!1;try{for(a=a.call(t);!(o=(s=a.next()).done)&&(r.push(s.value),!i||r.length!==i);o=!0);}catch(c){h=!0,n=c}finally{try{o||a.return==null||a.return()}finally{if(h)throw n}}return r}}(v,e)||pe(v,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function $(v){return function(e){if(Array.isArray(e))return Ie(e)}(v)||function(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}(v)||pe(v)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function pe(v,e){if(v){if(typeof v=="string")return Ie(v,e);var t=Object.prototype.toString.call(v).slice(8,-1);return t==="Object"&&v.constructor&&(t=v.constructor.name),t==="Map"||t==="Set"?Array.from(v):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Ie(v,e):void 0}}function Ie(v,e){(e==null||e>v.length)&&(e=v.length);for(var t=0,i=new Array(e);t>16,r=i>>8&255,o=255&i;return"#"+(16777216+65536*(Math.round((a-n)*s)+n)+256*(Math.round((a-r)*s)+r)+(Math.round((a-o)*s)+o)).toString(16).slice(1)}},{key:"shadeColor",value:function(e,t){return v.isColorHex(t)?this.shadeHexColor(e,t):this.shadeRGBColor(e,t)}}],[{key:"bind",value:function(e,t){return function(){return e.apply(t,arguments)}}},{key:"isObject",value:function(e){return e&&G(e)==="object"&&!Array.isArray(e)&&e!=null}},{key:"is",value:function(e,t){return Object.prototype.toString.call(t)==="[object "+e+"]"}},{key:"listToArray",value:function(e){var t,i=[];for(t=0;ts.length?a:s})),t.length>i.length?t:i},0)}},{key:"hexToRgba",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"#999999",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:.6;e.substring(0,1)!=="#"&&(e="#999999");var i=e.replace("#","");i=i.match(new RegExp("(.{"+i.length/3+"})","g"));for(var a=0;a1&&arguments[1]!==void 0?arguments[1]:"x",i=e.toString().slice();return i=i.replace(/[` ~!@#$%^&*()|+\=?;:'",.<>{}[\]\\/]/gi,t)}},{key:"negToZero",value:function(e){return e<0?0:e}},{key:"moveIndexInArray",value:function(e,t,i){if(i>=e.length)for(var a=i-e.length+1;a--;)e.push(void 0);return e.splice(i,0,e.splice(t,1)[0]),e}},{key:"extractNumber",value:function(e){return parseFloat(e.replace(/[^\d.]*/g,""))}},{key:"findAncestor",value:function(e,t){for(;(e=e.parentElement)&&!e.classList.contains(t););return e}},{key:"setELstyles",value:function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e.style.key=t[i])}},{key:"isNumber",value:function(e){return!isNaN(e)&&parseFloat(Number(e))===e&&!isNaN(parseInt(e,10))}},{key:"isFloat",value:function(e){return Number(e)===e&&e%1!=0}},{key:"isSafari",value:function(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}},{key:"isFirefox",value:function(){return navigator.userAgent.toLowerCase().indexOf("firefox")>-1}},{key:"isIE11",value:function(){if(window.navigator.userAgent.indexOf("MSIE")!==-1||window.navigator.appVersion.indexOf("Trident/")>-1)return!0}},{key:"isIE",value:function(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);if(e.indexOf("Trident/")>0){var i=e.indexOf("rv:");return parseInt(e.substring(i+3,e.indexOf(".",i)),10)}var a=e.indexOf("Edge/");return a>0&&parseInt(e.substring(a+5,e.indexOf(".",a)),10)}}]),v}(),fe=function(){function v(e){O(this,v),this.ctx=e,this.w=e.w,this.setEasingFunctions()}return I(v,[{key:"setEasingFunctions",value:function(){var e;if(!this.w.globals.easing){switch(this.w.config.chart.animations.easing){case"linear":e="-";break;case"easein":e="<";break;case"easeout":e=">";break;case"easeinout":default:e="<>";break;case"swing":e=function(t){var i=1.70158;return(t-=1)*t*((i+1)*t+i)+1};break;case"bounce":e=function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375};break;case"elastic":e=function(t){return t===!!t?t:Math.pow(2,-10*t)*Math.sin((t-.075)*(2*Math.PI)/.3)+1}}this.w.globals.easing=e}}},{key:"animateLine",value:function(e,t,i,a){e.attr(t).animate(a).attr(i)}},{key:"animateMarker",value:function(e,t,i,a,s,n){t||(t=0),e.attr({r:t,width:t,height:t}).animate(a,s).attr({r:i,width:i.width,height:i.height}).afterAll(function(){n()})}},{key:"animateCircle",value:function(e,t,i,a,s){e.attr({r:t.r,cx:t.cx,cy:t.cy}).animate(a,s).attr({r:i.r,cx:i.cx,cy:i.cy})}},{key:"animateRect",value:function(e,t,i,a,s){e.attr(t).animate(a).attr(i).afterAll(function(){return s()})}},{key:"animatePathsGradually",value:function(e){var t=e.el,i=e.realIndex,a=e.j,s=e.fill,n=e.pathFrom,r=e.pathTo,o=e.speed,h=e.delay,c=this.w,d=0;c.config.chart.animations.animateGradually.enabled&&(d=c.config.chart.animations.animateGradually.delay),c.config.chart.animations.dynamicAnimation.enabled&&c.globals.dataChanged&&c.config.chart.type!=="bar"&&(d=0),this.morphSVG(t,i,a,c.config.chart.type!=="line"||c.globals.comboCharts?s:"stroke",n,r,o,h*d)}},{key:"showDelayedElements",value:function(){this.w.globals.delayedElements.forEach(function(e){e.el.classList.remove("apexcharts-element-hidden")})}},{key:"animationCompleted",value:function(e){var t=this.w;t.globals.animationEnded||(t.globals.animationEnded=!0,this.showDelayedElements(),typeof t.config.chart.events.animationEnd=="function"&&t.config.chart.events.animationEnd(this.ctx,{el:e,w:t}))}},{key:"morphSVG",value:function(e,t,i,a,s,n,r,o){var h=this,c=this.w;s||(s=e.attr("pathFrom")),n||(n=e.attr("pathTo"));var d=function(g){return c.config.chart.type==="radar"&&(r=1),"M 0 ".concat(c.globals.gridHeight)};(!s||s.indexOf("undefined")>-1||s.indexOf("NaN")>-1)&&(s=d()),(!n||n.indexOf("undefined")>-1||n.indexOf("NaN")>-1)&&(n=d()),c.globals.shouldAnimate||(r=1),e.plot(s).animate(1,c.globals.easing,o).plot(s).animate(r,c.globals.easing,o).plot(n).afterAll(function(){L.isNumber(i)?i===c.globals.series[c.globals.maxValsInArrayIndex].length-2&&c.globals.shouldAnimate&&h.animationCompleted(e):a!=="none"&&c.globals.shouldAnimate&&(!c.globals.comboCharts&&t===c.globals.series.length-1||c.globals.comboCharts)&&h.animationCompleted(e),h.showDelayedElements()})}}]),v}(),ee=function(){function v(e){O(this,v),this.ctx=e,this.w=e.w}return I(v,[{key:"getDefaultFilter",value:function(e,t){var i=this.w;e.unfilter(!0),new window.SVG.Filter().size("120%","180%","-5%","-40%"),i.config.states.normal.filter!=="none"?this.applyFilter(e,t,i.config.states.normal.filter.type,i.config.states.normal.filter.value):i.config.chart.dropShadow.enabled&&this.dropShadow(e,i.config.chart.dropShadow,t)}},{key:"addNormalFilter",value:function(e,t){var i=this.w;i.config.chart.dropShadow.enabled&&!e.node.classList.contains("apexcharts-marker")&&this.dropShadow(e,i.config.chart.dropShadow,t)}},{key:"addLightenFilter",value:function(e,t,i){var a=this,s=this.w,n=i.intensity;e.unfilter(!0),new window.SVG.Filter,e.filter(function(r){var o=s.config.chart.dropShadow;(o.enabled?a.addShadow(r,t,o):r).componentTransfer({rgb:{type:"linear",slope:1.5,intercept:n}})}),e.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(e.filterer.node)}},{key:"addDarkenFilter",value:function(e,t,i){var a=this,s=this.w,n=i.intensity;e.unfilter(!0),new window.SVG.Filter,e.filter(function(r){var o=s.config.chart.dropShadow;(o.enabled?a.addShadow(r,t,o):r).componentTransfer({rgb:{type:"linear",slope:n}})}),e.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(e.filterer.node)}},{key:"applyFilter",value:function(e,t,i){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:.5;switch(i){case"none":this.addNormalFilter(e,t);break;case"lighten":this.addLightenFilter(e,t,{intensity:a});break;case"darken":this.addDarkenFilter(e,t,{intensity:a})}}},{key:"addShadow",value:function(e,t,i){var a=i.blur,s=i.top,n=i.left,r=i.color,o=i.opacity,h=e.flood(Array.isArray(r)?r[t]:r,o).composite(e.sourceAlpha,"in").offset(n,s).gaussianBlur(a).merge(e.source);return e.blend(e.source,h)}},{key:"dropShadow",value:function(e,t){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=t.top,s=t.left,n=t.blur,r=t.color,o=t.opacity,h=t.noUserSpaceOnUse,c=this.w;return e.unfilter(!0),L.isIE()&&c.config.chart.type==="radialBar"||(r=Array.isArray(r)?r[i]:r,e.filter(function(d){var g=null;g=L.isSafari()||L.isFirefox()||L.isIE()?d.flood(r,o).composite(d.sourceAlpha,"in").offset(s,a).gaussianBlur(n):d.flood(r,o).composite(d.sourceAlpha,"in").offset(s,a).gaussianBlur(n).merge(d.source),d.blend(d.source,g)}),h||e.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(e.filterer.node)),e}},{key:"setSelectionFilter",value:function(e,t,i){var a=this.w;if(a.globals.selectedDataPoints[t]!==void 0&&a.globals.selectedDataPoints[t].indexOf(i)>-1){e.node.setAttribute("selected",!0);var s=a.config.states.active.filter;s!=="none"&&this.applyFilter(e,t,s.type,s.value)}}},{key:"_scaleFilterSize",value:function(e){(function(t){for(var i in t)t.hasOwnProperty(i)&&e.setAttribute(i,t[i])})({width:"200%",height:"200%",x:"-50%",y:"-50%"})}}]),v}(),Y=function(){function v(e){O(this,v),this.ctx=e,this.w=e.w}return I(v,[{key:"roundPathCorners",value:function(e,t){function i(A,P,C){var E=P.x-A.x,T=P.y-A.y,R=Math.sqrt(E*E+T*T);return a(A,P,Math.min(1,C/R))}function a(A,P,C){return{x:A.x+(P.x-A.x)*C,y:A.y+(P.y-A.y)*C}}function s(A,P){A.length>2&&(A[A.length-2]=P.x,A[A.length-1]=P.y)}function n(A){return{x:parseFloat(A[A.length-2]),y:parseFloat(A[A.length-1])}}var r=e.split(/[,\s]/).reduce(function(A,P){var C=P.match("([a-zA-Z])(.+)");return C?(A.push(C[1]),A.push(C[2])):A.push(P),A},[]).reduce(function(A,P){return parseFloat(P)==P&&A.length?A[A.length-1].push(P):A.push([P]),A},[]),o=[];if(r.length>1){var h=n(r[0]),c=null;r[r.length-1][0]=="Z"&&r[0].length>2&&(c=["L",h.x,h.y],r[r.length-1]=c),o.push(r[0]);for(var d=1;d2&&p[0]=="L"&&x.length>2&&x[0]=="L"){var f,y,w=n(g),S=n(p),k=n(x);f=i(S,w,t),y=i(S,k,t),s(p,f),p.origPoint=S,o.push(p);var l=a(f,S,.5),u=a(S,y,.5),m=["C",l.x,l.y,u.x,u.y,y.x,y.y];m.origPoint=S,o.push(m)}else o.push(p)}if(c){var b=n(o[o.length-1]);o.push(["Z"]),s(o[0],b)}}else o=r;return o.reduce(function(A,P){return A+P.join(" ")+" "},"")}},{key:"drawLine",value:function(e,t,i,a){var s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"#a8a8a8",n=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0,r=arguments.length>6&&arguments[6]!==void 0?arguments[6]:null,o=arguments.length>7&&arguments[7]!==void 0?arguments[7]:"butt",h=this.w,c=h.globals.dom.Paper.line().attr({x1:e,y1:t,x2:i,y2:a,stroke:s,"stroke-dasharray":n,"stroke-width":r,"stroke-linecap":o});return c}},{key:"drawRect",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,n=arguments.length>5&&arguments[5]!==void 0?arguments[5]:"#fefefe",r=arguments.length>6&&arguments[6]!==void 0?arguments[6]:1,o=arguments.length>7&&arguments[7]!==void 0?arguments[7]:null,h=arguments.length>8&&arguments[8]!==void 0?arguments[8]:null,c=arguments.length>9&&arguments[9]!==void 0?arguments[9]:0,d=this.w,g=d.globals.dom.Paper.rect();return g.attr({x:e,y:t,width:i>0?i:0,height:a>0?a:0,rx:s,ry:s,opacity:r,"stroke-width":o!==null?o:0,stroke:h!==null?h:"none","stroke-dasharray":c}),g.node.setAttribute("fill",n),g}},{key:"drawPolygon",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"#e1e1e1",i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"none",s=this.w,n=s.globals.dom.Paper.polygon(e).attr({fill:a,stroke:t,"stroke-width":i});return n}},{key:"drawCircle",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,i=this.w;e<0&&(e=0);var a=i.globals.dom.Paper.circle(2*e);return t!==null&&a.attr(t),a}},{key:"drawPath",value:function(e){var t=e.d,i=t===void 0?"":t,a=e.stroke,s=a===void 0?"#a8a8a8":a,n=e.strokeWidth,r=n===void 0?1:n,o=e.fill,h=e.fillOpacity,c=h===void 0?1:h,d=e.strokeOpacity,g=d===void 0?1:d,p=e.classes,x=e.strokeLinecap,f=x===void 0?null:x,y=e.strokeDashArray,w=y===void 0?0:y,S=this.w;return f===null&&(f=S.config.stroke.lineCap),(i.indexOf("undefined")>-1||i.indexOf("NaN")>-1)&&(i="M 0 ".concat(S.globals.gridHeight)),S.globals.dom.Paper.path(i).attr({fill:o,"fill-opacity":c,stroke:s,"stroke-opacity":g,"stroke-linecap":f,"stroke-width":r,"stroke-dasharray":w,class:p})}},{key:"group",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,t=this.w,i=t.globals.dom.Paper.group();return e!==null&&i.attr(e),i}},{key:"move",value:function(e,t){var i=["M",e,t].join(" ");return i}},{key:"line",value:function(e,t){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,a=null;return i===null?a=[" L",e,t].join(" "):i==="H"?a=[" H",e].join(" "):i==="V"&&(a=[" V",t].join(" ")),a}},{key:"curve",value:function(e,t,i,a,s,n){var r=["C",e,t,i,a,s,n].join(" ");return r}},{key:"quadraticCurve",value:function(e,t,i,a){return["Q",e,t,i,a].join(" ")}},{key:"arc",value:function(e,t,i,a,s,n,r){var o=arguments.length>7&&arguments[7]!==void 0&&arguments[7],h="A";o&&(h="a");var c=[h,e,t,i,a,s,n,r].join(" ");return c}},{key:"renderPaths",value:function(e){var t,i=e.j,a=e.realIndex,s=e.pathFrom,n=e.pathTo,r=e.stroke,o=e.strokeWidth,h=e.strokeLinecap,c=e.fill,d=e.animationDelay,g=e.initialSpeed,p=e.dataChangeSpeed,x=e.className,f=e.shouldClipToGrid,y=f===void 0||f,w=e.bindEventsOnPaths,S=w===void 0||w,k=e.drawShadow,l=k===void 0||k,u=this.w,m=new ee(this.ctx),b=new fe(this.ctx),A=this.w.config.chart.animations.enabled,P=A&&this.w.config.chart.animations.dynamicAnimation.enabled,C=!!(A&&!u.globals.resized||P&&u.globals.dataChanged&&u.globals.shouldAnimate);C?t=s:(t=n,u.globals.animationEnded=!0);var E=u.config.stroke.dashArray,T=0;T=Array.isArray(E)?E[a]:u.config.stroke.dashArray;var R=this.drawPath({d:t,stroke:r,strokeWidth:o,fill:c,fillOpacity:1,classes:x,strokeLinecap:h,strokeDashArray:T});if(R.attr("index",a),y&&R.attr({"clip-path":"url(#gridRectMask".concat(u.globals.cuid,")")}),u.config.states.normal.filter.type!=="none")m.getDefaultFilter(R,a);else if(u.config.chart.dropShadow.enabled&&l&&(!u.config.chart.dropShadow.enabledOnSeries||u.config.chart.dropShadow.enabledOnSeries&&u.config.chart.dropShadow.enabledOnSeries.indexOf(a)!==-1)){var H=u.config.chart.dropShadow;m.dropShadow(R,H,a)}S&&(R.node.addEventListener("mouseenter",this.pathMouseEnter.bind(this,R)),R.node.addEventListener("mouseleave",this.pathMouseLeave.bind(this,R)),R.node.addEventListener("mousedown",this.pathMouseDown.bind(this,R))),R.attr({pathTo:n,pathFrom:s});var W={el:R,j:i,realIndex:a,pathFrom:s,pathTo:n,fill:c,strokeWidth:o,delay:d};return!A||u.globals.resized||u.globals.dataChanged?!u.globals.resized&&u.globals.dataChanged||b.showDelayedElements():b.animatePathsGradually(z(z({},W),{},{speed:g})),u.globals.dataChanged&&P&&C&&b.animatePathsGradually(z(z({},W),{},{speed:p})),R}},{key:"drawPattern",value:function(e,t,i){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"#a8a8a8",s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,n=this.w,r=n.globals.dom.Paper.pattern(t,i,function(o){e==="horizontalLines"?o.line(0,0,i,0).stroke({color:a,width:s+1}):e==="verticalLines"?o.line(0,0,0,t).stroke({color:a,width:s+1}):e==="slantedLines"?o.line(0,0,t,i).stroke({color:a,width:s}):e==="squares"?o.rect(t,i).fill("none").stroke({color:a,width:s}):e==="circles"&&o.circle(t).fill("none").stroke({color:a,width:s})});return r}},{key:"drawGradient",value:function(e,t,i,a,s){var n,r=arguments.length>5&&arguments[5]!==void 0?arguments[5]:null,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:null,h=arguments.length>7&&arguments[7]!==void 0?arguments[7]:null,c=arguments.length>8&&arguments[8]!==void 0?arguments[8]:0,d=this.w;t.length<9&&t.indexOf("#")===0&&(t=L.hexToRgba(t,a)),i.length<9&&i.indexOf("#")===0&&(i=L.hexToRgba(i,s));var g=0,p=1,x=1,f=null;o!==null&&(g=o[0]!==void 0?o[0]/100:0,p=o[1]!==void 0?o[1]/100:1,x=o[2]!==void 0?o[2]/100:1,f=o[3]!==void 0?o[3]/100:null);var y=!(d.config.chart.type!=="donut"&&d.config.chart.type!=="pie"&&d.config.chart.type!=="polarArea"&&d.config.chart.type!=="bubble");if(n=h===null||h.length===0?d.globals.dom.Paper.gradient(y?"radial":"linear",function(k){k.at(g,t,a),k.at(p,i,s),k.at(x,i,s),f!==null&&k.at(f,t,a)}):d.globals.dom.Paper.gradient(y?"radial":"linear",function(k){(Array.isArray(h[c])?h[c]:h).forEach(function(l){k.at(l.offset/100,l.color,l.opacity)})}),y){var w=d.globals.gridWidth/2,S=d.globals.gridHeight/2;d.config.chart.type!=="bubble"?n.attr({gradientUnits:"userSpaceOnUse",cx:w,cy:S,r}):n.attr({cx:.5,cy:.5,r:.8,fx:.2,fy:.2})}else e==="vertical"?n.from(0,0).to(0,1):e==="diagonal"?n.from(0,0).to(1,1):e==="horizontal"?n.from(0,1).to(1,1):e==="diagonal2"&&n.from(1,0).to(0,1);return n}},{key:"getTextBasedOnMaxWidth",value:function(e){var t=e.text,i=e.maxWidth,a=e.fontSize,s=e.fontFamily,n=this.getTextRects(t,a,s),r=n.width/t.length,o=Math.floor(i/r);return i-1){var o=i.globals.selectedDataPoints[s].indexOf(n);i.globals.selectedDataPoints[s].splice(o,1)}}else{if(!i.config.states.active.allowMultipleDataPointsSelection&&i.globals.selectedDataPoints.length>0){i.globals.selectedDataPoints=[];var h=i.globals.dom.Paper.select(".apexcharts-series path").members,c=i.globals.dom.Paper.select(".apexcharts-series circle, .apexcharts-series rect").members,d=function(x){Array.prototype.forEach.call(x,function(f){f.node.setAttribute("selected","false"),a.getDefaultFilter(f,s)})};d(h),d(c)}e.node.setAttribute("selected","true"),r="true",i.globals.selectedDataPoints[s]===void 0&&(i.globals.selectedDataPoints[s]=[]),i.globals.selectedDataPoints[s].push(n)}if(r==="true"){var g=i.config.states.active.filter;if(g!=="none")a.applyFilter(e,s,g.type,g.value);else if(i.config.states.hover.filter!=="none"&&!i.globals.isTouchDevice){var p=i.config.states.hover.filter;a.applyFilter(e,s,p.type,p.value)}}else i.config.states.active.filter.type!=="none"&&(i.config.states.hover.filter.type==="none"||i.globals.isTouchDevice?a.getDefaultFilter(e,s):(p=i.config.states.hover.filter,a.applyFilter(e,s,p.type,p.value)));typeof i.config.chart.events.dataPointSelection=="function"&&i.config.chart.events.dataPointSelection(t,this.ctx,{selectedDataPoints:i.globals.selectedDataPoints,seriesIndex:s,dataPointIndex:n,w:i}),t&&this.ctx.events.fireEvent("dataPointSelection",[t,this.ctx,{selectedDataPoints:i.globals.selectedDataPoints,seriesIndex:s,dataPointIndex:n,w:i}])}},{key:"rotateAroundCenter",value:function(e){var t={};return e&&typeof e.getBBox=="function"&&(t=e.getBBox()),{x:t.x+t.width/2,y:t.y+t.height/2}}},{key:"getTextRects",value:function(e,t,i,a){var s=!(arguments.length>4&&arguments[4]!==void 0)||arguments[4],n=this.w,r=this.drawText({x:-200,y:-200,text:e,textAnchor:"start",fontSize:t,fontFamily:i,foreColor:"#fff",opacity:0});a&&r.attr("transform",a),n.globals.dom.Paper.add(r);var o=r.bbox();return s||(o=r.node.getBoundingClientRect()),r.remove(),{width:o.width,height:o.height}}},{key:"placeTextWithEllipsis",value:function(e,t,i){if(typeof e.getComputedTextLength=="function"&&(e.textContent=t,t.length>0&&e.getComputedTextLength()>=i/1.1)){for(var a=t.length-3;a>0;a-=3)if(e.getSubStringLength(0,a)<=i/1.1)return void(e.textContent=t.substring(0,a)+"...");e.textContent="."}}}],[{key:"setAttrs",value:function(e,t){for(var i in t)t.hasOwnProperty(i)&&e.setAttribute(i,t[i])}}]),v}(),q=function(){function v(e){O(this,v),this.ctx=e,this.w=e.w}return I(v,[{key:"getStackedSeriesTotals",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=this.w,i=[];if(t.globals.series.length===0)return i;for(var a=0;a0&&arguments[0]!==void 0?arguments[0]:null;return e===null?this.w.config.series.reduce(function(t,i){return t+i},0):this.w.globals.series[e].reduce(function(t,i){return t+i},0)}},{key:"isSeriesNull",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return(e===null?this.w.config.series.filter(function(t){return t!==null}):this.w.config.series[e].data.filter(function(t){return t!==null})).length===0}},{key:"seriesHaveSameValues",value:function(e){return this.w.globals.series[e].every(function(t,i,a){return t===a[0]})}},{key:"getCategoryLabels",value:function(e){var t=this.w,i=e.slice();return t.config.xaxis.convertedCatToNumeric&&(i=e.map(function(a,s){return t.config.xaxis.labels.formatter(a-t.globals.minX+1)})),i}},{key:"getLargestSeries",value:function(){var e=this.w;e.globals.maxValsInArrayIndex=e.globals.series.map(function(t){return t.length}).indexOf(Math.max.apply(Math,e.globals.series.map(function(t){return t.length})))}},{key:"getLargestMarkerSize",value:function(){var e=this.w,t=0;return e.globals.markers.size.forEach(function(i){t=Math.max(t,i)}),e.config.markers.discrete&&e.config.markers.discrete.length&&e.config.markers.discrete.forEach(function(i){t=Math.max(t,i.size)}),t>0&&(t+=e.config.markers.hover.sizeOffset+1),e.globals.markers.largestSize=t,t}},{key:"getSeriesTotals",value:function(){var e=this.w;e.globals.seriesTotals=e.globals.series.map(function(t,i){var a=0;if(Array.isArray(t))for(var s=0;se&&i.globals.seriesX[s][r]0&&(t=!0),{comboBarCount:i,comboCharts:t}}},{key:"extendArrayProps",value:function(e,t,i){return t.yaxis&&(t=e.extendYAxis(t,i)),t.annotations&&(t.annotations.yaxis&&(t=e.extendYAxisAnnotations(t)),t.annotations.xaxis&&(t=e.extendXAxisAnnotations(t)),t.annotations.points&&(t=e.extendPointAnnotations(t))),t}}]),v}(),Pe=function(){function v(e){O(this,v),this.w=e.w,this.annoCtx=e}return I(v,[{key:"setOrientations",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,i=this.w;if(e.label.orientation==="vertical"){var a=t!==null?t:0,s=i.globals.dom.baseEl.querySelector(".apexcharts-xaxis-annotations .apexcharts-xaxis-annotation-label[rel='".concat(a,"']"));if(s!==null){var n=s.getBoundingClientRect();s.setAttribute("x",parseFloat(s.getAttribute("x"))-n.height+4),e.label.position==="top"?s.setAttribute("y",parseFloat(s.getAttribute("y"))+n.width):s.setAttribute("y",parseFloat(s.getAttribute("y"))-n.width);var r=this.annoCtx.graphics.rotateAroundCenter(s),o=r.x,h=r.y;s.setAttribute("transform","rotate(-90 ".concat(o," ").concat(h,")"))}}}},{key:"addBackgroundToAnno",value:function(e,t){var i=this.w;if(!e||t.label.text===void 0||t.label.text!==void 0&&!String(t.label.text).trim())return null;var a=i.globals.dom.baseEl.querySelector(".apexcharts-grid").getBoundingClientRect(),s=e.getBoundingClientRect(),n=t.label.style.padding.left,r=t.label.style.padding.right,o=t.label.style.padding.top,h=t.label.style.padding.bottom;t.label.orientation==="vertical"&&(o=t.label.style.padding.left,h=t.label.style.padding.right,n=t.label.style.padding.top,r=t.label.style.padding.bottom);var c=s.left-a.left-n,d=s.top-a.top-o,g=this.annoCtx.graphics.drawRect(c-i.globals.barPadForNumericAxis,d,s.width+n+r,s.height+o+h,t.label.borderRadius,t.label.style.background,1,t.label.borderWidth,t.label.borderColor,0);return t.id&&g.node.classList.add(t.id),g}},{key:"annotationsBackground",value:function(){var e=this,t=this.w,i=function(a,s,n){var r=t.globals.dom.baseEl.querySelector(".apexcharts-".concat(n,"-annotations .apexcharts-").concat(n,"-annotation-label[rel='").concat(s,"']"));if(r){var o=r.parentNode,h=e.addBackgroundToAnno(r,a);h&&(o.insertBefore(h.node,r),a.label.mouseEnter&&h.node.addEventListener("mouseenter",a.label.mouseEnter.bind(e,a)),a.label.mouseLeave&&h.node.addEventListener("mouseleave",a.label.mouseLeave.bind(e,a)),a.label.click&&h.node.addEventListener("click",a.label.click.bind(e,a)))}};t.config.annotations.xaxis.map(function(a,s){i(a,s,"xaxis")}),t.config.annotations.yaxis.map(function(a,s){i(a,s,"yaxis")}),t.config.annotations.points.map(function(a,s){i(a,s,"point")})}},{key:"getY1Y2",value:function(e,t){var i,a=e==="y1"?t.y:t.y2,s=this.w;if(this.annoCtx.invertAxis){var n=s.globals.labels.indexOf(a);s.config.xaxis.convertedCatToNumeric&&(n=s.globals.categoryLabels.indexOf(a));var r=s.globals.dom.baseEl.querySelector(".apexcharts-yaxis-texts-g text:nth-child("+(n+1)+")");r&&(i=parseFloat(r.getAttribute("y")))}else{var o;s.config.yaxis[t.yAxisIndex].logarithmic?o=(a=new q(this.annoCtx.ctx).getLogVal(a,t.yAxisIndex))/s.globals.yLogRatio[t.yAxisIndex]:o=(a-s.globals.minYArr[t.yAxisIndex])/(s.globals.yRange[t.yAxisIndex]/s.globals.gridHeight),i=s.globals.gridHeight-o,!t.marker||t.y!==void 0&&t.y!==null||(i=0),s.config.yaxis[t.yAxisIndex]&&s.config.yaxis[t.yAxisIndex].reversed&&(i=o)}return typeof a=="string"&&a.indexOf("px")>-1&&(i=parseFloat(a)),i}},{key:"getX1X2",value:function(e,t){var i=this.w,a=this.annoCtx.invertAxis?i.globals.minY:i.globals.minX,s=this.annoCtx.invertAxis?i.globals.maxY:i.globals.maxX,n=this.annoCtx.invertAxis?i.globals.yRange[0]:i.globals.xRange,r=(t.x-a)/(n/i.globals.gridWidth);this.annoCtx.inversedReversedAxis&&(r=(s-t.x)/(n/i.globals.gridWidth)),i.config.xaxis.type!=="category"&&!i.config.xaxis.convertedCatToNumeric||this.annoCtx.invertAxis||i.globals.dataFormatXNumeric||(r=this.getStringX(t.x));var o=(t.x2-a)/(n/i.globals.gridWidth);return this.annoCtx.inversedReversedAxis&&(o=(s-t.x2)/(n/i.globals.gridWidth)),i.config.xaxis.type!=="category"&&!i.config.xaxis.convertedCatToNumeric||this.annoCtx.invertAxis||i.globals.dataFormatXNumeric||(o=this.getStringX(t.x2)),t.x!==void 0&&t.x!==null||!t.marker||(r=i.globals.gridWidth),e==="x1"&&typeof t.x=="string"&&t.x.indexOf("px")>-1&&(r=parseFloat(t.x)),e==="x2"&&typeof t.x2=="string"&&t.x2.indexOf("px")>-1&&(o=parseFloat(t.x2)),e==="x1"?r:o}},{key:"getStringX",value:function(e){var t=this.w,i=e;t.config.xaxis.convertedCatToNumeric&&t.globals.categoryLabels.length&&(e=t.globals.categoryLabels.indexOf(e)+1);var a=t.globals.labels.indexOf(e),s=t.globals.dom.baseEl.querySelector(".apexcharts-xaxis-texts-g text:nth-child("+(a+1)+")");return s&&(i=parseFloat(s.getAttribute("x"))),i}}]),v}(),ki=function(){function v(e){O(this,v),this.w=e.w,this.annoCtx=e,this.invertAxis=this.annoCtx.invertAxis,this.helpers=new Pe(this.annoCtx)}return I(v,[{key:"addXaxisAnnotation",value:function(e,t,i){var a,s=this.w,n=this.helpers.getX1X2("x1",e),r=e.label.text,o=e.strokeDashArray;if(L.isNumber(n)){if(e.x2===null||e.x2===void 0){var h=this.annoCtx.graphics.drawLine(n+e.offsetX,0+e.offsetY,n+e.offsetX,s.globals.gridHeight+e.offsetY,e.borderColor,o,e.borderWidth);t.appendChild(h.node),e.id&&h.node.classList.add(e.id)}else{if((a=this.helpers.getX1X2("x2",e))r){var c=r;r=a,a=c}var d=this.annoCtx.graphics.drawRect(0+e.offsetX,a+e.offsetY,this._getYAxisAnnotationWidth(e),r-a,0,e.fillColor,e.opacity,1,e.borderColor,n);d.node.classList.add("apexcharts-annotation-rect"),d.attr("clip-path","url(#gridRectMask".concat(s.globals.cuid,")")),t.appendChild(d.node),e.id&&d.node.classList.add(e.id)}var g=e.label.position==="right"?s.globals.gridWidth:e.label.position==="center"?s.globals.gridWidth/2:0,p=this.annoCtx.graphics.drawText({x:g+e.label.offsetX,y:(a??r)+e.label.offsetY-3,text:o,textAnchor:e.label.textAnchor,fontSize:e.label.style.fontSize,fontFamily:e.label.style.fontFamily,fontWeight:e.label.style.fontWeight,foreColor:e.label.style.color,cssClass:"apexcharts-yaxis-annotation-label ".concat(e.label.style.cssClass," ").concat(e.id?e.id:"")});p.attr({rel:i}),t.appendChild(p.node)}},{key:"_getYAxisAnnotationWidth",value:function(e){var t=this.w;return t.globals.gridWidth,(e.width.indexOf("%")>-1?t.globals.gridWidth*parseInt(e.width,10)/100:parseInt(e.width,10))+e.offsetX}},{key:"drawYAxisAnnotations",value:function(){var e=this,t=this.w,i=this.annoCtx.graphics.group({class:"apexcharts-yaxis-annotations"});return t.config.annotations.yaxis.map(function(a,s){e.addYaxisAnnotation(a,i.node,s)}),i}}]),v}(),Si=function(){function v(e){O(this,v),this.w=e.w,this.annoCtx=e,this.helpers=new Pe(this.annoCtx)}return I(v,[{key:"addPointAnnotation",value:function(e,t,i){this.w;var a=this.helpers.getX1X2("x1",e),s=this.helpers.getY1Y2("y1",e);if(L.isNumber(a)){var n={pSize:e.marker.size,pointStrokeWidth:e.marker.strokeWidth,pointFillColor:e.marker.fillColor,pointStrokeColor:e.marker.strokeColor,shape:e.marker.shape,pRadius:e.marker.radius,class:"apexcharts-point-annotation-marker ".concat(e.marker.cssClass," ").concat(e.id?e.id:"")},r=this.annoCtx.graphics.drawMarker(a+e.marker.offsetX,s+e.marker.offsetY,n);t.appendChild(r.node);var o=e.label.text?e.label.text:"",h=this.annoCtx.graphics.drawText({x:a+e.label.offsetX,y:s+e.label.offsetY-e.marker.size-parseFloat(e.label.style.fontSize)/1.6,text:o,textAnchor:e.label.textAnchor,fontSize:e.label.style.fontSize,fontFamily:e.label.style.fontFamily,fontWeight:e.label.style.fontWeight,foreColor:e.label.style.color,cssClass:"apexcharts-point-annotation-label ".concat(e.label.style.cssClass," ").concat(e.id?e.id:"")});if(h.attr({rel:i}),t.appendChild(h.node),e.customSVG.SVG){var c=this.annoCtx.graphics.group({class:"apexcharts-point-annotations-custom-svg "+e.customSVG.cssClass});c.attr({transform:"translate(".concat(a+e.customSVG.offsetX,", ").concat(s+e.customSVG.offsetY,")")}),c.node.innerHTML=e.customSVG.SVG,t.appendChild(c.node)}if(e.image.path){var d=e.image.width?e.image.width:20,g=e.image.height?e.image.height:20;r=this.annoCtx.addImage({x:a+e.image.offsetX-d/2,y:s+e.image.offsetY-g/2,width:d,height:g,path:e.image.path,appendTo:".apexcharts-point-annotations"})}e.mouseEnter&&r.node.addEventListener("mouseenter",e.mouseEnter.bind(this,e)),e.mouseLeave&&r.node.addEventListener("mouseleave",e.mouseLeave.bind(this,e)),e.click&&r.node.addEventListener("click",e.click.bind(this,e))}}},{key:"drawPointAnnotations",value:function(){var e=this,t=this.w,i=this.annoCtx.graphics.group({class:"apexcharts-point-annotations"});return t.config.annotations.points.map(function(a,s){e.addPointAnnotation(a,i.node,s)}),i}}]),v}(),Ve={name:"en",options:{months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],toolbar:{exportToSVG:"Download SVG",exportToPNG:"Download PNG",exportToCSV:"Download CSV",menu:"Menu",selection:"Selection",selectionZoom:"Selection Zoom",zoomIn:"Zoom In",zoomOut:"Zoom Out",pan:"Panning",reset:"Reset Zoom"}}},de=function(){function v(){O(this,v),this.yAxis={show:!0,showAlways:!1,showForNullSeries:!0,seriesName:void 0,opposite:!1,reversed:!1,logarithmic:!1,logBase:10,tickAmount:void 0,forceNiceScale:!1,max:void 0,min:void 0,floating:!1,decimalsInFloat:void 0,labels:{show:!0,minWidth:0,maxWidth:160,offsetX:0,offsetY:0,align:void 0,rotate:0,padding:20,style:{colors:[],fontSize:"11px",fontWeight:400,fontFamily:void 0,cssClass:""},formatter:void 0},axisBorder:{show:!1,color:"#e0e0e0",width:1,offsetX:0,offsetY:0},axisTicks:{show:!1,color:"#e0e0e0",width:6,offsetX:0,offsetY:0},title:{text:void 0,rotate:-90,offsetY:0,offsetX:0,style:{color:void 0,fontSize:"11px",fontWeight:900,fontFamily:void 0,cssClass:""}},tooltip:{enabled:!1,offsetX:0},crosshairs:{show:!0,position:"front",stroke:{color:"#b6b6b6",width:1,dashArray:0}}},this.pointAnnotation={id:void 0,x:0,y:null,yAxisIndex:0,seriesIndex:0,mouseEnter:void 0,mouseLeave:void 0,click:void 0,marker:{size:4,fillColor:"#fff",strokeWidth:2,strokeColor:"#333",shape:"circle",offsetX:0,offsetY:0,radius:2,cssClass:""},label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"middle",offsetX:0,offsetY:0,mouseEnter:void 0,mouseLeave:void 0,click:void 0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}},customSVG:{SVG:void 0,cssClass:void 0,offsetX:0,offsetY:0},image:{path:void 0,width:20,height:20,offsetX:0,offsetY:0}},this.yAxisAnnotation={id:void 0,y:0,y2:null,strokeDashArray:1,fillColor:"#c2c2c2",borderColor:"#c2c2c2",borderWidth:1,opacity:.3,offsetX:0,offsetY:0,width:"100%",yAxisIndex:0,label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"end",position:"right",offsetX:0,offsetY:-3,mouseEnter:void 0,mouseLeave:void 0,click:void 0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}}},this.xAxisAnnotation={id:void 0,x:0,x2:null,strokeDashArray:1,fillColor:"#c2c2c2",borderColor:"#c2c2c2",borderWidth:1,opacity:.3,offsetX:0,offsetY:0,label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"middle",orientation:"vertical",position:"top",offsetX:0,offsetY:0,mouseEnter:void 0,mouseLeave:void 0,click:void 0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}}},this.text={x:0,y:0,text:"",textAnchor:"start",foreColor:void 0,fontSize:"13px",fontFamily:void 0,fontWeight:400,appendTo:".apexcharts-annotations",backgroundColor:"transparent",borderColor:"#c2c2c2",borderRadius:0,borderWidth:0,paddingLeft:4,paddingRight:4,paddingTop:2,paddingBottom:2}}return I(v,[{key:"init",value:function(){return{annotations:{position:"front",yaxis:[this.yAxisAnnotation],xaxis:[this.xAxisAnnotation],points:[this.pointAnnotation],texts:[],images:[],shapes:[]},chart:{animations:{enabled:!0,easing:"easeinout",speed:800,animateGradually:{delay:150,enabled:!0},dynamicAnimation:{enabled:!0,speed:350}},background:"transparent",locales:[Ve],defaultLocale:"en",dropShadow:{enabled:!1,enabledOnSeries:void 0,top:2,left:2,blur:4,color:"#000",opacity:.35},events:{animationEnd:void 0,beforeMount:void 0,mounted:void 0,updated:void 0,click:void 0,mouseMove:void 0,mouseLeave:void 0,xAxisLabelClick:void 0,legendClick:void 0,markerClick:void 0,selection:void 0,dataPointSelection:void 0,dataPointMouseEnter:void 0,dataPointMouseLeave:void 0,beforeZoom:void 0,beforeResetZoom:void 0,zoomed:void 0,scrolled:void 0,brushScrolled:void 0},foreColor:"#373d3f",fontFamily:"Helvetica, Arial, sans-serif",height:"auto",parentHeightOffset:15,redrawOnParentResize:!0,redrawOnWindowResize:!0,id:void 0,group:void 0,offsetX:0,offsetY:0,selection:{enabled:!1,type:"x",fill:{color:"#24292e",opacity:.1},stroke:{width:1,color:"#24292e",opacity:.4,dashArray:3},xaxis:{min:void 0,max:void 0},yaxis:{min:void 0,max:void 0}},sparkline:{enabled:!1},brush:{enabled:!1,autoScaleYaxis:!0,target:void 0},stacked:!1,stackType:"normal",toolbar:{show:!0,offsetX:0,offsetY:0,tools:{download:!0,selection:!0,zoom:!0,zoomin:!0,zoomout:!0,pan:!0,reset:!0,customIcons:[]},export:{csv:{filename:void 0,columnDelimiter:",",headerCategory:"category",headerValue:"value",dateFormatter:function(e){return new Date(e).toDateString()}},png:{filename:void 0},svg:{filename:void 0}},autoSelected:"zoom"},type:"line",width:"100%",zoom:{enabled:!0,type:"x",autoScaleYaxis:!1,zoomedArea:{fill:{color:"#90CAF9",opacity:.4},stroke:{color:"#0D47A1",opacity:.4,width:1}}}},plotOptions:{area:{fillTo:"origin"},bar:{horizontal:!1,columnWidth:"70%",barHeight:"70%",distributed:!1,borderRadius:0,borderRadiusApplication:"around",borderRadiusWhenStacked:"last",rangeBarOverlap:!0,rangeBarGroupRows:!1,colors:{ranges:[],backgroundBarColors:[],backgroundBarOpacity:1,backgroundBarRadius:0},dataLabels:{position:"top",maxItems:100,hideOverflowingLabels:!0,orientation:"horizontal",total:{enabled:!1,formatter:void 0,offsetX:0,offsetY:0,style:{color:"#373d3f",fontSize:"12px",fontFamily:void 0,fontWeight:600}}}},bubble:{zScaling:!0,minBubbleRadius:void 0,maxBubbleRadius:void 0},candlestick:{colors:{upward:"#00B746",downward:"#EF403C"},wick:{useFillColor:!0}},boxPlot:{colors:{upper:"#00E396",lower:"#008FFB"}},heatmap:{radius:2,enableShades:!0,shadeIntensity:.5,reverseNegativeShade:!1,distributed:!1,useFillColorAsStroke:!1,colorScale:{inverse:!1,ranges:[],min:void 0,max:void 0}},treemap:{enableShades:!0,shadeIntensity:.5,distributed:!1,reverseNegativeShade:!1,useFillColorAsStroke:!1,colorScale:{inverse:!1,ranges:[],min:void 0,max:void 0}},radialBar:{inverseOrder:!1,startAngle:0,endAngle:360,offsetX:0,offsetY:0,hollow:{margin:5,size:"50%",background:"transparent",image:void 0,imageWidth:150,imageHeight:150,imageOffsetX:0,imageOffsetY:0,imageClipped:!0,position:"front",dropShadow:{enabled:!1,top:0,left:0,blur:3,color:"#000",opacity:.5}},track:{show:!0,startAngle:void 0,endAngle:void 0,background:"#f2f2f2",strokeWidth:"97%",opacity:1,margin:5,dropShadow:{enabled:!1,top:0,left:0,blur:3,color:"#000",opacity:.5}},dataLabels:{show:!0,name:{show:!0,fontSize:"16px",fontFamily:void 0,fontWeight:600,color:void 0,offsetY:0,formatter:function(e){return e}},value:{show:!0,fontSize:"14px",fontFamily:void 0,fontWeight:400,color:void 0,offsetY:16,formatter:function(e){return e+"%"}},total:{show:!1,label:"Total",fontSize:"16px",fontWeight:600,fontFamily:void 0,color:void 0,formatter:function(e){return e.globals.seriesTotals.reduce(function(t,i){return t+i},0)/e.globals.series.length+"%"}}}},pie:{customScale:1,offsetX:0,offsetY:0,startAngle:0,endAngle:360,expandOnClick:!0,dataLabels:{offset:0,minAngleToShowLabel:10},donut:{size:"65%",background:"transparent",labels:{show:!1,name:{show:!0,fontSize:"16px",fontFamily:void 0,fontWeight:600,color:void 0,offsetY:-10,formatter:function(e){return e}},value:{show:!0,fontSize:"20px",fontFamily:void 0,fontWeight:400,color:void 0,offsetY:10,formatter:function(e){return e}},total:{show:!1,showAlways:!1,label:"Total",fontSize:"16px",fontWeight:400,fontFamily:void 0,color:void 0,formatter:function(e){return e.globals.seriesTotals.reduce(function(t,i){return t+i},0)}}}}},polarArea:{rings:{strokeWidth:1,strokeColor:"#e8e8e8"},spokes:{strokeWidth:1,connectorColors:"#e8e8e8"}},radar:{size:void 0,offsetX:0,offsetY:0,polygons:{strokeWidth:1,strokeColors:"#e8e8e8",connectorColors:"#e8e8e8",fill:{colors:void 0}}}},colors:void 0,dataLabels:{enabled:!0,enabledOnSeries:void 0,formatter:function(e){return e!==null?e:""},textAnchor:"middle",distributed:!1,offsetX:0,offsetY:0,style:{fontSize:"12px",fontFamily:void 0,fontWeight:600,colors:void 0},background:{enabled:!0,foreColor:"#fff",borderRadius:2,padding:4,opacity:.9,borderWidth:1,borderColor:"#fff",dropShadow:{enabled:!1,top:1,left:1,blur:1,color:"#000",opacity:.45}},dropShadow:{enabled:!1,top:1,left:1,blur:1,color:"#000",opacity:.45}},fill:{type:"solid",colors:void 0,opacity:.85,gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:void 0,inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,50,100],colorStops:[]},image:{src:[],width:void 0,height:void 0},pattern:{style:"squares",width:6,height:6,strokeWidth:2}},forecastDataPoints:{count:0,fillOpacity:.5,strokeWidth:void 0,dashArray:4},grid:{show:!0,borderColor:"#e0e0e0",strokeDashArray:0,position:"back",xaxis:{lines:{show:!0}},yaxis:{lines:{show:!0}},row:{colors:void 0,opacity:.5},column:{colors:void 0,opacity:.5},padding:{top:0,right:10,bottom:0,left:12}},labels:[],legend:{show:!0,showForSingleSeries:!1,showForNullSeries:!0,showForZeroSeries:!0,floating:!1,position:"bottom",horizontalAlign:"center",inverseOrder:!1,fontSize:"12px",fontFamily:void 0,fontWeight:400,width:void 0,height:void 0,formatter:void 0,tooltipHoverFormatter:void 0,offsetX:-20,offsetY:4,customLegendItems:[],labels:{colors:void 0,useSeriesColors:!1},markers:{width:12,height:12,strokeWidth:0,fillColors:void 0,strokeColor:"#fff",radius:12,customHTML:void 0,offsetX:0,offsetY:0,onClick:void 0},itemMargin:{horizontal:5,vertical:2},onItemClick:{toggleDataSeries:!0},onItemHover:{highlightDataSeries:!0}},markers:{discrete:[],size:0,colors:void 0,strokeColors:"#fff",strokeWidth:2,strokeOpacity:.9,strokeDashArray:0,fillOpacity:1,shape:"circle",width:8,height:8,radius:2,offsetX:0,offsetY:0,onClick:void 0,onDblClick:void 0,showNullDataPoints:!0,hover:{size:void 0,sizeOffset:3}},noData:{text:void 0,align:"center",verticalAlign:"middle",offsetX:0,offsetY:0,style:{color:void 0,fontSize:"14px",fontFamily:void 0}},responsive:[],series:void 0,states:{normal:{filter:{type:"none",value:0}},hover:{filter:{type:"lighten",value:.1}},active:{allowMultipleDataPointsSelection:!1,filter:{type:"darken",value:.5}}},title:{text:void 0,align:"left",margin:5,offsetX:0,offsetY:0,floating:!1,style:{fontSize:"14px",fontWeight:900,fontFamily:void 0,color:void 0}},subtitle:{text:void 0,align:"left",margin:5,offsetX:0,offsetY:30,floating:!1,style:{fontSize:"12px",fontWeight:400,fontFamily:void 0,color:void 0}},stroke:{show:!0,curve:"smooth",lineCap:"butt",width:2,colors:void 0,dashArray:0,fill:{type:"solid",colors:void 0,opacity:.85,gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:void 0,inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,50,100],colorStops:[]}}},tooltip:{enabled:!0,enabledOnSeries:void 0,shared:!0,followCursor:!1,intersect:!1,inverseOrder:!1,custom:void 0,fillSeriesColor:!1,theme:"light",cssClass:"",style:{fontSize:"12px",fontFamily:void 0},onDatasetHover:{highlightDataSeries:!1},x:{show:!0,format:"dd MMM",formatter:void 0},y:{formatter:void 0,title:{formatter:function(e){return e?e+": ":""}}},z:{formatter:void 0,title:"Size: "},marker:{show:!0,fillColors:void 0},items:{display:"flex"},fixed:{enabled:!1,position:"topRight",offsetX:0,offsetY:0}},xaxis:{type:"category",categories:[],convertedCatToNumeric:!1,offsetX:0,offsetY:0,overwriteCategories:void 0,labels:{show:!0,rotate:-45,rotateAlways:!1,hideOverlappingLabels:!0,trim:!1,minHeight:void 0,maxHeight:120,showDuplicates:!0,style:{colors:[],fontSize:"12px",fontWeight:400,fontFamily:void 0,cssClass:""},offsetX:0,offsetY:0,format:void 0,formatter:void 0,datetimeUTC:!0,datetimeFormatter:{year:"yyyy",month:"MMM 'yy",day:"dd MMM",hour:"HH:mm",minute:"HH:mm:ss",second:"HH:mm:ss"}},group:{groups:[],style:{colors:[],fontSize:"12px",fontWeight:400,fontFamily:void 0,cssClass:""}},axisBorder:{show:!0,color:"#e0e0e0",width:"100%",height:1,offsetX:0,offsetY:0},axisTicks:{show:!0,color:"#e0e0e0",height:6,offsetX:0,offsetY:0},tickAmount:void 0,tickPlacement:"on",min:void 0,max:void 0,range:void 0,floating:!1,decimalsInFloat:void 0,position:"bottom",title:{text:void 0,offsetX:0,offsetY:0,style:{color:void 0,fontSize:"12px",fontWeight:900,fontFamily:void 0,cssClass:""}},crosshairs:{show:!0,width:1,position:"back",opacity:.9,stroke:{color:"#b6b6b6",width:1,dashArray:3},fill:{type:"solid",color:"#B1B9C4",gradient:{colorFrom:"#D8E3F0",colorTo:"#BED1E6",stops:[0,100],opacityFrom:.4,opacityTo:.5}},dropShadow:{enabled:!1,left:0,top:0,blur:1,opacity:.4}},tooltip:{enabled:!0,offsetY:0,formatter:void 0,style:{fontSize:"12px",fontFamily:void 0}}},yaxis:this.yAxis,theme:{mode:"light",palette:"palette1",monochrome:{enabled:!1,color:"#008FFB",shadeTo:"light",shadeIntensity:.65}}}}}]),v}(),Ci=function(){function v(e){O(this,v),this.ctx=e,this.w=e.w,this.graphics=new Y(this.ctx),this.w.globals.isBarHorizontal&&(this.invertAxis=!0),this.helpers=new Pe(this),this.xAxisAnnotations=new ki(this),this.yAxisAnnotations=new Ai(this),this.pointsAnnotations=new Si(this),this.w.globals.isBarHorizontal&&this.w.config.yaxis[0].reversed&&(this.inversedReversedAxis=!0),this.xDivision=this.w.globals.gridWidth/this.w.globals.dataPoints}return I(v,[{key:"drawAxesAnnotations",value:function(){var e=this.w;if(e.globals.axisCharts){for(var t=this.yAxisAnnotations.drawYAxisAnnotations(),i=this.xAxisAnnotations.drawXAxisAnnotations(),a=this.pointsAnnotations.drawPointAnnotations(),s=e.config.chart.animations.enabled,n=[t,i,a],r=[i.node,t.node,a.node],o=0;o<3;o++)e.globals.dom.elGraphical.add(n[o]),!s||e.globals.resized||e.globals.dataChanged||e.config.chart.type!=="scatter"&&e.config.chart.type!=="bubble"&&e.globals.dataPoints>1&&r[o].classList.add("apexcharts-element-hidden"),e.globals.delayedElements.push({el:r[o],index:0});this.helpers.annotationsBackground()}}},{key:"drawImageAnnos",value:function(){var e=this;this.w.config.annotations.images.map(function(t,i){e.addImage(t,i)})}},{key:"drawTextAnnos",value:function(){var e=this;this.w.config.annotations.texts.map(function(t,i){e.addText(t,i)})}},{key:"addXaxisAnnotation",value:function(e,t,i){this.xAxisAnnotations.addXaxisAnnotation(e,t,i)}},{key:"addYaxisAnnotation",value:function(e,t,i){this.yAxisAnnotations.addYaxisAnnotation(e,t,i)}},{key:"addPointAnnotation",value:function(e,t,i){this.pointsAnnotations.addPointAnnotation(e,t,i)}},{key:"addText",value:function(e,t){var i=e.x,a=e.y,s=e.text,n=e.textAnchor,r=e.foreColor,o=e.fontSize,h=e.fontFamily,c=e.fontWeight,d=e.cssClass,g=e.backgroundColor,p=e.borderWidth,x=e.strokeDashArray,f=e.borderRadius,y=e.borderColor,w=e.appendTo,S=w===void 0?".apexcharts-annotations":w,k=e.paddingLeft,l=k===void 0?4:k,u=e.paddingRight,m=u===void 0?4:u,b=e.paddingBottom,A=b===void 0?2:b,P=e.paddingTop,C=P===void 0?2:P,E=this.w,T=this.graphics.drawText({x:i,y:a,text:s,textAnchor:n||"start",fontSize:o||"12px",fontWeight:c||"regular",fontFamily:h||E.config.chart.fontFamily,foreColor:r||E.config.chart.foreColor,cssClass:d}),R=E.globals.dom.baseEl.querySelector(S);R&&R.appendChild(T.node);var H=T.bbox();if(s){var W=this.graphics.drawRect(H.x-l,H.y-C,H.width+l+m,H.height+A+C,f,g||"transparent",1,p,y,x);R.insertBefore(W.node,T.node)}}},{key:"addImage",value:function(e,t){var i=this.w,a=e.path,s=e.x,n=s===void 0?0:s,r=e.y,o=r===void 0?0:r,h=e.width,c=h===void 0?20:h,d=e.height,g=d===void 0?20:d,p=e.appendTo,x=p===void 0?".apexcharts-annotations":p,f=i.globals.dom.Paper.image(a);f.size(c,g).move(n,o);var y=i.globals.dom.baseEl.querySelector(x);return y&&y.appendChild(f.node),f}},{key:"addXaxisAnnotationExternal",value:function(e,t,i){return this.addAnnotationExternal({params:e,pushToMemory:t,context:i,type:"xaxis",contextMethod:i.addXaxisAnnotation}),i}},{key:"addYaxisAnnotationExternal",value:function(e,t,i){return this.addAnnotationExternal({params:e,pushToMemory:t,context:i,type:"yaxis",contextMethod:i.addYaxisAnnotation}),i}},{key:"addPointAnnotationExternal",value:function(e,t,i){return this.invertAxis===void 0&&(this.invertAxis=i.w.globals.isBarHorizontal),this.addAnnotationExternal({params:e,pushToMemory:t,context:i,type:"point",contextMethod:i.addPointAnnotation}),i}},{key:"addAnnotationExternal",value:function(e){var t=e.params,i=e.pushToMemory,a=e.context,s=e.type,n=e.contextMethod,r=a,o=r.w,h=o.globals.dom.baseEl.querySelector(".apexcharts-".concat(s,"-annotations")),c=h.childNodes.length+1,d=new de,g=Object.assign({},s==="xaxis"?d.xAxisAnnotation:s==="yaxis"?d.yAxisAnnotation:d.pointAnnotation),p=L.extend(g,t);switch(s){case"xaxis":this.addXaxisAnnotation(p,h,c);break;case"yaxis":this.addYaxisAnnotation(p,h,c);break;case"point":this.addPointAnnotation(p,h,c)}var x=o.globals.dom.baseEl.querySelector(".apexcharts-".concat(s,"-annotations .apexcharts-").concat(s,"-annotation-label[rel='").concat(c,"']")),f=this.helpers.addBackgroundToAnno(x,p);return f&&h.insertBefore(f.node,x),i&&o.globals.memory.methodsToExec.push({context:r,id:p.id?p.id:L.randomId(),method:n,label:"addAnnotation",params:t}),a}},{key:"clearAnnotations",value:function(e){var t=e.w,i=t.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis-annotations, .apexcharts-xaxis-annotations, .apexcharts-point-annotations");t.globals.memory.methodsToExec.map(function(a,s){a.label!=="addText"&&a.label!=="addAnnotation"||t.globals.memory.methodsToExec.splice(s,1)}),i=L.listToArray(i),Array.prototype.forEach.call(i,function(a){for(;a.firstChild;)a.removeChild(a.firstChild)})}},{key:"removeAnnotation",value:function(e,t){var i=e.w,a=i.globals.dom.baseEl.querySelectorAll(".".concat(t));a&&(i.globals.memory.methodsToExec.map(function(s,n){s.id===t&&i.globals.memory.methodsToExec.splice(n,1)}),Array.prototype.forEach.call(a,function(s){s.parentElement.removeChild(s)}))}}]),v}(),Q=function(){function v(e){O(this,v),this.ctx=e,this.w=e.w,this.months31=[1,3,5,7,8,10,12],this.months30=[2,4,6,9,11],this.daysCntOfYear=[0,31,59,90,120,151,181,212,243,273,304,334]}return I(v,[{key:"isValidDate",value:function(e){return!isNaN(this.parseDate(e))}},{key:"getTimeStamp",value:function(e){return Date.parse(e)?this.w.config.xaxis.labels.datetimeUTC?new Date(new Date(e).toISOString().substr(0,25)).getTime():new Date(e).getTime():e}},{key:"getDate",value:function(e){return this.w.config.xaxis.labels.datetimeUTC?new Date(new Date(e).toUTCString()):new Date(e)}},{key:"parseDate",value:function(e){var t=Date.parse(e);if(!isNaN(t))return this.getTimeStamp(e);var i=Date.parse(e.replace(/-/g,"/").replace(/[a-z]+/gi," "));return i=this.getTimeStamp(i)}},{key:"parseDateWithTimezone",value:function(e){return Date.parse(e.replace(/-/g,"/").replace(/[a-z]+/gi," "))}},{key:"formatDate",value:function(e,t){var i=this.w.globals.locale,a=this.w.config.xaxis.labels.datetimeUTC,s=["\0"].concat($(i.months)),n=[""].concat($(i.shortMonths)),r=[""].concat($(i.days)),o=[""].concat($(i.shortDays));function h(A,P){var C=A+"";for(P=P||2;C.length12?p-12:p===0?12:p;t=(t=(t=(t=t.replace(/(^|[^\\])HH+/g,"$1"+h(p))).replace(/(^|[^\\])H/g,"$1"+p)).replace(/(^|[^\\])hh+/g,"$1"+h(x))).replace(/(^|[^\\])h/g,"$1"+x);var f=a?e.getUTCMinutes():e.getMinutes();t=(t=t.replace(/(^|[^\\])mm+/g,"$1"+h(f))).replace(/(^|[^\\])m/g,"$1"+f);var y=a?e.getUTCSeconds():e.getSeconds();t=(t=t.replace(/(^|[^\\])ss+/g,"$1"+h(y))).replace(/(^|[^\\])s/g,"$1"+y);var w=a?e.getUTCMilliseconds():e.getMilliseconds();t=t.replace(/(^|[^\\])fff+/g,"$1"+h(w,3)),w=Math.round(w/10),t=t.replace(/(^|[^\\])ff/g,"$1"+h(w)),w=Math.round(w/10);var S=p<12?"AM":"PM";t=(t=(t=t.replace(/(^|[^\\])f/g,"$1"+w)).replace(/(^|[^\\])TT+/g,"$1"+S)).replace(/(^|[^\\])T/g,"$1"+S.charAt(0));var k=S.toLowerCase();t=(t=t.replace(/(^|[^\\])tt+/g,"$1"+k)).replace(/(^|[^\\])t/g,"$1"+k.charAt(0));var l=-e.getTimezoneOffset(),u=a||!l?"Z":l>0?"+":"-";if(!a){var m=(l=Math.abs(l))%60;u+=h(Math.floor(l/60))+":"+h(m)}t=t.replace(/(^|[^\\])K/g,"$1"+u);var b=(a?e.getUTCDay():e.getDay())+1;return t=(t=(t=(t=(t=t.replace(new RegExp(r[0],"g"),r[b])).replace(new RegExp(o[0],"g"),o[b])).replace(new RegExp(s[0],"g"),s[d])).replace(new RegExp(n[0],"g"),n[d])).replace(/\\(.)/g,"$1")}},{key:"getTimeUnitsfromTimestamp",value:function(e,t,i){var a=this.w;a.config.xaxis.min!==void 0&&(e=a.config.xaxis.min),a.config.xaxis.max!==void 0&&(t=a.config.xaxis.max);var s=this.getDate(e),n=this.getDate(t),r=this.formatDate(s,"yyyy MM dd HH mm ss fff").split(" "),o=this.formatDate(n,"yyyy MM dd HH mm ss fff").split(" ");return{minMillisecond:parseInt(r[6],10),maxMillisecond:parseInt(o[6],10),minSecond:parseInt(r[5],10),maxSecond:parseInt(o[5],10),minMinute:parseInt(r[4],10),maxMinute:parseInt(o[4],10),minHour:parseInt(r[3],10),maxHour:parseInt(o[3],10),minDate:parseInt(r[2],10),maxDate:parseInt(o[2],10),minMonth:parseInt(r[1],10)-1,maxMonth:parseInt(o[1],10)-1,minYear:parseInt(r[0],10),maxYear:parseInt(o[0],10)}}},{key:"isLeapYear",value:function(e){return e%4==0&&e%100!=0||e%400==0}},{key:"calculcateLastDaysOfMonth",value:function(e,t,i){return this.determineDaysOfMonths(e,t)-i}},{key:"determineDaysOfYear",value:function(e){var t=365;return this.isLeapYear(e)&&(t=366),t}},{key:"determineRemainingDaysOfYear",value:function(e,t,i){var a=this.daysCntOfYear[t]+i;return t>1&&this.isLeapYear()&&a++,a}},{key:"determineDaysOfMonths",value:function(e,t){var i=30;switch(e=L.monthMod(e),!0){case this.months30.indexOf(e)>-1:e===2&&(i=this.isLeapYear(t)?29:28);break;case this.months31.indexOf(e)>-1:default:i=31}return i}}]),v}(),ve=function(){function v(e){O(this,v),this.ctx=e,this.w=e.w,this.tooltipKeyFormat="dd MMM"}return I(v,[{key:"xLabelFormat",value:function(e,t,i,a){var s=this.w;if(s.config.xaxis.type==="datetime"&&s.config.xaxis.labels.formatter===void 0&&s.config.tooltip.x.formatter===void 0){var n=new Q(this.ctx);return n.formatDate(n.getDate(t),s.config.tooltip.x.format)}return e(t,i,a)}},{key:"defaultGeneralFormatter",value:function(e){return Array.isArray(e)?e.map(function(t){return t}):e}},{key:"defaultYFormatter",value:function(e,t,i){var a=this.w;return L.isNumber(e)&&(e=a.globals.yValueDecimal!==0?e.toFixed(t.decimalsInFloat!==void 0?t.decimalsInFloat:a.globals.yValueDecimal):a.globals.maxYArr[i]-a.globals.minYArr[i]<5?e.toFixed(1):e.toFixed(0)),e}},{key:"setLabelFormatters",value:function(){var e=this,t=this.w;return t.globals.xaxisTooltipFormatter=function(i){return e.defaultGeneralFormatter(i)},t.globals.ttKeyFormatter=function(i){return e.defaultGeneralFormatter(i)},t.globals.ttZFormatter=function(i){return i},t.globals.legendFormatter=function(i){return e.defaultGeneralFormatter(i)},t.config.xaxis.labels.formatter!==void 0?t.globals.xLabelFormatter=t.config.xaxis.labels.formatter:t.globals.xLabelFormatter=function(i){if(L.isNumber(i)){if(!t.config.xaxis.convertedCatToNumeric&&t.config.xaxis.type==="numeric"){if(L.isNumber(t.config.xaxis.decimalsInFloat))return i.toFixed(t.config.xaxis.decimalsInFloat);var a=t.globals.maxX-t.globals.minX;return a>0&&a<100?i.toFixed(1):i.toFixed(0)}return t.globals.isBarHorizontal&&t.globals.maxY-t.globals.minYArr<4?i.toFixed(1):i.toFixed(0)}return i},typeof t.config.tooltip.x.formatter=="function"?t.globals.ttKeyFormatter=t.config.tooltip.x.formatter:t.globals.ttKeyFormatter=t.globals.xLabelFormatter,typeof t.config.xaxis.tooltip.formatter=="function"&&(t.globals.xaxisTooltipFormatter=t.config.xaxis.tooltip.formatter),(Array.isArray(t.config.tooltip.y)||t.config.tooltip.y.formatter!==void 0)&&(t.globals.ttVal=t.config.tooltip.y),t.config.tooltip.z.formatter!==void 0&&(t.globals.ttZFormatter=t.config.tooltip.z.formatter),t.config.legend.formatter!==void 0&&(t.globals.legendFormatter=t.config.legend.formatter),t.config.yaxis.forEach(function(i,a){i.labels.formatter!==void 0?t.globals.yLabelFormatters[a]=i.labels.formatter:t.globals.yLabelFormatters[a]=function(s){return t.globals.xyCharts?Array.isArray(s)?s.map(function(n){return e.defaultYFormatter(n,i,a)}):e.defaultYFormatter(s,i,a):s}}),t.globals}},{key:"heatmapLabelFormatters",value:function(){var e=this.w;if(e.config.chart.type==="heatmap"){e.globals.yAxisScale[0].result=e.globals.seriesNames.slice();var t=e.globals.seriesNames.reduce(function(i,a){return i.length>a.length?i:a},0);e.globals.yAxisScale[0].niceMax=t,e.globals.yAxisScale[0].niceMin=t}}}]),v}(),Xe=function(v){var e,t=v.isTimeline,i=v.ctx,a=v.seriesIndex,s=v.dataPointIndex,n=v.y1,r=v.y2,o=v.w,h=o.globals.seriesRangeStart[a][s],c=o.globals.seriesRangeEnd[a][s],d=o.globals.labels[s],g=o.config.series[a].name?o.config.series[a].name:"",p=o.globals.ttKeyFormatter,x=o.config.tooltip.y.title.formatter,f={w:o,seriesIndex:a,dataPointIndex:s,start:h,end:c};typeof x=="function"&&(g=x(g,f)),(e=o.config.series[a].data[s])!==null&&e!==void 0&&e.x&&(d=o.config.series[a].data[s].x),t||o.config.xaxis.type==="datetime"&&(d=new ve(i).xLabelFormat(o.globals.ttKeyFormatter,d,d,{i:void 0,dateFormatter:new Q(i).formatDate,w:o})),typeof p=="function"&&(d=p(d,f)),Number.isFinite(n)&&Number.isFinite(r)&&(h=n,c=r);var y="",w="",S=o.globals.colors[a];if(o.config.tooltip.x.formatter===void 0)if(o.config.xaxis.type==="datetime"){var k=new Q(i);y=k.formatDate(k.getDate(h),o.config.tooltip.x.format),w=k.formatDate(k.getDate(c),o.config.tooltip.x.format)}else y=h,w=c;else y=o.config.tooltip.x.formatter(h),w=o.config.tooltip.x.formatter(c);return{start:h,end:c,startVal:y,endVal:w,ylabel:d,color:S,seriesName:g}},ze=function(v){var e=v.color,t=v.seriesName,i=v.ylabel,a=v.start,s=v.end,n=v.seriesIndex,r=v.dataPointIndex,o=v.ctx.tooltip.tooltipLabels.getFormatters(n);a=o.yLbFormatter(a),s=o.yLbFormatter(s);var h=o.yLbFormatter(v.w.globals.series[n][r]),c=` + */var _e;function pt(){return _e||(_e=1,function(F,X){(function(M,z){F.exports=z()})(Be,function(){function M(v,e){var t=Object.keys(v);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(v);e&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(v,a).enumerable})),t.push.apply(t,i)}return t}function z(v){for(var e=1;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var t,i=Z(v);if(e){var a=Z(this).constructor;t=Reflect.construct(i,arguments,a)}else t=i.apply(this,arguments);return ee(this,t)}}function be(v,e){return function(t){if(Array.isArray(t))return t}(v)||function(t,i){var a=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(a!=null){var s,n,r=[],o=!0,h=!1;try{for(a=a.call(t);!(o=(s=a.next()).done)&&(r.push(s.value),!i||r.length!==i);o=!0);}catch(c){h=!0,n=c}finally{try{o||a.return==null||a.return()}finally{if(h)throw n}}return r}}(v,e)||ue(v,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function j(v){return function(e){if(Array.isArray(e))return Ee(e)}(v)||function(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}(v)||ue(v)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function ue(v,e){if(v){if(typeof v=="string")return Ee(v,e);var t=Object.prototype.toString.call(v).slice(8,-1);return t==="Object"&&v.constructor&&(t=v.constructor.name),t==="Map"||t==="Set"?Array.from(v):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Ee(v,e):void 0}}function Ee(v,e){(e==null||e>v.length)&&(e=v.length);for(var t=0,i=new Array(e);t>16,r=i>>8&255,o=255&i;return"#"+(16777216+65536*(Math.round((a-n)*s)+n)+256*(Math.round((a-r)*s)+r)+(Math.round((a-o)*s)+o)).toString(16).slice(1)}},{key:"shadeColor",value:function(e,t){return v.isColorHex(t)?this.shadeHexColor(e,t):this.shadeRGBColor(e,t)}}],[{key:"bind",value:function(e,t){return function(){return e.apply(t,arguments)}}},{key:"isObject",value:function(e){return e&&_(e)==="object"&&!Array.isArray(e)&&e!=null}},{key:"is",value:function(e,t){return Object.prototype.toString.call(t)==="[object "+e+"]"}},{key:"listToArray",value:function(e){var t,i=[];for(t=0;ts.length?a:s})),t.length>i.length?t:i},0)}},{key:"hexToRgba",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"#999999",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:.6;e.substring(0,1)!=="#"&&(e="#999999");var i=e.replace("#","");i=i.match(new RegExp("(.{"+i.length/3+"})","g"));for(var a=0;a1&&arguments[1]!==void 0?arguments[1]:"x",i=e.toString().slice();return i=i.replace(/[` ~!@#$%^&*()|+\=?;:'",.<>{}[\]\\/]/gi,t)}},{key:"negToZero",value:function(e){return e<0?0:e}},{key:"moveIndexInArray",value:function(e,t,i){if(i>=e.length)for(var a=i-e.length+1;a--;)e.push(void 0);return e.splice(i,0,e.splice(t,1)[0]),e}},{key:"extractNumber",value:function(e){return parseFloat(e.replace(/[^\d.]*/g,""))}},{key:"findAncestor",value:function(e,t){for(;(e=e.parentElement)&&!e.classList.contains(t););return e}},{key:"setELstyles",value:function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e.style.key=t[i])}},{key:"isNumber",value:function(e){return!isNaN(e)&&parseFloat(Number(e))===e&&!isNaN(parseInt(e,10))}},{key:"isFloat",value:function(e){return Number(e)===e&&e%1!=0}},{key:"isSafari",value:function(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}},{key:"isFirefox",value:function(){return navigator.userAgent.toLowerCase().indexOf("firefox")>-1}},{key:"isIE11",value:function(){if(window.navigator.userAgent.indexOf("MSIE")!==-1||window.navigator.appVersion.indexOf("Trident/")>-1)return!0}},{key:"isIE",value:function(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);if(e.indexOf("Trident/")>0){var i=e.indexOf("rv:");return parseInt(e.substring(i+3,e.indexOf(".",i)),10)}var a=e.indexOf("Edge/");return a>0&&parseInt(e.substring(a+5,e.indexOf(".",a)),10)}}]),v}(),pe=function(){function v(e){O(this,v),this.ctx=e,this.w=e.w,this.setEasingFunctions()}return E(v,[{key:"setEasingFunctions",value:function(){var e;if(!this.w.globals.easing){switch(this.w.config.chart.animations.easing){case"linear":e="-";break;case"easein":e="<";break;case"easeout":e=">";break;case"easeinout":default:e="<>";break;case"swing":e=function(t){var i=1.70158;return(t-=1)*t*((i+1)*t+i)+1};break;case"bounce":e=function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375};break;case"elastic":e=function(t){return t===!!t?t:Math.pow(2,-10*t)*Math.sin((t-.075)*(2*Math.PI)/.3)+1}}this.w.globals.easing=e}}},{key:"animateLine",value:function(e,t,i,a){e.attr(t).animate(a).attr(i)}},{key:"animateMarker",value:function(e,t,i,a,s,n){t||(t=0),e.attr({r:t,width:t,height:t}).animate(a,s).attr({r:i,width:i.width,height:i.height}).afterAll(function(){n()})}},{key:"animateCircle",value:function(e,t,i,a,s){e.attr({r:t.r,cx:t.cx,cy:t.cy}).animate(a,s).attr({r:i.r,cx:i.cx,cy:i.cy})}},{key:"animateRect",value:function(e,t,i,a,s){e.attr(t).animate(a).attr(i).afterAll(function(){return s()})}},{key:"animatePathsGradually",value:function(e){var t=e.el,i=e.realIndex,a=e.j,s=e.fill,n=e.pathFrom,r=e.pathTo,o=e.speed,h=e.delay,c=this.w,d=0;c.config.chart.animations.animateGradually.enabled&&(d=c.config.chart.animations.animateGradually.delay),c.config.chart.animations.dynamicAnimation.enabled&&c.globals.dataChanged&&c.config.chart.type!=="bar"&&(d=0),this.morphSVG(t,i,a,c.config.chart.type!=="line"||c.globals.comboCharts?s:"stroke",n,r,o,h*d)}},{key:"showDelayedElements",value:function(){this.w.globals.delayedElements.forEach(function(e){e.el.classList.remove("apexcharts-element-hidden")})}},{key:"animationCompleted",value:function(e){var t=this.w;t.globals.animationEnded||(t.globals.animationEnded=!0,this.showDelayedElements(),typeof t.config.chart.events.animationEnd=="function"&&t.config.chart.events.animationEnd(this.ctx,{el:e,w:t}))}},{key:"morphSVG",value:function(e,t,i,a,s,n,r,o){var h=this,c=this.w;s||(s=e.attr("pathFrom")),n||(n=e.attr("pathTo"));var d=function(g){return c.config.chart.type==="radar"&&(r=1),"M 0 ".concat(c.globals.gridHeight)};(!s||s.indexOf("undefined")>-1||s.indexOf("NaN")>-1)&&(s=d()),(!n||n.indexOf("undefined")>-1||n.indexOf("NaN")>-1)&&(n=d()),c.globals.shouldAnimate||(r=1),e.plot(s).animate(1,c.globals.easing,o).plot(s).animate(r,c.globals.easing,o).plot(n).afterAll(function(){L.isNumber(i)?i===c.globals.series[c.globals.maxValsInArrayIndex].length-2&&c.globals.shouldAnimate&&h.animationCompleted(e):a!=="none"&&c.globals.shouldAnimate&&(!c.globals.comboCharts&&t===c.globals.series.length-1||c.globals.comboCharts)&&h.animationCompleted(e),h.showDelayedElements()})}}]),v}(),Q=function(){function v(e){O(this,v),this.ctx=e,this.w=e.w}return E(v,[{key:"getDefaultFilter",value:function(e,t){var i=this.w;e.unfilter(!0),new window.SVG.Filter().size("120%","180%","-5%","-40%"),i.config.states.normal.filter!=="none"?this.applyFilter(e,t,i.config.states.normal.filter.type,i.config.states.normal.filter.value):i.config.chart.dropShadow.enabled&&this.dropShadow(e,i.config.chart.dropShadow,t)}},{key:"addNormalFilter",value:function(e,t){var i=this.w;i.config.chart.dropShadow.enabled&&!e.node.classList.contains("apexcharts-marker")&&this.dropShadow(e,i.config.chart.dropShadow,t)}},{key:"addLightenFilter",value:function(e,t,i){var a=this,s=this.w,n=i.intensity;e.unfilter(!0),new window.SVG.Filter,e.filter(function(r){var o=s.config.chart.dropShadow;(o.enabled?a.addShadow(r,t,o):r).componentTransfer({rgb:{type:"linear",slope:1.5,intercept:n}})}),e.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(e.filterer.node)}},{key:"addDarkenFilter",value:function(e,t,i){var a=this,s=this.w,n=i.intensity;e.unfilter(!0),new window.SVG.Filter,e.filter(function(r){var o=s.config.chart.dropShadow;(o.enabled?a.addShadow(r,t,o):r).componentTransfer({rgb:{type:"linear",slope:n}})}),e.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(e.filterer.node)}},{key:"applyFilter",value:function(e,t,i){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:.5;switch(i){case"none":this.addNormalFilter(e,t);break;case"lighten":this.addLightenFilter(e,t,{intensity:a});break;case"darken":this.addDarkenFilter(e,t,{intensity:a})}}},{key:"addShadow",value:function(e,t,i){var a=i.blur,s=i.top,n=i.left,r=i.color,o=i.opacity,h=e.flood(Array.isArray(r)?r[t]:r,o).composite(e.sourceAlpha,"in").offset(n,s).gaussianBlur(a).merge(e.source);return e.blend(e.source,h)}},{key:"dropShadow",value:function(e,t){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=t.top,s=t.left,n=t.blur,r=t.color,o=t.opacity,h=t.noUserSpaceOnUse,c=this.w;return e.unfilter(!0),L.isIE()&&c.config.chart.type==="radialBar"||(r=Array.isArray(r)?r[i]:r,e.filter(function(d){var g=null;g=L.isSafari()||L.isFirefox()||L.isIE()?d.flood(r,o).composite(d.sourceAlpha,"in").offset(s,a).gaussianBlur(n):d.flood(r,o).composite(d.sourceAlpha,"in").offset(s,a).gaussianBlur(n).merge(d.source),d.blend(d.source,g)}),h||e.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(e.filterer.node)),e}},{key:"setSelectionFilter",value:function(e,t,i){var a=this.w;if(a.globals.selectedDataPoints[t]!==void 0&&a.globals.selectedDataPoints[t].indexOf(i)>-1){e.node.setAttribute("selected",!0);var s=a.config.states.active.filter;s!=="none"&&this.applyFilter(e,t,s.type,s.value)}}},{key:"_scaleFilterSize",value:function(e){(function(t){for(var i in t)t.hasOwnProperty(i)&&e.setAttribute(i,t[i])})({width:"200%",height:"200%",x:"-50%",y:"-50%"})}}]),v}(),Y=function(){function v(e){O(this,v),this.ctx=e,this.w=e.w}return E(v,[{key:"roundPathCorners",value:function(e,t){function i(A,P,C){var I=P.x-A.x,T=P.y-A.y,D=Math.sqrt(I*I+T*T);return a(A,P,Math.min(1,C/D))}function a(A,P,C){return{x:A.x+(P.x-A.x)*C,y:A.y+(P.y-A.y)*C}}function s(A,P){A.length>2&&(A[A.length-2]=P.x,A[A.length-1]=P.y)}function n(A){return{x:parseFloat(A[A.length-2]),y:parseFloat(A[A.length-1])}}var r=e.split(/[,\s]/).reduce(function(A,P){var C=P.match("([a-zA-Z])(.+)");return C?(A.push(C[1]),A.push(C[2])):A.push(P),A},[]).reduce(function(A,P){return parseFloat(P)==P&&A.length?A[A.length-1].push(P):A.push([P]),A},[]),o=[];if(r.length>1){var h=n(r[0]),c=null;r[r.length-1][0]=="Z"&&r[0].length>2&&(c=["L",h.x,h.y],r[r.length-1]=c),o.push(r[0]);for(var d=1;d2&&p[0]=="L"&&x.length>2&&x[0]=="L"){var f,y,w=n(g),S=n(p),k=n(x);f=i(S,w,t),y=i(S,k,t),s(p,f),p.origPoint=S,o.push(p);var l=a(f,S,.5),u=a(S,y,.5),m=["C",l.x,l.y,u.x,u.y,y.x,y.y];m.origPoint=S,o.push(m)}else o.push(p)}if(c){var b=n(o[o.length-1]);o.push(["Z"]),s(o[0],b)}}else o=r;return o.reduce(function(A,P){return A+P.join(" ")+" "},"")}},{key:"drawLine",value:function(e,t,i,a){var s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"#a8a8a8",n=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0,r=arguments.length>6&&arguments[6]!==void 0?arguments[6]:null,o=arguments.length>7&&arguments[7]!==void 0?arguments[7]:"butt",h=this.w,c=h.globals.dom.Paper.line().attr({x1:e,y1:t,x2:i,y2:a,stroke:s,"stroke-dasharray":n,"stroke-width":r,"stroke-linecap":o});return c}},{key:"drawRect",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,n=arguments.length>5&&arguments[5]!==void 0?arguments[5]:"#fefefe",r=arguments.length>6&&arguments[6]!==void 0?arguments[6]:1,o=arguments.length>7&&arguments[7]!==void 0?arguments[7]:null,h=arguments.length>8&&arguments[8]!==void 0?arguments[8]:null,c=arguments.length>9&&arguments[9]!==void 0?arguments[9]:0,d=this.w,g=d.globals.dom.Paper.rect();return g.attr({x:e,y:t,width:i>0?i:0,height:a>0?a:0,rx:s,ry:s,opacity:r,"stroke-width":o!==null?o:0,stroke:h!==null?h:"none","stroke-dasharray":c}),g.node.setAttribute("fill",n),g}},{key:"drawPolygon",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"#e1e1e1",i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"none",s=this.w,n=s.globals.dom.Paper.polygon(e).attr({fill:a,stroke:t,"stroke-width":i});return n}},{key:"drawCircle",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,i=this.w;e<0&&(e=0);var a=i.globals.dom.Paper.circle(2*e);return t!==null&&a.attr(t),a}},{key:"drawPath",value:function(e){var t=e.d,i=t===void 0?"":t,a=e.stroke,s=a===void 0?"#a8a8a8":a,n=e.strokeWidth,r=n===void 0?1:n,o=e.fill,h=e.fillOpacity,c=h===void 0?1:h,d=e.strokeOpacity,g=d===void 0?1:d,p=e.classes,x=e.strokeLinecap,f=x===void 0?null:x,y=e.strokeDashArray,w=y===void 0?0:y,S=this.w;return f===null&&(f=S.config.stroke.lineCap),(i.indexOf("undefined")>-1||i.indexOf("NaN")>-1)&&(i="M 0 ".concat(S.globals.gridHeight)),S.globals.dom.Paper.path(i).attr({fill:o,"fill-opacity":c,stroke:s,"stroke-opacity":g,"stroke-linecap":f,"stroke-width":r,"stroke-dasharray":w,class:p})}},{key:"group",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,t=this.w,i=t.globals.dom.Paper.group();return e!==null&&i.attr(e),i}},{key:"move",value:function(e,t){var i=["M",e,t].join(" ");return i}},{key:"line",value:function(e,t){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,a=null;return i===null?a=[" L",e,t].join(" "):i==="H"?a=[" H",e].join(" "):i==="V"&&(a=[" V",t].join(" ")),a}},{key:"curve",value:function(e,t,i,a,s,n){var r=["C",e,t,i,a,s,n].join(" ");return r}},{key:"quadraticCurve",value:function(e,t,i,a){return["Q",e,t,i,a].join(" ")}},{key:"arc",value:function(e,t,i,a,s,n,r){var o=arguments.length>7&&arguments[7]!==void 0&&arguments[7],h="A";o&&(h="a");var c=[h,e,t,i,a,s,n,r].join(" ");return c}},{key:"renderPaths",value:function(e){var t,i=e.j,a=e.realIndex,s=e.pathFrom,n=e.pathTo,r=e.stroke,o=e.strokeWidth,h=e.strokeLinecap,c=e.fill,d=e.animationDelay,g=e.initialSpeed,p=e.dataChangeSpeed,x=e.className,f=e.shouldClipToGrid,y=f===void 0||f,w=e.bindEventsOnPaths,S=w===void 0||w,k=e.drawShadow,l=k===void 0||k,u=this.w,m=new Q(this.ctx),b=new pe(this.ctx),A=this.w.config.chart.animations.enabled,P=A&&this.w.config.chart.animations.dynamicAnimation.enabled,C=!!(A&&!u.globals.resized||P&&u.globals.dataChanged&&u.globals.shouldAnimate);C?t=s:(t=n,u.globals.animationEnded=!0);var I=u.config.stroke.dashArray,T=0;T=Array.isArray(I)?I[a]:u.config.stroke.dashArray;var D=this.drawPath({d:t,stroke:r,strokeWidth:o,fill:c,fillOpacity:1,classes:x,strokeLinecap:h,strokeDashArray:T});if(D.attr("index",a),y&&D.attr({"clip-path":"url(#gridRectMask".concat(u.globals.cuid,")")}),u.config.states.normal.filter.type!=="none")m.getDefaultFilter(D,a);else if(u.config.chart.dropShadow.enabled&&l&&(!u.config.chart.dropShadow.enabledOnSeries||u.config.chart.dropShadow.enabledOnSeries&&u.config.chart.dropShadow.enabledOnSeries.indexOf(a)!==-1)){var R=u.config.chart.dropShadow;m.dropShadow(D,R,a)}S&&(D.node.addEventListener("mouseenter",this.pathMouseEnter.bind(this,D)),D.node.addEventListener("mouseleave",this.pathMouseLeave.bind(this,D)),D.node.addEventListener("mousedown",this.pathMouseDown.bind(this,D))),D.attr({pathTo:n,pathFrom:s});var N={el:D,j:i,realIndex:a,pathFrom:s,pathTo:n,fill:c,strokeWidth:o,delay:d};return!A||u.globals.resized||u.globals.dataChanged?!u.globals.resized&&u.globals.dataChanged||b.showDelayedElements():b.animatePathsGradually(z(z({},N),{},{speed:g})),u.globals.dataChanged&&P&&C&&b.animatePathsGradually(z(z({},N),{},{speed:p})),D}},{key:"drawPattern",value:function(e,t,i){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"#a8a8a8",s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,n=this.w,r=n.globals.dom.Paper.pattern(t,i,function(o){e==="horizontalLines"?o.line(0,0,i,0).stroke({color:a,width:s+1}):e==="verticalLines"?o.line(0,0,0,t).stroke({color:a,width:s+1}):e==="slantedLines"?o.line(0,0,t,i).stroke({color:a,width:s}):e==="squares"?o.rect(t,i).fill("none").stroke({color:a,width:s}):e==="circles"&&o.circle(t).fill("none").stroke({color:a,width:s})});return r}},{key:"drawGradient",value:function(e,t,i,a,s){var n,r=arguments.length>5&&arguments[5]!==void 0?arguments[5]:null,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:null,h=arguments.length>7&&arguments[7]!==void 0?arguments[7]:null,c=arguments.length>8&&arguments[8]!==void 0?arguments[8]:0,d=this.w;t.length<9&&t.indexOf("#")===0&&(t=L.hexToRgba(t,a)),i.length<9&&i.indexOf("#")===0&&(i=L.hexToRgba(i,s));var g=0,p=1,x=1,f=null;o!==null&&(g=o[0]!==void 0?o[0]/100:0,p=o[1]!==void 0?o[1]/100:1,x=o[2]!==void 0?o[2]/100:1,f=o[3]!==void 0?o[3]/100:null);var y=!(d.config.chart.type!=="donut"&&d.config.chart.type!=="pie"&&d.config.chart.type!=="polarArea"&&d.config.chart.type!=="bubble");if(n=h===null||h.length===0?d.globals.dom.Paper.gradient(y?"radial":"linear",function(k){k.at(g,t,a),k.at(p,i,s),k.at(x,i,s),f!==null&&k.at(f,t,a)}):d.globals.dom.Paper.gradient(y?"radial":"linear",function(k){(Array.isArray(h[c])?h[c]:h).forEach(function(l){k.at(l.offset/100,l.color,l.opacity)})}),y){var w=d.globals.gridWidth/2,S=d.globals.gridHeight/2;d.config.chart.type!=="bubble"?n.attr({gradientUnits:"userSpaceOnUse",cx:w,cy:S,r}):n.attr({cx:.5,cy:.5,r:.8,fx:.2,fy:.2})}else e==="vertical"?n.from(0,0).to(0,1):e==="diagonal"?n.from(0,0).to(1,1):e==="horizontal"?n.from(0,1).to(1,1):e==="diagonal2"&&n.from(1,0).to(0,1);return n}},{key:"getTextBasedOnMaxWidth",value:function(e){var t=e.text,i=e.maxWidth,a=e.fontSize,s=e.fontFamily,n=this.getTextRects(t,a,s),r=n.width/t.length,o=Math.floor(i/r);return i-1){var o=i.globals.selectedDataPoints[s].indexOf(n);i.globals.selectedDataPoints[s].splice(o,1)}}else{if(!i.config.states.active.allowMultipleDataPointsSelection&&i.globals.selectedDataPoints.length>0){i.globals.selectedDataPoints=[];var h=i.globals.dom.Paper.select(".apexcharts-series path").members,c=i.globals.dom.Paper.select(".apexcharts-series circle, .apexcharts-series rect").members,d=function(x){Array.prototype.forEach.call(x,function(f){f.node.setAttribute("selected","false"),a.getDefaultFilter(f,s)})};d(h),d(c)}e.node.setAttribute("selected","true"),r="true",i.globals.selectedDataPoints[s]===void 0&&(i.globals.selectedDataPoints[s]=[]),i.globals.selectedDataPoints[s].push(n)}if(r==="true"){var g=i.config.states.active.filter;if(g!=="none")a.applyFilter(e,s,g.type,g.value);else if(i.config.states.hover.filter!=="none"&&!i.globals.isTouchDevice){var p=i.config.states.hover.filter;a.applyFilter(e,s,p.type,p.value)}}else i.config.states.active.filter.type!=="none"&&(i.config.states.hover.filter.type==="none"||i.globals.isTouchDevice?a.getDefaultFilter(e,s):(p=i.config.states.hover.filter,a.applyFilter(e,s,p.type,p.value)));typeof i.config.chart.events.dataPointSelection=="function"&&i.config.chart.events.dataPointSelection(t,this.ctx,{selectedDataPoints:i.globals.selectedDataPoints,seriesIndex:s,dataPointIndex:n,w:i}),t&&this.ctx.events.fireEvent("dataPointSelection",[t,this.ctx,{selectedDataPoints:i.globals.selectedDataPoints,seriesIndex:s,dataPointIndex:n,w:i}])}},{key:"rotateAroundCenter",value:function(e){var t={};return e&&typeof e.getBBox=="function"&&(t=e.getBBox()),{x:t.x+t.width/2,y:t.y+t.height/2}}},{key:"getTextRects",value:function(e,t,i,a){var s=!(arguments.length>4&&arguments[4]!==void 0)||arguments[4],n=this.w,r=this.drawText({x:-200,y:-200,text:e,textAnchor:"start",fontSize:t,fontFamily:i,foreColor:"#fff",opacity:0});a&&r.attr("transform",a),n.globals.dom.Paper.add(r);var o=r.bbox();return s||(o=r.node.getBoundingClientRect()),r.remove(),{width:o.width,height:o.height}}},{key:"placeTextWithEllipsis",value:function(e,t,i){if(typeof e.getComputedTextLength=="function"&&(e.textContent=t,t.length>0&&e.getComputedTextLength()>=i/1.1)){for(var a=t.length-3;a>0;a-=3)if(e.getSubStringLength(0,a)<=i/1.1)return void(e.textContent=t.substring(0,a)+"...");e.textContent="."}}}],[{key:"setAttrs",value:function(e,t){for(var i in t)t.hasOwnProperty(i)&&e.setAttribute(i,t[i])}}]),v}(),U=function(){function v(e){O(this,v),this.ctx=e,this.w=e.w}return E(v,[{key:"getStackedSeriesTotals",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=this.w,i=[];if(t.globals.series.length===0)return i;for(var a=0;a0&&arguments[0]!==void 0?arguments[0]:null;return e===null?this.w.config.series.reduce(function(t,i){return t+i},0):this.w.globals.series[e].reduce(function(t,i){return t+i},0)}},{key:"isSeriesNull",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return(e===null?this.w.config.series.filter(function(t){return t!==null}):this.w.config.series[e].data.filter(function(t){return t!==null})).length===0}},{key:"seriesHaveSameValues",value:function(e){return this.w.globals.series[e].every(function(t,i,a){return t===a[0]})}},{key:"getCategoryLabels",value:function(e){var t=this.w,i=e.slice();return t.config.xaxis.convertedCatToNumeric&&(i=e.map(function(a,s){return t.config.xaxis.labels.formatter(a-t.globals.minX+1)})),i}},{key:"getLargestSeries",value:function(){var e=this.w;e.globals.maxValsInArrayIndex=e.globals.series.map(function(t){return t.length}).indexOf(Math.max.apply(Math,e.globals.series.map(function(t){return t.length})))}},{key:"getLargestMarkerSize",value:function(){var e=this.w,t=0;return e.globals.markers.size.forEach(function(i){t=Math.max(t,i)}),e.config.markers.discrete&&e.config.markers.discrete.length&&e.config.markers.discrete.forEach(function(i){t=Math.max(t,i.size)}),t>0&&(t+=e.config.markers.hover.sizeOffset+1),e.globals.markers.largestSize=t,t}},{key:"getSeriesTotals",value:function(){var e=this.w;e.globals.seriesTotals=e.globals.series.map(function(t,i){var a=0;if(Array.isArray(t))for(var s=0;se&&i.globals.seriesX[s][r]0&&(t=!0),{comboBarCount:i,comboCharts:t}}},{key:"extendArrayProps",value:function(e,t,i){return t.yaxis&&(t=e.extendYAxis(t,i)),t.annotations&&(t.annotations.yaxis&&(t=e.extendYAxisAnnotations(t)),t.annotations.xaxis&&(t=e.extendXAxisAnnotations(t)),t.annotations.points&&(t=e.extendPointAnnotations(t))),t}}]),v}(),Pe=function(){function v(e){O(this,v),this.w=e.w,this.annoCtx=e}return E(v,[{key:"setOrientations",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,i=this.w;if(e.label.orientation==="vertical"){var a=t!==null?t:0,s=i.globals.dom.baseEl.querySelector(".apexcharts-xaxis-annotations .apexcharts-xaxis-annotation-label[rel='".concat(a,"']"));if(s!==null){var n=s.getBoundingClientRect();s.setAttribute("x",parseFloat(s.getAttribute("x"))-n.height+4),e.label.position==="top"?s.setAttribute("y",parseFloat(s.getAttribute("y"))+n.width):s.setAttribute("y",parseFloat(s.getAttribute("y"))-n.width);var r=this.annoCtx.graphics.rotateAroundCenter(s),o=r.x,h=r.y;s.setAttribute("transform","rotate(-90 ".concat(o," ").concat(h,")"))}}}},{key:"addBackgroundToAnno",value:function(e,t){var i=this.w;if(!e||t.label.text===void 0||t.label.text!==void 0&&!String(t.label.text).trim())return null;var a=i.globals.dom.baseEl.querySelector(".apexcharts-grid").getBoundingClientRect(),s=e.getBoundingClientRect(),n=t.label.style.padding.left,r=t.label.style.padding.right,o=t.label.style.padding.top,h=t.label.style.padding.bottom;t.label.orientation==="vertical"&&(o=t.label.style.padding.left,h=t.label.style.padding.right,n=t.label.style.padding.top,r=t.label.style.padding.bottom);var c=s.left-a.left-n,d=s.top-a.top-o,g=this.annoCtx.graphics.drawRect(c-i.globals.barPadForNumericAxis,d,s.width+n+r,s.height+o+h,t.label.borderRadius,t.label.style.background,1,t.label.borderWidth,t.label.borderColor,0);return t.id&&g.node.classList.add(t.id),g}},{key:"annotationsBackground",value:function(){var e=this,t=this.w,i=function(a,s,n){var r=t.globals.dom.baseEl.querySelector(".apexcharts-".concat(n,"-annotations .apexcharts-").concat(n,"-annotation-label[rel='").concat(s,"']"));if(r){var o=r.parentNode,h=e.addBackgroundToAnno(r,a);h&&(o.insertBefore(h.node,r),a.label.mouseEnter&&h.node.addEventListener("mouseenter",a.label.mouseEnter.bind(e,a)),a.label.mouseLeave&&h.node.addEventListener("mouseleave",a.label.mouseLeave.bind(e,a)),a.label.click&&h.node.addEventListener("click",a.label.click.bind(e,a)))}};t.config.annotations.xaxis.map(function(a,s){i(a,s,"xaxis")}),t.config.annotations.yaxis.map(function(a,s){i(a,s,"yaxis")}),t.config.annotations.points.map(function(a,s){i(a,s,"point")})}},{key:"getY1Y2",value:function(e,t){var i,a=e==="y1"?t.y:t.y2,s=this.w;if(this.annoCtx.invertAxis){var n=s.globals.labels.indexOf(a);s.config.xaxis.convertedCatToNumeric&&(n=s.globals.categoryLabels.indexOf(a));var r=s.globals.dom.baseEl.querySelector(".apexcharts-yaxis-texts-g text:nth-child("+(n+1)+")");r&&(i=parseFloat(r.getAttribute("y")))}else{var o;s.config.yaxis[t.yAxisIndex].logarithmic?o=(a=new U(this.annoCtx.ctx).getLogVal(a,t.yAxisIndex))/s.globals.yLogRatio[t.yAxisIndex]:o=(a-s.globals.minYArr[t.yAxisIndex])/(s.globals.yRange[t.yAxisIndex]/s.globals.gridHeight),i=s.globals.gridHeight-o,!t.marker||t.y!==void 0&&t.y!==null||(i=0),s.config.yaxis[t.yAxisIndex]&&s.config.yaxis[t.yAxisIndex].reversed&&(i=o)}return typeof a=="string"&&a.indexOf("px")>-1&&(i=parseFloat(a)),i}},{key:"getX1X2",value:function(e,t){var i=this.w,a=this.annoCtx.invertAxis?i.globals.minY:i.globals.minX,s=this.annoCtx.invertAxis?i.globals.maxY:i.globals.maxX,n=this.annoCtx.invertAxis?i.globals.yRange[0]:i.globals.xRange,r=(t.x-a)/(n/i.globals.gridWidth);this.annoCtx.inversedReversedAxis&&(r=(s-t.x)/(n/i.globals.gridWidth)),i.config.xaxis.type!=="category"&&!i.config.xaxis.convertedCatToNumeric||this.annoCtx.invertAxis||i.globals.dataFormatXNumeric||(r=this.getStringX(t.x));var o=(t.x2-a)/(n/i.globals.gridWidth);return this.annoCtx.inversedReversedAxis&&(o=(s-t.x2)/(n/i.globals.gridWidth)),i.config.xaxis.type!=="category"&&!i.config.xaxis.convertedCatToNumeric||this.annoCtx.invertAxis||i.globals.dataFormatXNumeric||(o=this.getStringX(t.x2)),t.x!==void 0&&t.x!==null||!t.marker||(r=i.globals.gridWidth),e==="x1"&&typeof t.x=="string"&&t.x.indexOf("px")>-1&&(r=parseFloat(t.x)),e==="x2"&&typeof t.x2=="string"&&t.x2.indexOf("px")>-1&&(o=parseFloat(t.x2)),e==="x1"?r:o}},{key:"getStringX",value:function(e){var t=this.w,i=e;t.config.xaxis.convertedCatToNumeric&&t.globals.categoryLabels.length&&(e=t.globals.categoryLabels.indexOf(e)+1);var a=t.globals.labels.indexOf(e),s=t.globals.dom.baseEl.querySelector(".apexcharts-xaxis-texts-g text:nth-child("+(a+1)+")");return s&&(i=parseFloat(s.getAttribute("x"))),i}}]),v}(),ki=function(){function v(e){O(this,v),this.w=e.w,this.annoCtx=e,this.invertAxis=this.annoCtx.invertAxis,this.helpers=new Pe(this.annoCtx)}return E(v,[{key:"addXaxisAnnotation",value:function(e,t,i){var a,s=this.w,n=this.helpers.getX1X2("x1",e),r=e.label.text,o=e.strokeDashArray;if(L.isNumber(n)){if(e.x2===null||e.x2===void 0){var h=this.annoCtx.graphics.drawLine(n+e.offsetX,0+e.offsetY,n+e.offsetX,s.globals.gridHeight+e.offsetY,e.borderColor,o,e.borderWidth);t.appendChild(h.node),e.id&&h.node.classList.add(e.id)}else{if((a=this.helpers.getX1X2("x2",e))r){var c=r;r=a,a=c}var d=this.annoCtx.graphics.drawRect(0+e.offsetX,a+e.offsetY,this._getYAxisAnnotationWidth(e),r-a,0,e.fillColor,e.opacity,1,e.borderColor,n);d.node.classList.add("apexcharts-annotation-rect"),d.attr("clip-path","url(#gridRectMask".concat(s.globals.cuid,")")),t.appendChild(d.node),e.id&&d.node.classList.add(e.id)}var g=e.label.position==="right"?s.globals.gridWidth:e.label.position==="center"?s.globals.gridWidth/2:0,p=this.annoCtx.graphics.drawText({x:g+e.label.offsetX,y:(a??r)+e.label.offsetY-3,text:o,textAnchor:e.label.textAnchor,fontSize:e.label.style.fontSize,fontFamily:e.label.style.fontFamily,fontWeight:e.label.style.fontWeight,foreColor:e.label.style.color,cssClass:"apexcharts-yaxis-annotation-label ".concat(e.label.style.cssClass," ").concat(e.id?e.id:"")});p.attr({rel:i}),t.appendChild(p.node)}},{key:"_getYAxisAnnotationWidth",value:function(e){var t=this.w;return t.globals.gridWidth,(e.width.indexOf("%")>-1?t.globals.gridWidth*parseInt(e.width,10)/100:parseInt(e.width,10))+e.offsetX}},{key:"drawYAxisAnnotations",value:function(){var e=this,t=this.w,i=this.annoCtx.graphics.group({class:"apexcharts-yaxis-annotations"});return t.config.annotations.yaxis.map(function(a,s){e.addYaxisAnnotation(a,i.node,s)}),i}}]),v}(),Si=function(){function v(e){O(this,v),this.w=e.w,this.annoCtx=e,this.helpers=new Pe(this.annoCtx)}return E(v,[{key:"addPointAnnotation",value:function(e,t,i){this.w;var a=this.helpers.getX1X2("x1",e),s=this.helpers.getY1Y2("y1",e);if(L.isNumber(a)){var n={pSize:e.marker.size,pointStrokeWidth:e.marker.strokeWidth,pointFillColor:e.marker.fillColor,pointStrokeColor:e.marker.strokeColor,shape:e.marker.shape,pRadius:e.marker.radius,class:"apexcharts-point-annotation-marker ".concat(e.marker.cssClass," ").concat(e.id?e.id:"")},r=this.annoCtx.graphics.drawMarker(a+e.marker.offsetX,s+e.marker.offsetY,n);t.appendChild(r.node);var o=e.label.text?e.label.text:"",h=this.annoCtx.graphics.drawText({x:a+e.label.offsetX,y:s+e.label.offsetY-e.marker.size-parseFloat(e.label.style.fontSize)/1.6,text:o,textAnchor:e.label.textAnchor,fontSize:e.label.style.fontSize,fontFamily:e.label.style.fontFamily,fontWeight:e.label.style.fontWeight,foreColor:e.label.style.color,cssClass:"apexcharts-point-annotation-label ".concat(e.label.style.cssClass," ").concat(e.id?e.id:"")});if(h.attr({rel:i}),t.appendChild(h.node),e.customSVG.SVG){var c=this.annoCtx.graphics.group({class:"apexcharts-point-annotations-custom-svg "+e.customSVG.cssClass});c.attr({transform:"translate(".concat(a+e.customSVG.offsetX,", ").concat(s+e.customSVG.offsetY,")")}),c.node.innerHTML=e.customSVG.SVG,t.appendChild(c.node)}if(e.image.path){var d=e.image.width?e.image.width:20,g=e.image.height?e.image.height:20;r=this.annoCtx.addImage({x:a+e.image.offsetX-d/2,y:s+e.image.offsetY-g/2,width:d,height:g,path:e.image.path,appendTo:".apexcharts-point-annotations"})}e.mouseEnter&&r.node.addEventListener("mouseenter",e.mouseEnter.bind(this,e)),e.mouseLeave&&r.node.addEventListener("mouseleave",e.mouseLeave.bind(this,e)),e.click&&r.node.addEventListener("click",e.click.bind(this,e))}}},{key:"drawPointAnnotations",value:function(){var e=this,t=this.w,i=this.annoCtx.graphics.group({class:"apexcharts-point-annotations"});return t.config.annotations.points.map(function(a,s){e.addPointAnnotation(a,i.node,s)}),i}}]),v}(),Ve={name:"en",options:{months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],toolbar:{exportToSVG:"Download SVG",exportToPNG:"Download PNG",exportToCSV:"Download CSV",menu:"Menu",selection:"Selection",selectionZoom:"Selection Zoom",zoomIn:"Zoom In",zoomOut:"Zoom Out",pan:"Panning",reset:"Reset Zoom"}}},he=function(){function v(){O(this,v),this.yAxis={show:!0,showAlways:!1,showForNullSeries:!0,seriesName:void 0,opposite:!1,reversed:!1,logarithmic:!1,logBase:10,tickAmount:void 0,forceNiceScale:!1,max:void 0,min:void 0,floating:!1,decimalsInFloat:void 0,labels:{show:!0,minWidth:0,maxWidth:160,offsetX:0,offsetY:0,align:void 0,rotate:0,padding:20,style:{colors:[],fontSize:"11px",fontWeight:400,fontFamily:void 0,cssClass:""},formatter:void 0},axisBorder:{show:!1,color:"#e0e0e0",width:1,offsetX:0,offsetY:0},axisTicks:{show:!1,color:"#e0e0e0",width:6,offsetX:0,offsetY:0},title:{text:void 0,rotate:-90,offsetY:0,offsetX:0,style:{color:void 0,fontSize:"11px",fontWeight:900,fontFamily:void 0,cssClass:""}},tooltip:{enabled:!1,offsetX:0},crosshairs:{show:!0,position:"front",stroke:{color:"#b6b6b6",width:1,dashArray:0}}},this.pointAnnotation={id:void 0,x:0,y:null,yAxisIndex:0,seriesIndex:0,mouseEnter:void 0,mouseLeave:void 0,click:void 0,marker:{size:4,fillColor:"#fff",strokeWidth:2,strokeColor:"#333",shape:"circle",offsetX:0,offsetY:0,radius:2,cssClass:""},label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"middle",offsetX:0,offsetY:0,mouseEnter:void 0,mouseLeave:void 0,click:void 0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}},customSVG:{SVG:void 0,cssClass:void 0,offsetX:0,offsetY:0},image:{path:void 0,width:20,height:20,offsetX:0,offsetY:0}},this.yAxisAnnotation={id:void 0,y:0,y2:null,strokeDashArray:1,fillColor:"#c2c2c2",borderColor:"#c2c2c2",borderWidth:1,opacity:.3,offsetX:0,offsetY:0,width:"100%",yAxisIndex:0,label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"end",position:"right",offsetX:0,offsetY:-3,mouseEnter:void 0,mouseLeave:void 0,click:void 0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}}},this.xAxisAnnotation={id:void 0,x:0,x2:null,strokeDashArray:1,fillColor:"#c2c2c2",borderColor:"#c2c2c2",borderWidth:1,opacity:.3,offsetX:0,offsetY:0,label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"middle",orientation:"vertical",position:"top",offsetX:0,offsetY:0,mouseEnter:void 0,mouseLeave:void 0,click:void 0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}}},this.text={x:0,y:0,text:"",textAnchor:"start",foreColor:void 0,fontSize:"13px",fontFamily:void 0,fontWeight:400,appendTo:".apexcharts-annotations",backgroundColor:"transparent",borderColor:"#c2c2c2",borderRadius:0,borderWidth:0,paddingLeft:4,paddingRight:4,paddingTop:2,paddingBottom:2}}return E(v,[{key:"init",value:function(){return{annotations:{position:"front",yaxis:[this.yAxisAnnotation],xaxis:[this.xAxisAnnotation],points:[this.pointAnnotation],texts:[],images:[],shapes:[]},chart:{animations:{enabled:!0,easing:"easeinout",speed:800,animateGradually:{delay:150,enabled:!0},dynamicAnimation:{enabled:!0,speed:350}},background:"transparent",locales:[Ve],defaultLocale:"en",dropShadow:{enabled:!1,enabledOnSeries:void 0,top:2,left:2,blur:4,color:"#000",opacity:.35},events:{animationEnd:void 0,beforeMount:void 0,mounted:void 0,updated:void 0,click:void 0,mouseMove:void 0,mouseLeave:void 0,xAxisLabelClick:void 0,legendClick:void 0,markerClick:void 0,selection:void 0,dataPointSelection:void 0,dataPointMouseEnter:void 0,dataPointMouseLeave:void 0,beforeZoom:void 0,beforeResetZoom:void 0,zoomed:void 0,scrolled:void 0,brushScrolled:void 0},foreColor:"#373d3f",fontFamily:"Helvetica, Arial, sans-serif",height:"auto",parentHeightOffset:15,redrawOnParentResize:!0,redrawOnWindowResize:!0,id:void 0,group:void 0,offsetX:0,offsetY:0,selection:{enabled:!1,type:"x",fill:{color:"#24292e",opacity:.1},stroke:{width:1,color:"#24292e",opacity:.4,dashArray:3},xaxis:{min:void 0,max:void 0},yaxis:{min:void 0,max:void 0}},sparkline:{enabled:!1},brush:{enabled:!1,autoScaleYaxis:!0,target:void 0},stacked:!1,stackType:"normal",toolbar:{show:!0,offsetX:0,offsetY:0,tools:{download:!0,selection:!0,zoom:!0,zoomin:!0,zoomout:!0,pan:!0,reset:!0,customIcons:[]},export:{csv:{filename:void 0,columnDelimiter:",",headerCategory:"category",headerValue:"value",dateFormatter:function(e){return new Date(e).toDateString()}},png:{filename:void 0},svg:{filename:void 0}},autoSelected:"zoom"},type:"line",width:"100%",zoom:{enabled:!0,type:"x",autoScaleYaxis:!1,zoomedArea:{fill:{color:"#90CAF9",opacity:.4},stroke:{color:"#0D47A1",opacity:.4,width:1}}}},plotOptions:{area:{fillTo:"origin"},bar:{horizontal:!1,columnWidth:"70%",barHeight:"70%",distributed:!1,borderRadius:0,borderRadiusApplication:"around",borderRadiusWhenStacked:"last",rangeBarOverlap:!0,rangeBarGroupRows:!1,colors:{ranges:[],backgroundBarColors:[],backgroundBarOpacity:1,backgroundBarRadius:0},dataLabels:{position:"top",maxItems:100,hideOverflowingLabels:!0,orientation:"horizontal",total:{enabled:!1,formatter:void 0,offsetX:0,offsetY:0,style:{color:"#373d3f",fontSize:"12px",fontFamily:void 0,fontWeight:600}}}},bubble:{zScaling:!0,minBubbleRadius:void 0,maxBubbleRadius:void 0},candlestick:{colors:{upward:"#00B746",downward:"#EF403C"},wick:{useFillColor:!0}},boxPlot:{colors:{upper:"#00E396",lower:"#008FFB"}},heatmap:{radius:2,enableShades:!0,shadeIntensity:.5,reverseNegativeShade:!1,distributed:!1,useFillColorAsStroke:!1,colorScale:{inverse:!1,ranges:[],min:void 0,max:void 0}},treemap:{enableShades:!0,shadeIntensity:.5,distributed:!1,reverseNegativeShade:!1,useFillColorAsStroke:!1,colorScale:{inverse:!1,ranges:[],min:void 0,max:void 0}},radialBar:{inverseOrder:!1,startAngle:0,endAngle:360,offsetX:0,offsetY:0,hollow:{margin:5,size:"50%",background:"transparent",image:void 0,imageWidth:150,imageHeight:150,imageOffsetX:0,imageOffsetY:0,imageClipped:!0,position:"front",dropShadow:{enabled:!1,top:0,left:0,blur:3,color:"#000",opacity:.5}},track:{show:!0,startAngle:void 0,endAngle:void 0,background:"#f2f2f2",strokeWidth:"97%",opacity:1,margin:5,dropShadow:{enabled:!1,top:0,left:0,blur:3,color:"#000",opacity:.5}},dataLabels:{show:!0,name:{show:!0,fontSize:"16px",fontFamily:void 0,fontWeight:600,color:void 0,offsetY:0,formatter:function(e){return e}},value:{show:!0,fontSize:"14px",fontFamily:void 0,fontWeight:400,color:void 0,offsetY:16,formatter:function(e){return e+"%"}},total:{show:!1,label:"Total",fontSize:"16px",fontWeight:600,fontFamily:void 0,color:void 0,formatter:function(e){return e.globals.seriesTotals.reduce(function(t,i){return t+i},0)/e.globals.series.length+"%"}}}},pie:{customScale:1,offsetX:0,offsetY:0,startAngle:0,endAngle:360,expandOnClick:!0,dataLabels:{offset:0,minAngleToShowLabel:10},donut:{size:"65%",background:"transparent",labels:{show:!1,name:{show:!0,fontSize:"16px",fontFamily:void 0,fontWeight:600,color:void 0,offsetY:-10,formatter:function(e){return e}},value:{show:!0,fontSize:"20px",fontFamily:void 0,fontWeight:400,color:void 0,offsetY:10,formatter:function(e){return e}},total:{show:!1,showAlways:!1,label:"Total",fontSize:"16px",fontWeight:400,fontFamily:void 0,color:void 0,formatter:function(e){return e.globals.seriesTotals.reduce(function(t,i){return t+i},0)}}}}},polarArea:{rings:{strokeWidth:1,strokeColor:"#e8e8e8"},spokes:{strokeWidth:1,connectorColors:"#e8e8e8"}},radar:{size:void 0,offsetX:0,offsetY:0,polygons:{strokeWidth:1,strokeColors:"#e8e8e8",connectorColors:"#e8e8e8",fill:{colors:void 0}}}},colors:void 0,dataLabels:{enabled:!0,enabledOnSeries:void 0,formatter:function(e){return e!==null?e:""},textAnchor:"middle",distributed:!1,offsetX:0,offsetY:0,style:{fontSize:"12px",fontFamily:void 0,fontWeight:600,colors:void 0},background:{enabled:!0,foreColor:"#fff",borderRadius:2,padding:4,opacity:.9,borderWidth:1,borderColor:"#fff",dropShadow:{enabled:!1,top:1,left:1,blur:1,color:"#000",opacity:.45}},dropShadow:{enabled:!1,top:1,left:1,blur:1,color:"#000",opacity:.45}},fill:{type:"solid",colors:void 0,opacity:.85,gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:void 0,inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,50,100],colorStops:[]},image:{src:[],width:void 0,height:void 0},pattern:{style:"squares",width:6,height:6,strokeWidth:2}},forecastDataPoints:{count:0,fillOpacity:.5,strokeWidth:void 0,dashArray:4},grid:{show:!0,borderColor:"#e0e0e0",strokeDashArray:0,position:"back",xaxis:{lines:{show:!0}},yaxis:{lines:{show:!0}},row:{colors:void 0,opacity:.5},column:{colors:void 0,opacity:.5},padding:{top:0,right:10,bottom:0,left:12}},labels:[],legend:{show:!0,showForSingleSeries:!1,showForNullSeries:!0,showForZeroSeries:!0,floating:!1,position:"bottom",horizontalAlign:"center",inverseOrder:!1,fontSize:"12px",fontFamily:void 0,fontWeight:400,width:void 0,height:void 0,formatter:void 0,tooltipHoverFormatter:void 0,offsetX:-20,offsetY:4,customLegendItems:[],labels:{colors:void 0,useSeriesColors:!1},markers:{width:12,height:12,strokeWidth:0,fillColors:void 0,strokeColor:"#fff",radius:12,customHTML:void 0,offsetX:0,offsetY:0,onClick:void 0},itemMargin:{horizontal:5,vertical:2},onItemClick:{toggleDataSeries:!0},onItemHover:{highlightDataSeries:!0}},markers:{discrete:[],size:0,colors:void 0,strokeColors:"#fff",strokeWidth:2,strokeOpacity:.9,strokeDashArray:0,fillOpacity:1,shape:"circle",width:8,height:8,radius:2,offsetX:0,offsetY:0,onClick:void 0,onDblClick:void 0,showNullDataPoints:!0,hover:{size:void 0,sizeOffset:3}},noData:{text:void 0,align:"center",verticalAlign:"middle",offsetX:0,offsetY:0,style:{color:void 0,fontSize:"14px",fontFamily:void 0}},responsive:[],series:void 0,states:{normal:{filter:{type:"none",value:0}},hover:{filter:{type:"lighten",value:.1}},active:{allowMultipleDataPointsSelection:!1,filter:{type:"darken",value:.5}}},title:{text:void 0,align:"left",margin:5,offsetX:0,offsetY:0,floating:!1,style:{fontSize:"14px",fontWeight:900,fontFamily:void 0,color:void 0}},subtitle:{text:void 0,align:"left",margin:5,offsetX:0,offsetY:30,floating:!1,style:{fontSize:"12px",fontWeight:400,fontFamily:void 0,color:void 0}},stroke:{show:!0,curve:"smooth",lineCap:"butt",width:2,colors:void 0,dashArray:0,fill:{type:"solid",colors:void 0,opacity:.85,gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:void 0,inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,50,100],colorStops:[]}}},tooltip:{enabled:!0,enabledOnSeries:void 0,shared:!0,followCursor:!1,intersect:!1,inverseOrder:!1,custom:void 0,fillSeriesColor:!1,theme:"light",cssClass:"",style:{fontSize:"12px",fontFamily:void 0},onDatasetHover:{highlightDataSeries:!1},x:{show:!0,format:"dd MMM",formatter:void 0},y:{formatter:void 0,title:{formatter:function(e){return e?e+": ":""}}},z:{formatter:void 0,title:"Size: "},marker:{show:!0,fillColors:void 0},items:{display:"flex"},fixed:{enabled:!1,position:"topRight",offsetX:0,offsetY:0}},xaxis:{type:"category",categories:[],convertedCatToNumeric:!1,offsetX:0,offsetY:0,overwriteCategories:void 0,labels:{show:!0,rotate:-45,rotateAlways:!1,hideOverlappingLabels:!0,trim:!1,minHeight:void 0,maxHeight:120,showDuplicates:!0,style:{colors:[],fontSize:"12px",fontWeight:400,fontFamily:void 0,cssClass:""},offsetX:0,offsetY:0,format:void 0,formatter:void 0,datetimeUTC:!0,datetimeFormatter:{year:"yyyy",month:"MMM 'yy",day:"dd MMM",hour:"HH:mm",minute:"HH:mm:ss",second:"HH:mm:ss"}},group:{groups:[],style:{colors:[],fontSize:"12px",fontWeight:400,fontFamily:void 0,cssClass:""}},axisBorder:{show:!0,color:"#e0e0e0",width:"100%",height:1,offsetX:0,offsetY:0},axisTicks:{show:!0,color:"#e0e0e0",height:6,offsetX:0,offsetY:0},tickAmount:void 0,tickPlacement:"on",min:void 0,max:void 0,range:void 0,floating:!1,decimalsInFloat:void 0,position:"bottom",title:{text:void 0,offsetX:0,offsetY:0,style:{color:void 0,fontSize:"12px",fontWeight:900,fontFamily:void 0,cssClass:""}},crosshairs:{show:!0,width:1,position:"back",opacity:.9,stroke:{color:"#b6b6b6",width:1,dashArray:3},fill:{type:"solid",color:"#B1B9C4",gradient:{colorFrom:"#D8E3F0",colorTo:"#BED1E6",stops:[0,100],opacityFrom:.4,opacityTo:.5}},dropShadow:{enabled:!1,left:0,top:0,blur:1,opacity:.4}},tooltip:{enabled:!0,offsetY:0,formatter:void 0,style:{fontSize:"12px",fontFamily:void 0}}},yaxis:this.yAxis,theme:{mode:"light",palette:"palette1",monochrome:{enabled:!1,color:"#008FFB",shadeTo:"light",shadeIntensity:.65}}}}}]),v}(),Ci=function(){function v(e){O(this,v),this.ctx=e,this.w=e.w,this.graphics=new Y(this.ctx),this.w.globals.isBarHorizontal&&(this.invertAxis=!0),this.helpers=new Pe(this),this.xAxisAnnotations=new ki(this),this.yAxisAnnotations=new Ai(this),this.pointsAnnotations=new Si(this),this.w.globals.isBarHorizontal&&this.w.config.yaxis[0].reversed&&(this.inversedReversedAxis=!0),this.xDivision=this.w.globals.gridWidth/this.w.globals.dataPoints}return E(v,[{key:"drawAxesAnnotations",value:function(){var e=this.w;if(e.globals.axisCharts){for(var t=this.yAxisAnnotations.drawYAxisAnnotations(),i=this.xAxisAnnotations.drawXAxisAnnotations(),a=this.pointsAnnotations.drawPointAnnotations(),s=e.config.chart.animations.enabled,n=[t,i,a],r=[i.node,t.node,a.node],o=0;o<3;o++)e.globals.dom.elGraphical.add(n[o]),!s||e.globals.resized||e.globals.dataChanged||e.config.chart.type!=="scatter"&&e.config.chart.type!=="bubble"&&e.globals.dataPoints>1&&r[o].classList.add("apexcharts-element-hidden"),e.globals.delayedElements.push({el:r[o],index:0});this.helpers.annotationsBackground()}}},{key:"drawImageAnnos",value:function(){var e=this;this.w.config.annotations.images.map(function(t,i){e.addImage(t,i)})}},{key:"drawTextAnnos",value:function(){var e=this;this.w.config.annotations.texts.map(function(t,i){e.addText(t,i)})}},{key:"addXaxisAnnotation",value:function(e,t,i){this.xAxisAnnotations.addXaxisAnnotation(e,t,i)}},{key:"addYaxisAnnotation",value:function(e,t,i){this.yAxisAnnotations.addYaxisAnnotation(e,t,i)}},{key:"addPointAnnotation",value:function(e,t,i){this.pointsAnnotations.addPointAnnotation(e,t,i)}},{key:"addText",value:function(e,t){var i=e.x,a=e.y,s=e.text,n=e.textAnchor,r=e.foreColor,o=e.fontSize,h=e.fontFamily,c=e.fontWeight,d=e.cssClass,g=e.backgroundColor,p=e.borderWidth,x=e.strokeDashArray,f=e.borderRadius,y=e.borderColor,w=e.appendTo,S=w===void 0?".apexcharts-annotations":w,k=e.paddingLeft,l=k===void 0?4:k,u=e.paddingRight,m=u===void 0?4:u,b=e.paddingBottom,A=b===void 0?2:b,P=e.paddingTop,C=P===void 0?2:P,I=this.w,T=this.graphics.drawText({x:i,y:a,text:s,textAnchor:n||"start",fontSize:o||"12px",fontWeight:c||"regular",fontFamily:h||I.config.chart.fontFamily,foreColor:r||I.config.chart.foreColor,cssClass:d}),D=I.globals.dom.baseEl.querySelector(S);D&&D.appendChild(T.node);var R=T.bbox();if(s){var N=this.graphics.drawRect(R.x-l,R.y-C,R.width+l+m,R.height+A+C,f,g||"transparent",1,p,y,x);D.insertBefore(N.node,T.node)}}},{key:"addImage",value:function(e,t){var i=this.w,a=e.path,s=e.x,n=s===void 0?0:s,r=e.y,o=r===void 0?0:r,h=e.width,c=h===void 0?20:h,d=e.height,g=d===void 0?20:d,p=e.appendTo,x=p===void 0?".apexcharts-annotations":p,f=i.globals.dom.Paper.image(a);f.size(c,g).move(n,o);var y=i.globals.dom.baseEl.querySelector(x);return y&&y.appendChild(f.node),f}},{key:"addXaxisAnnotationExternal",value:function(e,t,i){return this.addAnnotationExternal({params:e,pushToMemory:t,context:i,type:"xaxis",contextMethod:i.addXaxisAnnotation}),i}},{key:"addYaxisAnnotationExternal",value:function(e,t,i){return this.addAnnotationExternal({params:e,pushToMemory:t,context:i,type:"yaxis",contextMethod:i.addYaxisAnnotation}),i}},{key:"addPointAnnotationExternal",value:function(e,t,i){return this.invertAxis===void 0&&(this.invertAxis=i.w.globals.isBarHorizontal),this.addAnnotationExternal({params:e,pushToMemory:t,context:i,type:"point",contextMethod:i.addPointAnnotation}),i}},{key:"addAnnotationExternal",value:function(e){var t=e.params,i=e.pushToMemory,a=e.context,s=e.type,n=e.contextMethod,r=a,o=r.w,h=o.globals.dom.baseEl.querySelector(".apexcharts-".concat(s,"-annotations")),c=h.childNodes.length+1,d=new he,g=Object.assign({},s==="xaxis"?d.xAxisAnnotation:s==="yaxis"?d.yAxisAnnotation:d.pointAnnotation),p=L.extend(g,t);switch(s){case"xaxis":this.addXaxisAnnotation(p,h,c);break;case"yaxis":this.addYaxisAnnotation(p,h,c);break;case"point":this.addPointAnnotation(p,h,c)}var x=o.globals.dom.baseEl.querySelector(".apexcharts-".concat(s,"-annotations .apexcharts-").concat(s,"-annotation-label[rel='").concat(c,"']")),f=this.helpers.addBackgroundToAnno(x,p);return f&&h.insertBefore(f.node,x),i&&o.globals.memory.methodsToExec.push({context:r,id:p.id?p.id:L.randomId(),method:n,label:"addAnnotation",params:t}),a}},{key:"clearAnnotations",value:function(e){var t=e.w,i=t.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis-annotations, .apexcharts-xaxis-annotations, .apexcharts-point-annotations");t.globals.memory.methodsToExec.map(function(a,s){a.label!=="addText"&&a.label!=="addAnnotation"||t.globals.memory.methodsToExec.splice(s,1)}),i=L.listToArray(i),Array.prototype.forEach.call(i,function(a){for(;a.firstChild;)a.removeChild(a.firstChild)})}},{key:"removeAnnotation",value:function(e,t){var i=e.w,a=i.globals.dom.baseEl.querySelectorAll(".".concat(t));a&&(i.globals.memory.methodsToExec.map(function(s,n){s.id===t&&i.globals.memory.methodsToExec.splice(n,1)}),Array.prototype.forEach.call(a,function(s){s.parentElement.removeChild(s)}))}}]),v}(),J=function(){function v(e){O(this,v),this.ctx=e,this.w=e.w,this.months31=[1,3,5,7,8,10,12],this.months30=[2,4,6,9,11],this.daysCntOfYear=[0,31,59,90,120,151,181,212,243,273,304,334]}return E(v,[{key:"isValidDate",value:function(e){return!isNaN(this.parseDate(e))}},{key:"getTimeStamp",value:function(e){return Date.parse(e)?this.w.config.xaxis.labels.datetimeUTC?new Date(new Date(e).toISOString().substr(0,25)).getTime():new Date(e).getTime():e}},{key:"getDate",value:function(e){return this.w.config.xaxis.labels.datetimeUTC?new Date(new Date(e).toUTCString()):new Date(e)}},{key:"parseDate",value:function(e){var t=Date.parse(e);if(!isNaN(t))return this.getTimeStamp(e);var i=Date.parse(e.replace(/-/g,"/").replace(/[a-z]+/gi," "));return i=this.getTimeStamp(i)}},{key:"parseDateWithTimezone",value:function(e){return Date.parse(e.replace(/-/g,"/").replace(/[a-z]+/gi," "))}},{key:"formatDate",value:function(e,t){var i=this.w.globals.locale,a=this.w.config.xaxis.labels.datetimeUTC,s=["\0"].concat(j(i.months)),n=[""].concat(j(i.shortMonths)),r=[""].concat(j(i.days)),o=[""].concat(j(i.shortDays));function h(A,P){var C=A+"";for(P=P||2;C.length12?p-12:p===0?12:p;t=(t=(t=(t=t.replace(/(^|[^\\])HH+/g,"$1"+h(p))).replace(/(^|[^\\])H/g,"$1"+p)).replace(/(^|[^\\])hh+/g,"$1"+h(x))).replace(/(^|[^\\])h/g,"$1"+x);var f=a?e.getUTCMinutes():e.getMinutes();t=(t=t.replace(/(^|[^\\])mm+/g,"$1"+h(f))).replace(/(^|[^\\])m/g,"$1"+f);var y=a?e.getUTCSeconds():e.getSeconds();t=(t=t.replace(/(^|[^\\])ss+/g,"$1"+h(y))).replace(/(^|[^\\])s/g,"$1"+y);var w=a?e.getUTCMilliseconds():e.getMilliseconds();t=t.replace(/(^|[^\\])fff+/g,"$1"+h(w,3)),w=Math.round(w/10),t=t.replace(/(^|[^\\])ff/g,"$1"+h(w)),w=Math.round(w/10);var S=p<12?"AM":"PM";t=(t=(t=t.replace(/(^|[^\\])f/g,"$1"+w)).replace(/(^|[^\\])TT+/g,"$1"+S)).replace(/(^|[^\\])T/g,"$1"+S.charAt(0));var k=S.toLowerCase();t=(t=t.replace(/(^|[^\\])tt+/g,"$1"+k)).replace(/(^|[^\\])t/g,"$1"+k.charAt(0));var l=-e.getTimezoneOffset(),u=a||!l?"Z":l>0?"+":"-";if(!a){var m=(l=Math.abs(l))%60;u+=h(Math.floor(l/60))+":"+h(m)}t=t.replace(/(^|[^\\])K/g,"$1"+u);var b=(a?e.getUTCDay():e.getDay())+1;return t=(t=(t=(t=(t=t.replace(new RegExp(r[0],"g"),r[b])).replace(new RegExp(o[0],"g"),o[b])).replace(new RegExp(s[0],"g"),s[d])).replace(new RegExp(n[0],"g"),n[d])).replace(/\\(.)/g,"$1")}},{key:"getTimeUnitsfromTimestamp",value:function(e,t,i){var a=this.w;a.config.xaxis.min!==void 0&&(e=a.config.xaxis.min),a.config.xaxis.max!==void 0&&(t=a.config.xaxis.max);var s=this.getDate(e),n=this.getDate(t),r=this.formatDate(s,"yyyy MM dd HH mm ss fff").split(" "),o=this.formatDate(n,"yyyy MM dd HH mm ss fff").split(" ");return{minMillisecond:parseInt(r[6],10),maxMillisecond:parseInt(o[6],10),minSecond:parseInt(r[5],10),maxSecond:parseInt(o[5],10),minMinute:parseInt(r[4],10),maxMinute:parseInt(o[4],10),minHour:parseInt(r[3],10),maxHour:parseInt(o[3],10),minDate:parseInt(r[2],10),maxDate:parseInt(o[2],10),minMonth:parseInt(r[1],10)-1,maxMonth:parseInt(o[1],10)-1,minYear:parseInt(r[0],10),maxYear:parseInt(o[0],10)}}},{key:"isLeapYear",value:function(e){return e%4==0&&e%100!=0||e%400==0}},{key:"calculcateLastDaysOfMonth",value:function(e,t,i){return this.determineDaysOfMonths(e,t)-i}},{key:"determineDaysOfYear",value:function(e){var t=365;return this.isLeapYear(e)&&(t=366),t}},{key:"determineRemainingDaysOfYear",value:function(e,t,i){var a=this.daysCntOfYear[t]+i;return t>1&&this.isLeapYear()&&a++,a}},{key:"determineDaysOfMonths",value:function(e,t){var i=30;switch(e=L.monthMod(e),!0){case this.months30.indexOf(e)>-1:e===2&&(i=this.isLeapYear(t)?29:28);break;case this.months31.indexOf(e)>-1:default:i=31}return i}}]),v}(),ve=function(){function v(e){O(this,v),this.ctx=e,this.w=e.w,this.tooltipKeyFormat="dd MMM"}return E(v,[{key:"xLabelFormat",value:function(e,t,i,a){var s=this.w;if(s.config.xaxis.type==="datetime"&&s.config.xaxis.labels.formatter===void 0&&s.config.tooltip.x.formatter===void 0){var n=new J(this.ctx);return n.formatDate(n.getDate(t),s.config.tooltip.x.format)}return e(t,i,a)}},{key:"defaultGeneralFormatter",value:function(e){return Array.isArray(e)?e.map(function(t){return t}):e}},{key:"defaultYFormatter",value:function(e,t,i){var a=this.w;return L.isNumber(e)&&(e=a.globals.yValueDecimal!==0?e.toFixed(t.decimalsInFloat!==void 0?t.decimalsInFloat:a.globals.yValueDecimal):a.globals.maxYArr[i]-a.globals.minYArr[i]<5?e.toFixed(1):e.toFixed(0)),e}},{key:"setLabelFormatters",value:function(){var e=this,t=this.w;return t.globals.xaxisTooltipFormatter=function(i){return e.defaultGeneralFormatter(i)},t.globals.ttKeyFormatter=function(i){return e.defaultGeneralFormatter(i)},t.globals.ttZFormatter=function(i){return i},t.globals.legendFormatter=function(i){return e.defaultGeneralFormatter(i)},t.config.xaxis.labels.formatter!==void 0?t.globals.xLabelFormatter=t.config.xaxis.labels.formatter:t.globals.xLabelFormatter=function(i){if(L.isNumber(i)){if(!t.config.xaxis.convertedCatToNumeric&&t.config.xaxis.type==="numeric"){if(L.isNumber(t.config.xaxis.decimalsInFloat))return i.toFixed(t.config.xaxis.decimalsInFloat);var a=t.globals.maxX-t.globals.minX;return a>0&&a<100?i.toFixed(1):i.toFixed(0)}return t.globals.isBarHorizontal&&t.globals.maxY-t.globals.minYArr<4?i.toFixed(1):i.toFixed(0)}return i},typeof t.config.tooltip.x.formatter=="function"?t.globals.ttKeyFormatter=t.config.tooltip.x.formatter:t.globals.ttKeyFormatter=t.globals.xLabelFormatter,typeof t.config.xaxis.tooltip.formatter=="function"&&(t.globals.xaxisTooltipFormatter=t.config.xaxis.tooltip.formatter),(Array.isArray(t.config.tooltip.y)||t.config.tooltip.y.formatter!==void 0)&&(t.globals.ttVal=t.config.tooltip.y),t.config.tooltip.z.formatter!==void 0&&(t.globals.ttZFormatter=t.config.tooltip.z.formatter),t.config.legend.formatter!==void 0&&(t.globals.legendFormatter=t.config.legend.formatter),t.config.yaxis.forEach(function(i,a){i.labels.formatter!==void 0?t.globals.yLabelFormatters[a]=i.labels.formatter:t.globals.yLabelFormatters[a]=function(s){return t.globals.xyCharts?Array.isArray(s)?s.map(function(n){return e.defaultYFormatter(n,i,a)}):e.defaultYFormatter(s,i,a):s}}),t.globals}},{key:"heatmapLabelFormatters",value:function(){var e=this.w;if(e.config.chart.type==="heatmap"){e.globals.yAxisScale[0].result=e.globals.seriesNames.slice();var t=e.globals.seriesNames.reduce(function(i,a){return i.length>a.length?i:a},0);e.globals.yAxisScale[0].niceMax=t,e.globals.yAxisScale[0].niceMin=t}}}]),v}(),Xe=function(v){var e,t=v.isTimeline,i=v.ctx,a=v.seriesIndex,s=v.dataPointIndex,n=v.y1,r=v.y2,o=v.w,h=o.globals.seriesRangeStart[a][s],c=o.globals.seriesRangeEnd[a][s],d=o.globals.labels[s],g=o.config.series[a].name?o.config.series[a].name:"",p=o.globals.ttKeyFormatter,x=o.config.tooltip.y.title.formatter,f={w:o,seriesIndex:a,dataPointIndex:s,start:h,end:c};typeof x=="function"&&(g=x(g,f)),(e=o.config.series[a].data[s])!==null&&e!==void 0&&e.x&&(d=o.config.series[a].data[s].x),t||o.config.xaxis.type==="datetime"&&(d=new ve(i).xLabelFormat(o.globals.ttKeyFormatter,d,d,{i:void 0,dateFormatter:new J(i).formatDate,w:o})),typeof p=="function"&&(d=p(d,f)),Number.isFinite(n)&&Number.isFinite(r)&&(h=n,c=r);var y="",w="",S=o.globals.colors[a];if(o.config.tooltip.x.formatter===void 0)if(o.config.xaxis.type==="datetime"){var k=new J(i);y=k.formatDate(k.getDate(h),o.config.tooltip.x.format),w=k.formatDate(k.getDate(c),o.config.tooltip.x.format)}else y=h,w=c;else y=o.config.tooltip.x.formatter(h),w=o.config.tooltip.x.formatter(c);return{start:h,end:c,startVal:y,endVal:w,ylabel:d,color:S,seriesName:g}},ze=function(v){var e=v.color,t=v.seriesName,i=v.ylabel,a=v.start,s=v.end,n=v.seriesIndex,r=v.dataPointIndex,o=v.ctx.tooltip.tooltipLabels.getFormatters(n);a=o.yLbFormatter(a),s=o.yLbFormatter(s);var h=o.yLbFormatter(v.w.globals.series[n][r]),c=` `.concat(a,` - `).concat(s,` - `);return'
'+(t||"")+'
'+i+": "+(v.w.globals.comboCharts?v.w.config.series[n].type==="rangeArea"||v.w.config.series[n].type==="rangeBar"?c:"".concat(h,""):c)+"
"},ye=function(){function v(e){O(this,v),this.opts=e}return I(v,[{key:"line",value:function(){return{chart:{animations:{easing:"swing"}},dataLabels:{enabled:!1},stroke:{width:5,curve:"straight"},markers:{size:0,hover:{sizeOffset:6}},xaxis:{crosshairs:{width:1}}}}},{key:"sparkline",value:function(e){return this.opts.yaxis[0].show=!1,this.opts.yaxis[0].title.text="",this.opts.yaxis[0].axisBorder.show=!1,this.opts.yaxis[0].axisTicks.show=!1,this.opts.yaxis[0].floating=!0,L.extend(e,{grid:{show:!1,padding:{left:0,right:0,top:0,bottom:0}},legend:{show:!1},xaxis:{labels:{show:!1},tooltip:{enabled:!1},axisBorder:{show:!1},axisTicks:{show:!1}},chart:{toolbar:{show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!1}})}},{key:"bar",value:function(){return{chart:{stacked:!1,animations:{easing:"swing"}},plotOptions:{bar:{dataLabels:{position:"center"}}},dataLabels:{style:{colors:["#fff"]},background:{enabled:!1}},stroke:{width:0,lineCap:"round"},fill:{opacity:.85},legend:{markers:{shape:"square",radius:2,size:8}},tooltip:{shared:!1,intersect:!0},xaxis:{tooltip:{enabled:!1},tickPlacement:"between",crosshairs:{width:"barWidth",position:"back",fill:{type:"gradient"},dropShadow:{enabled:!1},stroke:{width:0}}}}}},{key:"candlestick",value:function(){var e=this;return{stroke:{width:1,colors:["#333"]},fill:{opacity:1},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:function(t){var i=t.seriesIndex,a=t.dataPointIndex,s=t.w;return e._getBoxTooltip(s,i,a,["Open","High","","Low","Close"],"candlestick")}},states:{active:{filter:{type:"none"}}},xaxis:{crosshairs:{width:1}}}}},{key:"boxPlot",value:function(){var e=this;return{chart:{animations:{dynamicAnimation:{enabled:!1}}},stroke:{width:1,colors:["#24292e"]},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:function(t){var i=t.seriesIndex,a=t.dataPointIndex,s=t.w;return e._getBoxTooltip(s,i,a,["Minimum","Q1","Median","Q3","Maximum"],"boxPlot")}},markers:{size:5,strokeWidth:1,strokeColors:"#111"},xaxis:{crosshairs:{width:1}}}}},{key:"rangeBar",value:function(){return{stroke:{width:0,lineCap:"square"},plotOptions:{bar:{borderRadius:0,dataLabels:{position:"center"}}},dataLabels:{enabled:!1,formatter:function(e,t){t.ctx;var i=t.seriesIndex,a=t.dataPointIndex,s=t.w,n=function(){var r=s.globals.seriesRangeStart[i][a];return s.globals.seriesRangeEnd[i][a]-r};return s.globals.comboCharts?s.config.series[i].type==="rangeBar"||s.config.series[i].type==="rangeArea"?n():e:n()},background:{enabled:!1},style:{colors:["#fff"]}},tooltip:{shared:!1,followCursor:!0,custom:function(e){return e.w.config.plotOptions&&e.w.config.plotOptions.bar&&e.w.config.plotOptions.bar.horizontal?function(t){var i=Xe(z(z({},t),{},{isTimeline:!0})),a=i.color,s=i.seriesName,n=i.ylabel,r=i.startVal,o=i.endVal;return ze(z(z({},t),{},{color:a,seriesName:s,ylabel:n,start:r,end:o}))}(e):function(t){var i=Xe(t),a=i.color,s=i.seriesName,n=i.ylabel,r=i.start,o=i.end;return ze(z(z({},t),{},{color:a,seriesName:s,ylabel:n,start:r,end:o}))}(e)}},xaxis:{tickPlacement:"between",tooltip:{enabled:!1},crosshairs:{stroke:{width:0}}}}}},{key:"area",value:function(){return{stroke:{width:4,fill:{type:"solid",gradient:{inverseColors:!1,shade:"light",type:"vertical",opacityFrom:.65,opacityTo:.5,stops:[0,100,100]}}},fill:{type:"gradient",gradient:{inverseColors:!1,shade:"light",type:"vertical",opacityFrom:.65,opacityTo:.5,stops:[0,100,100]}},markers:{size:0,hover:{sizeOffset:6}},tooltip:{followCursor:!1}}}},{key:"rangeArea",value:function(){return{stroke:{curve:"straight",width:0},fill:{type:"solid",opacity:.6},markers:{size:0},states:{hover:{filter:{type:"none"}},active:{filter:{type:"none"}}},tooltip:{intersect:!1,shared:!0,followCursor:!0,custom:function(e){return function(t){var i=Xe(t),a=i.color,s=i.seriesName,n=i.ylabel,r=i.start,o=i.end;return ze(z(z({},t),{},{color:a,seriesName:s,ylabel:n,start:r,end:o}))}(e)}}}}},{key:"brush",value:function(e){return L.extend(e,{chart:{toolbar:{autoSelected:"selection",show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!1},stroke:{width:1},tooltip:{enabled:!1},xaxis:{tooltip:{enabled:!1}}})}},{key:"stacked100",value:function(e){e.dataLabels=e.dataLabels||{},e.dataLabels.formatter=e.dataLabels.formatter||void 0;var t=e.dataLabels.formatter;return e.yaxis.forEach(function(i,a){e.yaxis[a].min=0,e.yaxis[a].max=100}),e.chart.type==="bar"&&(e.dataLabels.formatter=t||function(i){return typeof i=="number"&&i?i.toFixed(0)+"%":i}),e}},{key:"convertCatToNumeric",value:function(e){return e.xaxis.convertedCatToNumeric=!0,e}},{key:"convertCatToNumericXaxis",value:function(e,t,i){e.xaxis.type="numeric",e.xaxis.labels=e.xaxis.labels||{},e.xaxis.labels.formatter=e.xaxis.labels.formatter||function(n){return L.isNumber(n)?Math.floor(n):n};var a=e.xaxis.labels.formatter,s=e.xaxis.categories&&e.xaxis.categories.length?e.xaxis.categories:e.labels;return i&&i.length&&(s=i.map(function(n){return Array.isArray(n)?n:String(n)})),s&&s.length&&(e.xaxis.labels.formatter=function(n){return L.isNumber(n)?a(s[Math.floor(n)-1]):a(n)}),e.xaxis.categories=[],e.labels=[],e.xaxis.tickAmount=e.xaxis.tickAmount||"dataPoints",e}},{key:"bubble",value:function(){return{dataLabels:{style:{colors:["#fff"]}},tooltip:{shared:!1,intersect:!0},xaxis:{crosshairs:{width:0}},fill:{type:"solid",gradient:{shade:"light",inverse:!0,shadeIntensity:.55,opacityFrom:.4,opacityTo:.8}}}}},{key:"scatter",value:function(){return{dataLabels:{enabled:!1},tooltip:{shared:!1,intersect:!0},markers:{size:6,strokeWidth:1,hover:{sizeOffset:2}}}}},{key:"heatmap",value:function(){return{chart:{stacked:!1},fill:{opacity:1},dataLabels:{style:{colors:["#fff"]}},stroke:{colors:["#fff"]},tooltip:{followCursor:!0,marker:{show:!1},x:{show:!1}},legend:{position:"top",markers:{shape:"square",size:10,offsetY:2}},grid:{padding:{right:20}}}}},{key:"treemap",value:function(){return{chart:{zoom:{enabled:!1}},dataLabels:{style:{fontSize:14,fontWeight:600,colors:["#fff"]}},stroke:{show:!0,width:2,colors:["#fff"]},legend:{show:!1},fill:{gradient:{stops:[0,100]}},tooltip:{followCursor:!0,x:{show:!1}},grid:{padding:{left:0,right:0}},xaxis:{crosshairs:{show:!1},tooltip:{enabled:!1}}}}},{key:"pie",value:function(){return{chart:{toolbar:{show:!1}},plotOptions:{pie:{donut:{labels:{show:!1}}}},dataLabels:{formatter:function(e){return e.toFixed(1)+"%"},style:{colors:["#fff"]},background:{enabled:!1},dropShadow:{enabled:!0}},stroke:{colors:["#fff"]},fill:{opacity:1,gradient:{shade:"light",stops:[0,100]}},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"}}}},{key:"donut",value:function(){return{chart:{toolbar:{show:!1}},dataLabels:{formatter:function(e){return e.toFixed(1)+"%"},style:{colors:["#fff"]},background:{enabled:!1},dropShadow:{enabled:!0}},stroke:{colors:["#fff"]},fill:{opacity:1,gradient:{shade:"light",shadeIntensity:.35,stops:[80,100],opacityFrom:1,opacityTo:1}},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"}}}},{key:"polarArea",value:function(){return this.opts.yaxis[0].tickAmount=this.opts.yaxis[0].tickAmount?this.opts.yaxis[0].tickAmount:6,{chart:{toolbar:{show:!1}},dataLabels:{formatter:function(e){return e.toFixed(1)+"%"},enabled:!1},stroke:{show:!0,width:2},fill:{opacity:.7},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"}}}},{key:"radar",value:function(){return this.opts.yaxis[0].labels.offsetY=this.opts.yaxis[0].labels.offsetY?this.opts.yaxis[0].labels.offsetY:6,{dataLabels:{enabled:!1,style:{fontSize:"11px"}},stroke:{width:2},markers:{size:3,strokeWidth:1,strokeOpacity:1},fill:{opacity:.2},tooltip:{shared:!1,intersect:!0,followCursor:!0},grid:{show:!1},xaxis:{labels:{formatter:function(e){return e},style:{colors:["#a8a8a8"],fontSize:"11px"}},tooltip:{enabled:!1},crosshairs:{show:!1}}}}},{key:"radialBar",value:function(){return{chart:{animations:{dynamicAnimation:{enabled:!0,speed:800}},toolbar:{show:!1}},fill:{gradient:{shade:"dark",shadeIntensity:.4,inverseColors:!1,type:"diagonal2",opacityFrom:1,opacityTo:1,stops:[70,98,100]}},legend:{show:!1,position:"right"},tooltip:{enabled:!1,fillSeriesColor:!0}}}},{key:"_getBoxTooltip",value:function(e,t,i,a,s){var n=e.globals.seriesCandleO[t][i],r=e.globals.seriesCandleH[t][i],o=e.globals.seriesCandleM[t][i],h=e.globals.seriesCandleL[t][i],c=e.globals.seriesCandleC[t][i];return e.config.series[t].type&&e.config.series[t].type!==s?`
+ `);return'
'+(t||"")+'
'+i+": "+(v.w.globals.comboCharts?v.w.config.series[n].type==="rangeArea"||v.w.config.series[n].type==="rangeBar"?c:"".concat(h,""):c)+"
"},ye=function(){function v(e){O(this,v),this.opts=e}return E(v,[{key:"line",value:function(){return{chart:{animations:{easing:"swing"}},dataLabels:{enabled:!1},stroke:{width:5,curve:"straight"},markers:{size:0,hover:{sizeOffset:6}},xaxis:{crosshairs:{width:1}}}}},{key:"sparkline",value:function(e){return this.opts.yaxis[0].show=!1,this.opts.yaxis[0].title.text="",this.opts.yaxis[0].axisBorder.show=!1,this.opts.yaxis[0].axisTicks.show=!1,this.opts.yaxis[0].floating=!0,L.extend(e,{grid:{show:!1,padding:{left:0,right:0,top:0,bottom:0}},legend:{show:!1},xaxis:{labels:{show:!1},tooltip:{enabled:!1},axisBorder:{show:!1},axisTicks:{show:!1}},chart:{toolbar:{show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!1}})}},{key:"bar",value:function(){return{chart:{stacked:!1,animations:{easing:"swing"}},plotOptions:{bar:{dataLabels:{position:"center"}}},dataLabels:{style:{colors:["#fff"]},background:{enabled:!1}},stroke:{width:0,lineCap:"round"},fill:{opacity:.85},legend:{markers:{shape:"square",radius:2,size:8}},tooltip:{shared:!1,intersect:!0},xaxis:{tooltip:{enabled:!1},tickPlacement:"between",crosshairs:{width:"barWidth",position:"back",fill:{type:"gradient"},dropShadow:{enabled:!1},stroke:{width:0}}}}}},{key:"candlestick",value:function(){var e=this;return{stroke:{width:1,colors:["#333"]},fill:{opacity:1},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:function(t){var i=t.seriesIndex,a=t.dataPointIndex,s=t.w;return e._getBoxTooltip(s,i,a,["Open","High","","Low","Close"],"candlestick")}},states:{active:{filter:{type:"none"}}},xaxis:{crosshairs:{width:1}}}}},{key:"boxPlot",value:function(){var e=this;return{chart:{animations:{dynamicAnimation:{enabled:!1}}},stroke:{width:1,colors:["#24292e"]},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:function(t){var i=t.seriesIndex,a=t.dataPointIndex,s=t.w;return e._getBoxTooltip(s,i,a,["Minimum","Q1","Median","Q3","Maximum"],"boxPlot")}},markers:{size:5,strokeWidth:1,strokeColors:"#111"},xaxis:{crosshairs:{width:1}}}}},{key:"rangeBar",value:function(){return{stroke:{width:0,lineCap:"square"},plotOptions:{bar:{borderRadius:0,dataLabels:{position:"center"}}},dataLabels:{enabled:!1,formatter:function(e,t){t.ctx;var i=t.seriesIndex,a=t.dataPointIndex,s=t.w,n=function(){var r=s.globals.seriesRangeStart[i][a];return s.globals.seriesRangeEnd[i][a]-r};return s.globals.comboCharts?s.config.series[i].type==="rangeBar"||s.config.series[i].type==="rangeArea"?n():e:n()},background:{enabled:!1},style:{colors:["#fff"]}},tooltip:{shared:!1,followCursor:!0,custom:function(e){return e.w.config.plotOptions&&e.w.config.plotOptions.bar&&e.w.config.plotOptions.bar.horizontal?function(t){var i=Xe(z(z({},t),{},{isTimeline:!0})),a=i.color,s=i.seriesName,n=i.ylabel,r=i.startVal,o=i.endVal;return ze(z(z({},t),{},{color:a,seriesName:s,ylabel:n,start:r,end:o}))}(e):function(t){var i=Xe(t),a=i.color,s=i.seriesName,n=i.ylabel,r=i.start,o=i.end;return ze(z(z({},t),{},{color:a,seriesName:s,ylabel:n,start:r,end:o}))}(e)}},xaxis:{tickPlacement:"between",tooltip:{enabled:!1},crosshairs:{stroke:{width:0}}}}}},{key:"area",value:function(){return{stroke:{width:4,fill:{type:"solid",gradient:{inverseColors:!1,shade:"light",type:"vertical",opacityFrom:.65,opacityTo:.5,stops:[0,100,100]}}},fill:{type:"gradient",gradient:{inverseColors:!1,shade:"light",type:"vertical",opacityFrom:.65,opacityTo:.5,stops:[0,100,100]}},markers:{size:0,hover:{sizeOffset:6}},tooltip:{followCursor:!1}}}},{key:"rangeArea",value:function(){return{stroke:{curve:"straight",width:0},fill:{type:"solid",opacity:.6},markers:{size:0},states:{hover:{filter:{type:"none"}},active:{filter:{type:"none"}}},tooltip:{intersect:!1,shared:!0,followCursor:!0,custom:function(e){return function(t){var i=Xe(t),a=i.color,s=i.seriesName,n=i.ylabel,r=i.start,o=i.end;return ze(z(z({},t),{},{color:a,seriesName:s,ylabel:n,start:r,end:o}))}(e)}}}}},{key:"brush",value:function(e){return L.extend(e,{chart:{toolbar:{autoSelected:"selection",show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!1},stroke:{width:1},tooltip:{enabled:!1},xaxis:{tooltip:{enabled:!1}}})}},{key:"stacked100",value:function(e){e.dataLabels=e.dataLabels||{},e.dataLabels.formatter=e.dataLabels.formatter||void 0;var t=e.dataLabels.formatter;return e.yaxis.forEach(function(i,a){e.yaxis[a].min=0,e.yaxis[a].max=100}),e.chart.type==="bar"&&(e.dataLabels.formatter=t||function(i){return typeof i=="number"&&i?i.toFixed(0)+"%":i}),e}},{key:"convertCatToNumeric",value:function(e){return e.xaxis.convertedCatToNumeric=!0,e}},{key:"convertCatToNumericXaxis",value:function(e,t,i){e.xaxis.type="numeric",e.xaxis.labels=e.xaxis.labels||{},e.xaxis.labels.formatter=e.xaxis.labels.formatter||function(n){return L.isNumber(n)?Math.floor(n):n};var a=e.xaxis.labels.formatter,s=e.xaxis.categories&&e.xaxis.categories.length?e.xaxis.categories:e.labels;return i&&i.length&&(s=i.map(function(n){return Array.isArray(n)?n:String(n)})),s&&s.length&&(e.xaxis.labels.formatter=function(n){return L.isNumber(n)?a(s[Math.floor(n)-1]):a(n)}),e.xaxis.categories=[],e.labels=[],e.xaxis.tickAmount=e.xaxis.tickAmount||"dataPoints",e}},{key:"bubble",value:function(){return{dataLabels:{style:{colors:["#fff"]}},tooltip:{shared:!1,intersect:!0},xaxis:{crosshairs:{width:0}},fill:{type:"solid",gradient:{shade:"light",inverse:!0,shadeIntensity:.55,opacityFrom:.4,opacityTo:.8}}}}},{key:"scatter",value:function(){return{dataLabels:{enabled:!1},tooltip:{shared:!1,intersect:!0},markers:{size:6,strokeWidth:1,hover:{sizeOffset:2}}}}},{key:"heatmap",value:function(){return{chart:{stacked:!1},fill:{opacity:1},dataLabels:{style:{colors:["#fff"]}},stroke:{colors:["#fff"]},tooltip:{followCursor:!0,marker:{show:!1},x:{show:!1}},legend:{position:"top",markers:{shape:"square",size:10,offsetY:2}},grid:{padding:{right:20}}}}},{key:"treemap",value:function(){return{chart:{zoom:{enabled:!1}},dataLabels:{style:{fontSize:14,fontWeight:600,colors:["#fff"]}},stroke:{show:!0,width:2,colors:["#fff"]},legend:{show:!1},fill:{gradient:{stops:[0,100]}},tooltip:{followCursor:!0,x:{show:!1}},grid:{padding:{left:0,right:0}},xaxis:{crosshairs:{show:!1},tooltip:{enabled:!1}}}}},{key:"pie",value:function(){return{chart:{toolbar:{show:!1}},plotOptions:{pie:{donut:{labels:{show:!1}}}},dataLabels:{formatter:function(e){return e.toFixed(1)+"%"},style:{colors:["#fff"]},background:{enabled:!1},dropShadow:{enabled:!0}},stroke:{colors:["#fff"]},fill:{opacity:1,gradient:{shade:"light",stops:[0,100]}},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"}}}},{key:"donut",value:function(){return{chart:{toolbar:{show:!1}},dataLabels:{formatter:function(e){return e.toFixed(1)+"%"},style:{colors:["#fff"]},background:{enabled:!1},dropShadow:{enabled:!0}},stroke:{colors:["#fff"]},fill:{opacity:1,gradient:{shade:"light",shadeIntensity:.35,stops:[80,100],opacityFrom:1,opacityTo:1}},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"}}}},{key:"polarArea",value:function(){return this.opts.yaxis[0].tickAmount=this.opts.yaxis[0].tickAmount?this.opts.yaxis[0].tickAmount:6,{chart:{toolbar:{show:!1}},dataLabels:{formatter:function(e){return e.toFixed(1)+"%"},enabled:!1},stroke:{show:!0,width:2},fill:{opacity:.7},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"}}}},{key:"radar",value:function(){return this.opts.yaxis[0].labels.offsetY=this.opts.yaxis[0].labels.offsetY?this.opts.yaxis[0].labels.offsetY:6,{dataLabels:{enabled:!1,style:{fontSize:"11px"}},stroke:{width:2},markers:{size:3,strokeWidth:1,strokeOpacity:1},fill:{opacity:.2},tooltip:{shared:!1,intersect:!0,followCursor:!0},grid:{show:!1},xaxis:{labels:{formatter:function(e){return e},style:{colors:["#a8a8a8"],fontSize:"11px"}},tooltip:{enabled:!1},crosshairs:{show:!1}}}}},{key:"radialBar",value:function(){return{chart:{animations:{dynamicAnimation:{enabled:!0,speed:800}},toolbar:{show:!1}},fill:{gradient:{shade:"dark",shadeIntensity:.4,inverseColors:!1,type:"diagonal2",opacityFrom:1,opacityTo:1,stops:[70,98,100]}},legend:{show:!1,position:"right"},tooltip:{enabled:!1,fillSeriesColor:!0}}}},{key:"_getBoxTooltip",value:function(e,t,i,a,s){var n=e.globals.seriesCandleO[t][i],r=e.globals.seriesCandleH[t][i],o=e.globals.seriesCandleM[t][i],h=e.globals.seriesCandleL[t][i],c=e.globals.seriesCandleC[t][i];return e.config.series[t].type&&e.config.series[t].type!==s?`
`.concat(e.config.series[t].name?e.config.series[t].name:"series-"+(t+1),": ").concat(e.globals.series[t][i],` -
`):'
')+"
".concat(a[0],': ')+n+"
"+"
".concat(a[1],': ')+r+"
"+(o?"
".concat(a[2],': ')+o+"
":"")+"
".concat(a[3],': ')+h+"
"+"
".concat(a[4],': ')+c+"
"}}]),v}(),we=function(){function v(e){O(this,v),this.opts=e}return I(v,[{key:"init",value:function(e){var t=e.responsiveOverride,i=this.opts,a=new de,s=new ye(i);this.chartType=i.chart.type,i=this.extendYAxis(i),i=this.extendAnnotations(i);var n=a.init(),r={};if(i&&G(i)==="object"){var o={};o=["line","area","bar","candlestick","boxPlot","rangeBar","rangeArea","bubble","scatter","heatmap","treemap","pie","polarArea","donut","radar","radialBar"].indexOf(i.chart.type)!==-1?s[i.chart.type]():s.line(),i.chart.brush&&i.chart.brush.enabled&&(o=s.brush(o)),i.chart.stacked&&i.chart.stackType==="100%"&&(i=s.stacked100(i)),this.checkForDarkTheme(window.Apex),this.checkForDarkTheme(i),i.xaxis=i.xaxis||window.Apex.xaxis||{},t||(i.xaxis.convertedCatToNumeric=!1),((i=this.checkForCatToNumericXAxis(this.chartType,o,i)).chart.sparkline&&i.chart.sparkline.enabled||window.Apex.chart&&window.Apex.chart.sparkline&&window.Apex.chart.sparkline.enabled)&&(o=s.sparkline(o)),r=L.extend(n,o)}var h=L.extend(r,window.Apex);return n=L.extend(h,i),n=this.handleUserInputErrors(n)}},{key:"checkForCatToNumericXAxis",value:function(e,t,i){var a=new ye(i),s=(e==="bar"||e==="boxPlot")&&i.plotOptions&&i.plotOptions.bar&&i.plotOptions.bar.horizontal,n=e==="pie"||e==="polarArea"||e==="donut"||e==="radar"||e==="radialBar"||e==="heatmap",r=i.xaxis.type!=="datetime"&&i.xaxis.type!=="numeric",o=i.xaxis.tickPlacement?i.xaxis.tickPlacement:t.xaxis&&t.xaxis.tickPlacement;return s||n||!r||o==="between"||(i=a.convertCatToNumeric(i)),i}},{key:"extendYAxis",value:function(e,t){var i=new de;(e.yaxis===void 0||!e.yaxis||Array.isArray(e.yaxis)&&e.yaxis.length===0)&&(e.yaxis={}),e.yaxis.constructor!==Array&&window.Apex.yaxis&&window.Apex.yaxis.constructor!==Array&&(e.yaxis=L.extend(e.yaxis,window.Apex.yaxis)),e.yaxis.constructor!==Array?e.yaxis=[L.extend(i.yAxis,e.yaxis)]:e.yaxis=L.extendArray(e.yaxis,i.yAxis);var a=!1;e.yaxis.forEach(function(n){n.logarithmic&&(a=!0)});var s=e.series;return t&&!s&&(s=t.config.series),a&&s.length!==e.yaxis.length&&s.length&&(e.yaxis=s.map(function(n,r){if(n.name||(s[r].name="series-".concat(r+1)),e.yaxis[r])return e.yaxis[r].seriesName=s[r].name,e.yaxis[r];var o=L.extend(i.yAxis,e.yaxis[0]);return o.show=!1,o})),a&&s.length>1&&s.length!==e.yaxis.length&&console.warn("A multi-series logarithmic chart should have equal number of series and y-axes. Please make sure to equalize both."),e}},{key:"extendAnnotations",value:function(e){return e.annotations===void 0&&(e.annotations={},e.annotations.yaxis=[],e.annotations.xaxis=[],e.annotations.points=[]),e=this.extendYAxisAnnotations(e),e=this.extendXAxisAnnotations(e),e=this.extendPointAnnotations(e)}},{key:"extendYAxisAnnotations",value:function(e){var t=new de;return e.annotations.yaxis=L.extendArray(e.annotations.yaxis!==void 0?e.annotations.yaxis:[],t.yAxisAnnotation),e}},{key:"extendXAxisAnnotations",value:function(e){var t=new de;return e.annotations.xaxis=L.extendArray(e.annotations.xaxis!==void 0?e.annotations.xaxis:[],t.xAxisAnnotation),e}},{key:"extendPointAnnotations",value:function(e){var t=new de;return e.annotations.points=L.extendArray(e.annotations.points!==void 0?e.annotations.points:[],t.pointAnnotation),e}},{key:"checkForDarkTheme",value:function(e){e.theme&&e.theme.mode==="dark"&&(e.tooltip||(e.tooltip={}),e.tooltip.theme!=="light"&&(e.tooltip.theme="dark"),e.chart.foreColor||(e.chart.foreColor="#f6f7f8"),e.chart.background||(e.chart.background="#424242"),e.theme.palette||(e.theme.palette="palette4"))}},{key:"handleUserInputErrors",value:function(e){var t=e;if(t.tooltip.shared&&t.tooltip.intersect)throw new Error("tooltip.shared cannot be enabled when tooltip.intersect is true. Turn off any other option by setting it to false.");if(t.chart.type==="bar"&&t.plotOptions.bar.horizontal){if(t.yaxis.length>1)throw new Error("Multiple Y Axis for bars are not supported. Switch to column chart by setting plotOptions.bar.horizontal=false");t.yaxis[0].reversed&&(t.yaxis[0].opposite=!0),t.xaxis.tooltip.enabled=!1,t.yaxis[0].tooltip.enabled=!1,t.chart.zoom.enabled=!1}return t.chart.type!=="bar"&&t.chart.type!=="rangeBar"||t.tooltip.shared&&t.xaxis.crosshairs.width==="barWidth"&&t.series.length>1&&(t.xaxis.crosshairs.width="tickWidth"),t.chart.type!=="candlestick"&&t.chart.type!=="boxPlot"||t.yaxis[0].reversed&&(console.warn("Reversed y-axis in ".concat(t.chart.type," chart is not supported.")),t.yaxis[0].reversed=!1),t}}]),v}(),je=function(){function v(){O(this,v)}return I(v,[{key:"initGlobalVars",value:function(e){e.series=[],e.seriesCandleO=[],e.seriesCandleH=[],e.seriesCandleM=[],e.seriesCandleL=[],e.seriesCandleC=[],e.seriesRangeStart=[],e.seriesRangeEnd=[],e.seriesRange=[],e.seriesPercent=[],e.seriesGoals=[],e.seriesX=[],e.seriesZ=[],e.seriesNames=[],e.seriesTotals=[],e.seriesLog=[],e.seriesColors=[],e.stackedSeriesTotals=[],e.seriesXvalues=[],e.seriesYvalues=[],e.labels=[],e.hasGroups=!1,e.groups=[],e.categoryLabels=[],e.timescaleLabels=[],e.noLabelsProvided=!1,e.resizeTimer=null,e.selectionResizeTimer=null,e.delayedElements=[],e.pointsArray=[],e.dataLabelsRects=[],e.isXNumeric=!1,e.skipLastTimelinelabel=!1,e.skipFirstTimelinelabel=!1,e.isDataXYZ=!1,e.isMultiLineX=!1,e.isMultipleYAxis=!1,e.maxY=-Number.MAX_VALUE,e.minY=Number.MIN_VALUE,e.minYArr=[],e.maxYArr=[],e.maxX=-Number.MAX_VALUE,e.minX=Number.MAX_VALUE,e.initialMaxX=-Number.MAX_VALUE,e.initialMinX=Number.MAX_VALUE,e.maxDate=0,e.minDate=Number.MAX_VALUE,e.minZ=Number.MAX_VALUE,e.maxZ=-Number.MAX_VALUE,e.minXDiff=Number.MAX_VALUE,e.yAxisScale=[],e.xAxisScale=null,e.xAxisTicksPositions=[],e.yLabelsCoords=[],e.yTitleCoords=[],e.barPadForNumericAxis=0,e.padHorizontal=0,e.xRange=0,e.yRange=[],e.zRange=0,e.dataPoints=0,e.xTickAmount=0}},{key:"globalVars",value:function(e){return{chartID:null,cuid:null,events:{beforeMount:[],mounted:[],updated:[],clicked:[],selection:[],dataPointSelection:[],zoomed:[],scrolled:[]},colors:[],clientX:null,clientY:null,fill:{colors:[]},stroke:{colors:[]},dataLabels:{style:{colors:[]}},radarPolygons:{fill:{colors:[]}},markers:{colors:[],size:e.markers.size,largestSize:0},animationEnded:!1,isTouchDevice:"ontouchstart"in window||navigator.msMaxTouchPoints,isDirty:!1,isExecCalled:!1,initialConfig:null,initialSeries:[],lastXAxis:[],lastYAxis:[],columnSeries:null,labels:[],timescaleLabels:[],noLabelsProvided:!1,allSeriesCollapsed:!1,collapsedSeries:[],collapsedSeriesIndices:[],ancillaryCollapsedSeries:[],ancillaryCollapsedSeriesIndices:[],risingSeries:[],dataFormatXNumeric:!1,capturedSeriesIndex:-1,capturedDataPointIndex:-1,selectedDataPoints:[],goldenPadding:35,invalidLogScale:!1,ignoreYAxisIndexes:[],yAxisSameScaleIndices:[],maxValsInArrayIndex:0,radialSize:0,selection:void 0,zoomEnabled:e.chart.toolbar.autoSelected==="zoom"&&e.chart.toolbar.tools.zoom&&e.chart.zoom.enabled,panEnabled:e.chart.toolbar.autoSelected==="pan"&&e.chart.toolbar.tools.pan,selectionEnabled:e.chart.toolbar.autoSelected==="selection"&&e.chart.toolbar.tools.selection,yaxis:null,mousedown:!1,lastClientPosition:{},visibleXRange:void 0,yValueDecimal:0,total:0,SVGNS:"http://www.w3.org/2000/svg",svgWidth:0,svgHeight:0,noData:!1,locale:{},dom:{},memory:{methodsToExec:[]},shouldAnimate:!0,skipLastTimelinelabel:!1,skipFirstTimelinelabel:!1,delayedElements:[],axisCharts:!0,isDataXYZ:!1,resized:!1,resizeTimer:null,comboCharts:!1,dataChanged:!1,previousPaths:[],allSeriesHasEqualX:!0,pointsArray:[],dataLabelsRects:[],lastDrawnDataLabelsIndexes:[],hasNullValues:!1,easing:null,zoomed:!1,gridWidth:0,gridHeight:0,rotateXLabels:!1,defaultLabels:!1,xLabelFormatter:void 0,yLabelFormatters:[],xaxisTooltipFormatter:void 0,ttKeyFormatter:void 0,ttVal:void 0,ttZFormatter:void 0,LINE_HEIGHT_RATIO:1.618,xAxisLabelsHeight:0,xAxisGroupLabelsHeight:0,xAxisLabelsWidth:0,yAxisLabelsWidth:0,scaleX:1,scaleY:1,translateX:0,translateY:0,translateYAxisX:[],yAxisWidths:[],translateXAxisY:0,translateXAxisX:0,tooltip:null}}},{key:"init",value:function(e){var t=this.globalVars(e);return this.initGlobalVars(t),t.initialConfig=L.extend({},e),t.initialSeries=L.clone(e.series),t.lastXAxis=L.clone(t.initialConfig.xaxis),t.lastYAxis=L.clone(t.initialConfig.yaxis),t}}]),v}(),Pi=function(){function v(e){O(this,v),this.opts=e}return I(v,[{key:"init",value:function(){var e=new we(this.opts).init({responsiveOverride:!1});return{config:e,globals:new je().init(e)}}}]),v}(),ne=function(){function v(e){O(this,v),this.ctx=e,this.w=e.w,this.opts=null,this.seriesIndex=0}return I(v,[{key:"clippedImgArea",value:function(e){var t=this.w,i=t.config,a=parseInt(t.globals.gridWidth,10),s=parseInt(t.globals.gridHeight,10),n=a>s?a:s,r=e.image,o=0,h=0;e.width===void 0&&e.height===void 0?i.fill.image.width!==void 0&&i.fill.image.height!==void 0?(o=i.fill.image.width+1,h=i.fill.image.height):(o=n+1,h=n):(o=e.width,h=e.height);var c=document.createElementNS(t.globals.SVGNS,"pattern");Y.setAttrs(c,{id:e.patternID,patternUnits:e.patternUnits?e.patternUnits:"userSpaceOnUse",width:o+"px",height:h+"px"});var d=document.createElementNS(t.globals.SVGNS,"image");c.appendChild(d),d.setAttributeNS(window.SVG.xlink,"href",r),Y.setAttrs(d,{x:0,y:0,preserveAspectRatio:"none",width:o+"px",height:h+"px"}),d.style.opacity=e.opacity,t.globals.dom.elDefs.node.appendChild(c)}},{key:"getSeriesIndex",value:function(e){var t=this.w;return(t.config.chart.type==="bar"||t.config.chart.type==="rangeBar")&&t.config.plotOptions.bar.distributed||t.config.chart.type==="heatmap"||t.config.chart.type==="treemap"?this.seriesIndex=e.seriesNumber:this.seriesIndex=e.seriesNumber%t.globals.series.length,this.seriesIndex}},{key:"fillPath",value:function(e){var t=this.w;this.opts=e;var i,a,s,n=this.w.config;this.seriesIndex=this.getSeriesIndex(e);var r=this.getFillColors()[this.seriesIndex];t.globals.seriesColors[this.seriesIndex]!==void 0&&(r=t.globals.seriesColors[this.seriesIndex]),typeof r=="function"&&(r=r({seriesIndex:this.seriesIndex,dataPointIndex:e.dataPointIndex,value:e.value,w:t}));var o=e.fillType?e.fillType:this.getFillType(this.seriesIndex),h=Array.isArray(n.fill.opacity)?n.fill.opacity[this.seriesIndex]:n.fill.opacity;e.color&&(r=e.color);var c=r;if(r.indexOf("rgb")===-1?r.length<9&&(c=L.hexToRgba(r,h)):r.indexOf("rgba")>-1&&(h=L.getOpacityFromRGBA(r)),e.opacity&&(h=e.opacity),o==="pattern"&&(a=this.handlePatternFill({fillConfig:e.fillConfig,patternFill:a,fillColor:r,fillOpacity:h,defaultColor:c})),o==="gradient"&&(s=this.handleGradientFill({fillConfig:e.fillConfig,fillColor:r,fillOpacity:h,i:this.seriesIndex})),o==="image"){var d=n.fill.image.src,g=e.patternID?e.patternID:"";this.clippedImgArea({opacity:h,image:Array.isArray(d)?e.seriesNumber-1&&(p=L.getOpacityFromRGBA(g));var x=n.gradient.opacityTo===void 0?i:Array.isArray(n.gradient.opacityTo)?n.gradient.opacityTo[s]:n.gradient.opacityTo;if(n.gradient.gradientToColors===void 0||n.gradient.gradientToColors.length===0)r=n.gradient.shade==="dark"?c.shadeColor(-1*parseFloat(n.gradient.shadeIntensity),t.indexOf("rgb")>-1?L.rgb2hex(t):t):c.shadeColor(parseFloat(n.gradient.shadeIntensity),t.indexOf("rgb")>-1?L.rgb2hex(t):t);else if(n.gradient.gradientToColors[o.seriesNumber]){var f=n.gradient.gradientToColors[o.seriesNumber];r=f,f.indexOf("rgba")>-1&&(x=L.getOpacityFromRGBA(f))}else r=t;if(n.gradient.gradientFrom&&(g=n.gradient.gradientFrom),n.gradient.gradientTo&&(r=n.gradient.gradientTo),n.gradient.inverseColors){var y=g;g=r,r=y}return g.indexOf("rgb")>-1&&(g=L.rgb2hex(g)),r.indexOf("rgb")>-1&&(r=L.rgb2hex(r)),h.drawGradient(d,g,r,p,x,o.size,n.gradient.stops,n.gradient.colorStops,s)}}]),v}(),ke=function(){function v(e,t){O(this,v),this.ctx=e,this.w=e.w}return I(v,[{key:"setGlobalMarkerSize",value:function(){var e=this.w;if(e.globals.markers.size=Array.isArray(e.config.markers.size)?e.config.markers.size:[e.config.markers.size],e.globals.markers.size.length>0){if(e.globals.markers.size.length4&&arguments[4]!==void 0&&arguments[4],r=this.w,o=t,h=e,c=null,d=new Y(this.ctx),g=r.config.markers.discrete&&r.config.markers.discrete.length;if((r.globals.markers.size[t]>0||n||g)&&(c=d.group({class:n||g?"":"apexcharts-series-markers"})).attr("clip-path","url(#gridRectMarkerMask".concat(r.globals.cuid,")")),Array.isArray(h.x))for(var p=0;p0:r.config.markers.size>0;if(y||n||g){L.isNumber(h.y[p])?f+=" w".concat(L.randomId()):f="apexcharts-nullpoint";var w=this.getMarkerConfig({cssClass:f,seriesIndex:t,dataPointIndex:x});r.config.series[o].data[x]&&(r.config.series[o].data[x].fillColor&&(w.pointFillColor=r.config.series[o].data[x].fillColor),r.config.series[o].data[x].strokeColor&&(w.pointStrokeColor=r.config.series[o].data[x].strokeColor)),a&&(w.pSize=a),(s=d.drawMarker(h.x[p],h.y[p],w)).attr("rel",x),s.attr("j",x),s.attr("index",t),s.node.setAttribute("default-marker-size",w.pSize);var S=new ee(this.ctx);S.setSelectionFilter(s,t,x),this.addEvents(s),c&&c.add(s)}else r.globals.pointsArray[t]===void 0&&(r.globals.pointsArray[t]=[]),r.globals.pointsArray[t].push([h.x[p],h.y[p]])}return c}},{key:"getMarkerConfig",value:function(e){var t=e.cssClass,i=e.seriesIndex,a=e.dataPointIndex,s=a===void 0?null:a,n=e.finishRadius,r=n===void 0?null:n,o=this.w,h=this.getMarkerStyle(i),c=o.globals.markers.size[i],d=o.config.markers;return s!==null&&d.discrete.length&&d.discrete.map(function(g){g.seriesIndex===i&&g.dataPointIndex===s&&(h.pointStrokeColor=g.strokeColor,h.pointFillColor=g.fillColor,c=g.size,h.pointShape=g.shape)}),{pSize:r===null?c:r,pRadius:d.radius,width:Array.isArray(d.width)?d.width[i]:d.width,height:Array.isArray(d.height)?d.height[i]:d.height,pointStrokeWidth:Array.isArray(d.strokeWidth)?d.strokeWidth[i]:d.strokeWidth,pointStrokeColor:h.pointStrokeColor,pointFillColor:h.pointFillColor,shape:h.pointShape||(Array.isArray(d.shape)?d.shape[i]:d.shape),class:t,pointStrokeOpacity:Array.isArray(d.strokeOpacity)?d.strokeOpacity[i]:d.strokeOpacity,pointStrokeDashArray:Array.isArray(d.strokeDashArray)?d.strokeDashArray[i]:d.strokeDashArray,pointFillOpacity:Array.isArray(d.fillOpacity)?d.fillOpacity[i]:d.fillOpacity,seriesIndex:i}}},{key:"addEvents",value:function(e){var t=this.w,i=new Y(this.ctx);e.node.addEventListener("mouseenter",i.pathMouseEnter.bind(this.ctx,e)),e.node.addEventListener("mouseleave",i.pathMouseLeave.bind(this.ctx,e)),e.node.addEventListener("mousedown",i.pathMouseDown.bind(this.ctx,e)),e.node.addEventListener("click",t.config.markers.onClick),e.node.addEventListener("dblclick",t.config.markers.onDblClick),e.node.addEventListener("touchstart",i.pathMouseDown.bind(this.ctx,e),{passive:!0})}},{key:"getMarkerStyle",value:function(e){var t=this.w,i=t.globals.markers.colors,a=t.config.markers.strokeColor||t.config.markers.strokeColors;return{pointStrokeColor:Array.isArray(a)?a[e]:a,pointFillColor:Array.isArray(i)?i[e]:i}}}]),v}(),Ue=function(){function v(e){O(this,v),this.ctx=e,this.w=e.w,this.initialAnim=this.w.config.chart.animations.enabled,this.dynamicAnim=this.initialAnim&&this.w.config.chart.animations.dynamicAnimation.enabled}return I(v,[{key:"draw",value:function(e,t,i){var a=this.w,s=new Y(this.ctx),n=i.realIndex,r=i.pointsPos,o=i.zRatio,h=i.elParent,c=s.group({class:"apexcharts-series-markers apexcharts-series-".concat(a.config.chart.type)});if(c.attr("clip-path","url(#gridRectMarkerMask".concat(a.globals.cuid,")")),Array.isArray(r.x))for(var d=0;dy.maxBubbleRadius&&(f=y.maxBubbleRadius)}a.config.chart.animations.enabled||(x=f);var w=r.x[d],S=r.y[d];if(x=x||0,S!==null&&a.globals.series[n][g]!==void 0||(p=!1),p){var k=this.drawPoint(w,S,x,f,n,g,t);c.add(k)}h.add(c)}}},{key:"drawPoint",value:function(e,t,i,a,s,n,r){var o=this.w,h=s,c=new fe(this.ctx),d=new ee(this.ctx),g=new ne(this.ctx),p=new ke(this.ctx),x=new Y(this.ctx),f=p.getMarkerConfig({cssClass:"apexcharts-marker",seriesIndex:h,dataPointIndex:n,finishRadius:o.config.chart.type==="bubble"||o.globals.comboCharts&&o.config.series[s]&&o.config.series[s].type==="bubble"?a:null});a=f.pSize;var y,w=g.fillPath({seriesNumber:s,dataPointIndex:n,color:f.pointFillColor,patternUnits:"objectBoundingBox",value:o.globals.series[s][r]});if(f.shape==="circle"?y=x.drawCircle(i):f.shape!=="square"&&f.shape!=="rect"||(y=x.drawRect(0,0,f.width-f.pointStrokeWidth/2,f.height-f.pointStrokeWidth/2,f.pRadius)),o.config.series[h].data[n]&&o.config.series[h].data[n].fillColor&&(w=o.config.series[h].data[n].fillColor),y.attr({x:e-f.width/2-f.pointStrokeWidth/2,y:t-f.height/2-f.pointStrokeWidth/2,cx:e,cy:t,fill:w,"fill-opacity":f.pointFillOpacity,stroke:f.pointStrokeColor,r:a,"stroke-width":f.pointStrokeWidth,"stroke-dasharray":f.pointStrokeDashArray,"stroke-opacity":f.pointStrokeOpacity}),o.config.chart.dropShadow.enabled){var S=o.config.chart.dropShadow;d.dropShadow(y,S,s)}if(!this.initialAnim||o.globals.dataChanged||o.globals.resized)o.globals.animationEnded=!0;else{var k=o.config.chart.animations.speed;c.animateMarker(y,0,f.shape==="circle"?a:{width:f.width,height:f.height},k,o.globals.easing,function(){window.setTimeout(function(){c.animationCompleted(y)},100)})}if(o.globals.dataChanged&&f.shape==="circle")if(this.dynamicAnim){var l,u,m,b,A=o.config.chart.animations.dynamicAnimation.speed;(b=o.globals.previousPaths[s]&&o.globals.previousPaths[s][r])!=null&&(l=b.x,u=b.y,m=b.r!==void 0?b.r:a);for(var P=0;Po.globals.gridHeight+g&&(t=o.globals.gridHeight+g/2),o.globals.dataLabelsRects[a]===void 0&&(o.globals.dataLabelsRects[a]=[]),o.globals.dataLabelsRects[a].push({x:e,y:t,width:d,height:g});var p=o.globals.dataLabelsRects[a].length-2,x=o.globals.lastDrawnDataLabelsIndexes[a]!==void 0?o.globals.lastDrawnDataLabelsIndexes[a][o.globals.lastDrawnDataLabelsIndexes[a].length-1]:0;if(o.globals.dataLabelsRects[a][p]!==void 0){var f=o.globals.dataLabelsRects[a][x];(e>f.x+f.width+2||t>f.y+f.height+2||e+dt.globals.gridWidth+y.textRects.width+10)&&(o="");var w=t.globals.dataLabels.style.colors[n];((t.config.chart.type==="bar"||t.config.chart.type==="rangeBar")&&t.config.plotOptions.bar.distributed||t.config.dataLabels.distributed)&&(w=t.globals.dataLabels.style.colors[r]),typeof w=="function"&&(w=w({series:t.globals.series,seriesIndex:n,dataPointIndex:r,w:t})),p&&(w=p);var S=g.offsetX,k=g.offsetY;if(t.config.chart.type!=="bar"&&t.config.chart.type!=="rangeBar"||(S=0,k=0),y.drawnextLabel){var l=i.drawText({width:100,height:parseInt(g.style.fontSize,10),x:a+S,y:s+k,foreColor:w,textAnchor:h||g.textAnchor,text:o,fontSize:c||g.style.fontSize,fontFamily:g.style.fontFamily,fontWeight:g.style.fontWeight||"normal"});if(l.attr({class:"apexcharts-datalabel",cx:a,cy:s}),g.dropShadow.enabled){var u=g.dropShadow;new ee(this.ctx).dropShadow(l,u)}d.add(l),t.globals.lastDrawnDataLabelsIndexes[n]===void 0&&(t.globals.lastDrawnDataLabelsIndexes[n]=[]),t.globals.lastDrawnDataLabelsIndexes[n].push(r)}}}},{key:"addBackgroundToDataLabel",value:function(e,t){var i=this.w,a=i.config.dataLabels.background,s=a.padding,n=a.padding/2,r=t.width,o=t.height,h=new Y(this.ctx).drawRect(t.x-s,t.y-n/2,r+2*s,o+n,a.borderRadius,i.config.chart.background==="transparent"?"#fff":i.config.chart.background,a.opacity,a.borderWidth,a.borderColor);return a.dropShadow.enabled&&new ee(this.ctx).dropShadow(h,a.dropShadow),h}},{key:"dataLabelsBackground",value:function(){var e=this.w;if(e.config.chart.type!=="bubble")for(var t=e.globals.dom.baseEl.querySelectorAll(".apexcharts-datalabels text"),i=0;i0&&arguments[0]!==void 0)||arguments[0],t=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],i=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],a=this.w,s=L.clone(a.globals.initialSeries);a.globals.previousPaths=[],i?(a.globals.collapsedSeries=[],a.globals.ancillaryCollapsedSeries=[],a.globals.collapsedSeriesIndices=[],a.globals.ancillaryCollapsedSeriesIndices=[]):s=this.emptyCollapsedSeries(s),a.config.series=s,e&&(t&&(a.globals.zoomed=!1,this.ctx.updateHelpers.revertDefaultAxisMinMax()),this.ctx.updateHelpers._updateSeries(s,a.config.chart.animations.dynamicAnimation.enabled))}},{key:"emptyCollapsedSeries",value:function(e){for(var t=this.w,i=0;i-1&&(e[i].data=[]);return e}},{key:"toggleSeriesOnHover",value:function(e,t){var i=this.w;t||(t=e.target);var a=i.globals.dom.baseEl.querySelectorAll(".apexcharts-series, .apexcharts-datalabels");if(e.type==="mousemove"){var s=parseInt(t.getAttribute("rel"),10)-1,n=null,r=null;i.globals.axisCharts||i.config.chart.type==="radialBar"?i.globals.axisCharts?(n=i.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(s,"']")),r=i.globals.dom.baseEl.querySelector(".apexcharts-datalabels[data\\:realIndex='".concat(s,"']"))):n=i.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(s+1,"']")):n=i.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(s+1,"'] path"));for(var o=0;o=o.from&&c<=o.to&&s[h].classList.remove(i.legendInactiveClass)}}(a.config.plotOptions.heatmap.colorScale.ranges[r])}else e.type==="mouseout"&&n("remove")}},{key:"getActiveConfigSeriesIndex",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"asc",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=this.w,a=0;if(i.config.series.length>1){for(var s=i.config.series.map(function(r,o){return r.data&&r.data.length>0&&i.globals.collapsedSeriesIndices.indexOf(o)===-1&&(!i.globals.comboCharts||t.length===0||t.length&&t.indexOf(i.config.series[o].type)>-1)?o:-1}),n=e==="asc"?0:s.length-1;e==="asc"?n=0;e==="asc"?n++:n--)if(s[n]!==-1){a=s[n];break}}return a}},{key:"getBarSeriesIndices",value:function(){return this.w.globals.comboCharts?this.w.config.series.map(function(e,t){return e.type==="bar"||e.type==="column"?t:-1}).filter(function(e){return e!==-1}):this.w.config.series.map(function(e,t){return t})}},{key:"getPreviousPaths",value:function(){var e=this.w;function t(n,r,o){for(var h=n[r].childNodes,c={type:o,paths:[],realIndex:n[r].getAttribute("data:realIndex")},d=0;d0)for(var a=function(n){for(var r=e.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(e.config.chart.type," .apexcharts-series[data\\:realIndex='").concat(n,"'] rect")),o=[],h=function(d){var g=function(x){return r[d].getAttribute(x)},p={x:parseFloat(g("x")),y:parseFloat(g("y")),width:parseFloat(g("width")),height:parseFloat(g("height"))};o.push({rect:p,color:r[d].getAttribute("color")})},c=0;c0)for(var a=0;a0?t:[]});return e}}]),v}(),$e=function(){function v(e){O(this,v),this.ctx=e,this.w=e.w,this.twoDSeries=[],this.threeDSeries=[],this.twoDSeriesX=[],this.seriesGoals=[],this.coreUtils=new q(this.ctx)}return I(v,[{key:"isMultiFormat",value:function(){return this.isFormatXY()||this.isFormat2DArray()}},{key:"isFormatXY",value:function(){var e=this.w.config.series.slice(),t=new re(this.ctx);if(this.activeSeriesIndex=t.getActiveConfigSeriesIndex(),e[this.activeSeriesIndex].data!==void 0&&e[this.activeSeriesIndex].data.length>0&&e[this.activeSeriesIndex].data[0]!==null&&e[this.activeSeriesIndex].data[0].x!==void 0&&e[this.activeSeriesIndex].data[0]!==null)return!0}},{key:"isFormat2DArray",value:function(){var e=this.w.config.series.slice(),t=new re(this.ctx);if(this.activeSeriesIndex=t.getActiveConfigSeriesIndex(),e[this.activeSeriesIndex].data!==void 0&&e[this.activeSeriesIndex].data.length>0&&e[this.activeSeriesIndex].data[0]!==void 0&&e[this.activeSeriesIndex].data[0]!==null&&e[this.activeSeriesIndex].data[0].constructor===Array)return!0}},{key:"handleFormat2DArray",value:function(e,t){for(var i=this.w.config,a=this.w.globals,s=i.chart.type==="boxPlot"||i.series[t].type==="boxPlot",n=0;n=5?this.twoDSeries.push(L.parseNumber(e[t].data[n][4])):this.twoDSeries.push(L.parseNumber(e[t].data[n][1])),a.dataFormatXNumeric=!0),i.xaxis.type==="datetime"){var r=new Date(e[t].data[n][0]);r=new Date(r).getTime(),this.twoDSeriesX.push(r)}else this.twoDSeriesX.push(e[t].data[n][0]);for(var o=0;o-1&&(n=this.activeSeriesIndex);for(var r=0;r1&&arguments[1]!==void 0?arguments[1]:this.ctx,a=this.w.config,s=this.w.globals,n=new Q(i),r=a.labels.length>0?a.labels.slice():a.xaxis.categories.slice();s.isRangeBar=a.chart.type==="rangeBar"&&s.isBarHorizontal,s.hasGroups=a.xaxis.type==="category"&&a.xaxis.group.groups.length>0,s.hasGroups&&(s.groups=a.xaxis.group.groups);for(var o=function(){for(var d=0;d0&&(this.twoDSeriesX=r,s.seriesX.push(this.twoDSeriesX))),s.labels.push(this.twoDSeriesX);var c=e[h].data.map(function(d){return L.parseNumber(d)});s.series.push(c)}s.seriesZ.push(this.threeDSeries),e[h].name!==void 0?s.seriesNames.push(e[h].name):s.seriesNames.push("series-"+parseInt(h+1,10)),e[h].color!==void 0?s.seriesColors.push(e[h].color):s.seriesColors.push(void 0)}return this.w}},{key:"parseDataNonAxisCharts",value:function(e){var t=this.w.globals,i=this.w.config;t.series=e.slice(),t.seriesNames=i.labels.slice();for(var a=0;a0?i.labels=t.xaxis.categories:t.labels.length>0?i.labels=t.labels.slice():this.fallbackToCategory?(i.labels=i.labels[0],i.seriesRange.length&&(i.seriesRange.map(function(a){a.forEach(function(s){i.labels.indexOf(s.x)<0&&s.x&&i.labels.push(s.x)})}),i.labels=i.labels.filter(function(a,s,n){return n.indexOf(a)===s})),t.xaxis.convertedCatToNumeric&&(new ye(t).convertCatToNumericXaxis(t,this.ctx,i.seriesX[0]),this._generateExternalLabels(e))):this._generateExternalLabels(e)}},{key:"_generateExternalLabels",value:function(e){var t=this.w.globals,i=this.w.config,a=[];if(t.axisCharts){if(t.series.length>0)if(this.isFormatXY())for(var s=i.series.map(function(d,g){return d.data.filter(function(p,x,f){return f.findIndex(function(y){return y.x===p.x})===x})}),n=s.reduce(function(d,g,p,x){return x[d].length>g.length?d:p},0),r=0;r4&&arguments[4]!==void 0?arguments[4]:[],n=arguments.length>5&&arguments[5]!==void 0?arguments[5]:"12px",r=!(arguments.length>6&&arguments[6]!==void 0)||arguments[6],o=this.w,h=e[a]===void 0?"":e[a],c=h,d=o.globals.xLabelFormatter,g=o.config.xaxis.labels.formatter,p=!1,x=new ve(this.ctx),f=h;r&&(c=x.xLabelFormat(d,h,f,{i:a,dateFormatter:new Q(this.ctx).formatDate,w:o}),g!==void 0&&(c=g(h,e[a],{i:a,dateFormatter:new Q(this.ctx).formatDate,w:o})));var y=function(l){var u=null;return t.forEach(function(m){m.unit==="month"?u="year":m.unit==="day"?u="month":m.unit==="hour"?u="day":m.unit==="minute"&&(u="hour")}),u===l};t.length>0?(p=y(t[a].unit),i=t[a].position,c=t[a].value):o.config.xaxis.type==="datetime"&&g===void 0&&(c=""),c===void 0&&(c=""),c=Array.isArray(c)?c:c.toString();var w=new Y(this.ctx),S={};S=o.globals.rotateXLabels&&r?w.getTextRects(c,parseInt(n,10),null,"rotate(".concat(o.config.xaxis.labels.rotate," 0 0)"),!1):w.getTextRects(c,parseInt(n,10));var k=!o.config.xaxis.labels.showDuplicates&&this.ctx.timeScale;return!Array.isArray(c)&&(c.indexOf("NaN")===0||c.toLowerCase().indexOf("invalid")===0||c.toLowerCase().indexOf("infinity")>=0||s.indexOf(c)>=0&&k)&&(c=""),{x:i,text:c,textRect:S,isBold:p}}},{key:"checkLabelBasedOnTickamount",value:function(e,t,i){var a=this.w,s=a.config.xaxis.tickAmount;return s==="dataPoints"&&(s=Math.round(a.globals.gridWidth/120)),s>i||e%Math.round(i/(s+1))==0||(t.text=""),t}},{key:"checkForOverflowingLabels",value:function(e,t,i,a,s){var n=this.w;if(e===0&&n.globals.skipFirstTimelinelabel&&(t.text=""),e===i-1&&n.globals.skipLastTimelinelabel&&(t.text=""),n.config.xaxis.labels.hideOverlappingLabels&&a.length>0){var r=s[s.length-1];t.x0){o.config.yaxis[s].opposite===!0&&(e+=a.width);for(var d=t;d>=0;d--){var g=c+t/10+o.config.yaxis[s].labels.offsetY-1;o.globals.isBarHorizontal&&(g=n*d),o.config.chart.type==="heatmap"&&(g+=n/2);var p=h.drawLine(e+i.offsetX-a.width+a.offsetX,g+a.offsetY,e+i.offsetX+a.offsetX,g+a.offsetY,a.color);r.add(p),c+=n}}}}]),v}(),Le=function(){function v(e){O(this,v),this.ctx=e,this.w=e.w}return I(v,[{key:"scaleSvgNode",value:function(e,t){var i=parseFloat(e.getAttributeNS(null,"width")),a=parseFloat(e.getAttributeNS(null,"height"));e.setAttributeNS(null,"width",i*t),e.setAttributeNS(null,"height",a*t),e.setAttributeNS(null,"viewBox","0 0 "+i+" "+a)}},{key:"fixSvgStringForIe11",value:function(e){if(!L.isIE11())return e.replace(/ /g," ");var t=0,i=e.replace(/xmlns="http:\/\/www.w3.org\/2000\/svg"/g,function(a){return++t===2?'xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svgjs="http://svgjs.dev"':a});return i=(i=i.replace(/xmlns:NS\d+=""/g,"")).replace(/NS\d+:(\w+:\w+=")/g,"$1")}},{key:"getSvgString",value:function(e){e==null&&(e=1);var t=this.w.globals.dom.Paper.svg();if(e!==1){var i=this.w.globals.dom.Paper.node.cloneNode(!0);this.scaleSvgNode(i,e),t=new XMLSerializer().serializeToString(i)}return this.fixSvgStringForIe11(t)}},{key:"cleanup",value:function(){var e=this.w,t=e.globals.dom.baseEl.getElementsByClassName("apexcharts-xcrosshairs"),i=e.globals.dom.baseEl.getElementsByClassName("apexcharts-ycrosshairs"),a=e.globals.dom.baseEl.querySelectorAll(".apexcharts-zoom-rect, .apexcharts-selection-rect");Array.prototype.forEach.call(a,function(s){s.setAttribute("width",0)}),t&&t[0]&&(t[0].setAttribute("x",-500),t[0].setAttribute("x1",-500),t[0].setAttribute("x2",-500)),i&&i[0]&&(i[0].setAttribute("y",-100),i[0].setAttribute("y1",-100),i[0].setAttribute("y2",-100))}},{key:"svgUrl",value:function(){this.cleanup();var e=this.getSvgString(),t=new Blob([e],{type:"image/svg+xml;charset=utf-8"});return URL.createObjectURL(t)}},{key:"dataURI",value:function(e){var t=this;return new Promise(function(i){var a=t.w,s=e?e.scale||e.width/a.globals.svgWidth:1;t.cleanup();var n=document.createElement("canvas");n.width=a.globals.svgWidth*s,n.height=parseInt(a.globals.dom.elWrap.style.height,10)*s;var r=a.config.chart.background==="transparent"?"#fff":a.config.chart.background,o=n.getContext("2d");o.fillStyle=r,o.fillRect(0,0,n.width*s,n.height*s);var h=t.getSvgString(s);if(window.canvg&&L.isIE11()){var c=window.canvg.Canvg.fromString(o,h,{ignoreClear:!0,ignoreDimensions:!0});c.start();var d=n.msToBlob();c.stop(),i({blob:d})}else{var g="data:image/svg+xml,"+encodeURIComponent(h),p=new Image;p.crossOrigin="anonymous",p.onload=function(){if(o.drawImage(p,0,0),n.msToBlob){var x=n.msToBlob();i({blob:x})}else{var f=n.toDataURL("image/png");i({imgURI:f})}},p.src=g}})}},{key:"exportToSVG",value:function(){this.triggerDownload(this.svgUrl(),this.w.config.chart.toolbar.export.svg.filename,".svg")}},{key:"exportToPng",value:function(){var e=this;this.dataURI().then(function(t){var i=t.imgURI,a=t.blob;a?navigator.msSaveOrOpenBlob(a,e.w.globals.chartID+".png"):e.triggerDownload(i,e.w.config.chart.toolbar.export.png.filename,".png")})}},{key:"exportToCSV",value:function(e){var t=this,i=e.series,a=e.fileName,s=e.columnDelimiter,n=s===void 0?",":s,r=e.lineDelimiter,o=r===void 0?` -`:r,h=this.w;i||(i=h.config.series);var c=[],d=[],g="",p=h.globals.series.map(function(k,l){return h.globals.collapsedSeriesIndices.indexOf(l)===-1?k:[]}),x=Math.max.apply(Math,$(i.map(function(k){return k.data?k.data.length:0}))),f=new $e(this.ctx),y=new ge(this.ctx),w=function(k){var l="";if(h.globals.axisCharts){if(h.config.xaxis.type==="category"||h.config.xaxis.convertedCatToNumeric)if(h.globals.isBarHorizontal){var u=h.globals.yLabelFormatters[0],m=new re(t.ctx).getActiveConfigSeriesIndex();l=u(h.globals.labels[k],{seriesIndex:m,dataPointIndex:k,w:h})}else l=y.getLabel(h.globals.labels,h.globals.timescaleLabels,0,k).text;h.config.xaxis.type==="datetime"&&(h.config.xaxis.categories.length?l=h.config.xaxis.categories[k]:h.config.labels.length&&(l=h.config.labels[k]))}else l=h.config.labels[k];return Array.isArray(l)&&(l=l.join(" ")),L.isNumber(l)?l:l.split(n).join("")},S=function(k,l){if(c.length&&l===0&&d.push(c.join(n)),k.data){k.data=k.data.length&&k.data||$(Array(x)).map(function(){return""});for(var u=0;u=10?h.config.chart.toolbar.export.csv.dateFormatter(m):L.isNumber(m)?m:m.split(n).join("")));for(var b=0;b0&&!i.globals.isBarHorizontal&&(this.xaxisLabels=i.globals.timescaleLabels.slice()),i.config.xaxis.overwriteCategories&&(this.xaxisLabels=i.config.xaxis.overwriteCategories),this.drawnLabels=[],this.drawnLabelsRects=[],i.config.xaxis.position==="top"?this.offY=0:this.offY=i.globals.gridHeight+1,this.offY=this.offY+i.config.xaxis.axisBorder.offsetY,this.isCategoryBarHorizontal=i.config.chart.type==="bar"&&i.config.plotOptions.bar.horizontal,this.xaxisFontSize=i.config.xaxis.labels.style.fontSize,this.xaxisFontFamily=i.config.xaxis.labels.style.fontFamily,this.xaxisForeColors=i.config.xaxis.labels.style.colors,this.xaxisBorderWidth=i.config.xaxis.axisBorder.width,this.isCategoryBarHorizontal&&(this.xaxisBorderWidth=i.config.yaxis[0].axisBorder.width.toString()),this.xaxisBorderWidth.indexOf("%")>-1?this.xaxisBorderWidth=i.globals.gridWidth*parseInt(this.xaxisBorderWidth,10)/100:this.xaxisBorderWidth=parseInt(this.xaxisBorderWidth,10),this.xaxisBorderHeight=i.config.xaxis.axisBorder.height,this.yaxis=i.config.yaxis[0]}return I(v,[{key:"drawXaxis",value:function(){var e=this.w,t=new Y(this.ctx),i=t.group({class:"apexcharts-xaxis",transform:"translate(".concat(e.config.xaxis.offsetX,", ").concat(e.config.xaxis.offsetY,")")}),a=t.group({class:"apexcharts-xaxis-texts-g",transform:"translate(".concat(e.globals.translateXAxisX,", ").concat(e.globals.translateXAxisY,")")});i.add(a);for(var s=[],n=0;n6&&arguments[6]!==void 0?arguments[6]:{},c=[],d=[],g=this.w,p=h.xaxisFontSize||this.xaxisFontSize,x=h.xaxisFontFamily||this.xaxisFontFamily,f=h.xaxisForeColors||this.xaxisForeColors,y=h.fontWeight||g.config.xaxis.labels.style.fontWeight,w=h.cssClass||g.config.xaxis.labels.style.cssClass,S=g.globals.padHorizontal,k=a.length,l=g.config.xaxis.type==="category"?g.globals.dataPoints:k;if(l===0&&k>l&&(l=k),s){var u=l>1?l-1:l;r=g.globals.gridWidth/u,S=S+n(0,r)/2+g.config.xaxis.labels.offsetX}else r=g.globals.gridWidth/l,S=S+n(0,r)+g.config.xaxis.labels.offsetX;for(var m=function(A){var P=S-n(A,r)/2+g.config.xaxis.labels.offsetX;A===0&&k===1&&r/2===S&&l===1&&(P=g.globals.gridWidth/2);var C=o.axesUtils.getLabel(a,g.globals.timescaleLabels,P,A,c,p,e),E=28;if(g.globals.rotateXLabels&&e&&(E=22),g.config.xaxis.title.text&&g.config.xaxis.position==="top"&&(E+=parseFloat(g.config.xaxis.title.style.fontSize)+2),e||(E=E+parseFloat(p)+(g.globals.xAxisLabelsHeight-g.globals.xAxisGroupLabelsHeight)+(g.globals.rotateXLabels?10:0)),C=g.config.xaxis.tickAmount!==void 0&&g.config.xaxis.tickAmount!=="dataPoints"&&g.config.xaxis.type!=="datetime"?o.axesUtils.checkLabelBasedOnTickamount(A,C,k):o.axesUtils.checkForOverflowingLabels(A,C,k,c,d),g.config.xaxis.labels.show){var T=t.drawText({x:C.x,y:o.offY+g.config.xaxis.labels.offsetY+E-(g.config.xaxis.position==="top"?g.globals.xAxisHeight+g.config.xaxis.axisTicks.height-2:0),text:C.text,textAnchor:"middle",fontWeight:C.isBold?600:y,fontSize:p,fontFamily:x,foreColor:Array.isArray(f)?e&&g.config.xaxis.convertedCatToNumeric?f[g.globals.minX+A-1]:f[A]:f,isPlainText:!1,cssClass:(e?"apexcharts-xaxis-label ":"apexcharts-xaxis-group-label ")+w});if(i.add(T),T.on("click",function(H){if(typeof g.config.chart.events.xAxisLabelClick=="function"){var W=Object.assign({},g,{labelIndex:A});g.config.chart.events.xAxisLabelClick(H,o.ctx,W)}}),e){var R=document.createElementNS(g.globals.SVGNS,"title");R.textContent=Array.isArray(C.text)?C.text.join(" "):C.text,T.node.appendChild(R),C.text!==""&&(c.push(C.text),d.push(C))}}Aa.globals.gridWidth)){var n=this.offY+a.config.xaxis.axisTicks.offsetY;if(t=t+n+a.config.xaxis.axisTicks.height,a.config.xaxis.position==="top"&&(t=n-a.config.xaxis.axisTicks.height),a.config.xaxis.axisTicks.show){var r=new Y(this.ctx).drawLine(e+a.config.xaxis.axisTicks.offsetX,n+a.config.xaxis.offsetY,s+a.config.xaxis.axisTicks.offsetX,t+a.config.xaxis.offsetY,a.config.xaxis.axisTicks.color);i.add(r),r.node.classList.add("apexcharts-xaxis-tick")}}}},{key:"getXAxisTicksPositions",value:function(){var e=this.w,t=[],i=this.xaxisLabels.length,a=e.globals.padHorizontal;if(e.globals.timescaleLabels.length>0)for(var s=0;s0){var c=s[s.length-1].getBBox(),d=s[0].getBBox();c.x<-20&&s[s.length-1].parentNode.removeChild(s[s.length-1]),d.x+d.width>e.globals.gridWidth&&!e.globals.isBarHorizontal&&s[0].parentNode.removeChild(s[0]);for(var g=0;g0&&(this.xaxisLabels=t.globals.timescaleLabels.slice())}return I(v,[{key:"drawGridArea",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,t=this.w,i=new Y(this.ctx);e===null&&(e=i.group({class:"apexcharts-grid"}));var a=i.drawLine(t.globals.padHorizontal,1,t.globals.padHorizontal,t.globals.gridHeight,"transparent"),s=i.drawLine(t.globals.padHorizontal,t.globals.gridHeight,t.globals.gridWidth,t.globals.gridHeight,"transparent");return e.add(s),e.add(a),e}},{key:"drawGrid",value:function(){var e=null;return this.w.globals.axisCharts&&(e=this.renderGrid(),this.drawGridArea(e.el)),e}},{key:"createGridMask",value:function(){var e=this.w,t=e.globals,i=new Y(this.ctx),a=Array.isArray(e.config.stroke.width)?0:e.config.stroke.width;if(Array.isArray(e.config.stroke.width)){var s=0;e.config.stroke.width.forEach(function(d){s=Math.max(s,d)}),a=s}t.dom.elGridRectMask=document.createElementNS(t.SVGNS,"clipPath"),t.dom.elGridRectMask.setAttribute("id","gridRectMask".concat(t.cuid)),t.dom.elGridRectMarkerMask=document.createElementNS(t.SVGNS,"clipPath"),t.dom.elGridRectMarkerMask.setAttribute("id","gridRectMarkerMask".concat(t.cuid)),t.dom.elForecastMask=document.createElementNS(t.SVGNS,"clipPath"),t.dom.elForecastMask.setAttribute("id","forecastMask".concat(t.cuid)),t.dom.elNonForecastMask=document.createElementNS(t.SVGNS,"clipPath"),t.dom.elNonForecastMask.setAttribute("id","nonForecastMask".concat(t.cuid));var n=e.config.chart.type,r=0,o=0;(n==="bar"||n==="rangeBar"||n==="candlestick"||n==="boxPlot"||e.globals.comboBarCount>0)&&e.globals.isXNumeric&&!e.globals.isBarHorizontal&&(r=e.config.grid.padding.left,o=e.config.grid.padding.right,t.barPadForNumericAxis>r&&(r=t.barPadForNumericAxis,o=t.barPadForNumericAxis)),t.dom.elGridRect=i.drawRect(-a/2-r-2,-a/2,t.gridWidth+a+o+r+4,t.gridHeight+a,0,"#fff");var h=e.globals.markers.largestSize+1;t.dom.elGridRectMarker=i.drawRect(2*-h,2*-h,t.gridWidth+4*h,t.gridHeight+4*h,0,"#fff"),t.dom.elGridRectMask.appendChild(t.dom.elGridRect.node),t.dom.elGridRectMarkerMask.appendChild(t.dom.elGridRectMarker.node);var c=t.dom.baseEl.querySelector("defs");c.appendChild(t.dom.elGridRectMask),c.appendChild(t.dom.elForecastMask),c.appendChild(t.dom.elNonForecastMask),c.appendChild(t.dom.elGridRectMarkerMask)}},{key:"_drawGridLines",value:function(e){var t=e.i,i=e.x1,a=e.y1,s=e.x2,n=e.y2,r=e.xCount,o=e.parent,h=this.w;if(!(t===0&&h.globals.skipFirstTimelinelabel||t===r-1&&h.globals.skipLastTimelinelabel&&!h.config.xaxis.labels.formatter||h.config.chart.type==="radar")){h.config.grid.xaxis.lines.show&&this._drawGridLine({i:t,x1:i,y1:a,x2:s,y2:n,xCount:r,parent:o});var c=0;if(h.globals.hasGroups&&h.config.xaxis.tickPlacement==="between"){var d=h.globals.groups;if(d){for(var g=0,p=0;g2));s++);return!e.globals.isBarHorizontal||this.isRangeBar?(i=this.xaxisLabels.length,this.isRangeBar&&(a=e.globals.labels.length,e.config.xaxis.tickAmount&&e.config.xaxis.labels.formatter&&(i=e.config.xaxis.tickAmount)),this._drawXYLines({xCount:i,tickAmount:a})):(i=a,a=e.globals.xTickAmount,this._drawInvertedXYLines({xCount:i,tickAmount:a})),this.drawGridBands(i,a),{el:this.elg,elGridBorders:this.elGridBorders,xAxisTickWidth:e.globals.gridWidth/i}}},{key:"drawGridBands",value:function(e,t){var i=this.w;if(i.config.grid.row.colors!==void 0&&i.config.grid.row.colors.length>0)for(var a=0,s=i.globals.gridHeight/t,n=i.globals.gridWidth,r=0,o=0;r=i.config.grid.row.colors.length&&(o=0),this._drawGridBandRect({c:o,x1:0,y1:a,x2:n,y2:s,type:"row"}),a+=i.globals.gridHeight/t;if(i.config.grid.column.colors!==void 0&&i.config.grid.column.colors.length>0)for(var h=i.globals.isBarHorizontal||i.config.xaxis.type!=="category"&&!i.config.xaxis.convertedCatToNumeric?e:e-1,c=i.globals.padHorizontal,d=i.globals.padHorizontal+i.globals.gridWidth/h,g=i.globals.gridHeight,p=0,x=0;p=i.config.grid.column.colors.length&&(x=0),this._drawGridBandRect({c:x,x1:c,y1:0,x2:d,y2:g,type:"column"}),c+=i.globals.gridWidth/h}}]),v}(),me=function(){function v(e){O(this,v),this.ctx=e,this.w=e.w}return I(v,[{key:"niceScale",value:function(e,t){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:10,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,s=arguments.length>4?arguments[4]:void 0,n=this.w,r=Math.abs(t-e);if((i=this._adjustTicksForSmallRange(i,a,r))==="dataPoints"&&(i=n.globals.dataPoints-1),e===Number.MIN_VALUE&&t===0||!L.isNumber(e)&&!L.isNumber(t)||e===Number.MIN_VALUE&&t===-Number.MAX_VALUE){e=0,t=i;var o=this.linearScale(e,t,i);return o}e>t?(console.warn("axis.min cannot be greater than axis.max"),t=e+.1):e===t&&(e=e===0?0:e-.5,t=t===0?2:t+.5);var h=[];r<1&&s&&(n.config.chart.type==="candlestick"||n.config.series[a].type==="candlestick"||n.config.chart.type==="boxPlot"||n.config.series[a].type==="boxPlot"||n.globals.isRangeData)&&(t*=1.01);var c=i+1;c<2?c=2:c>2&&(c-=2);var d=r/c,g=Math.floor(L.log10(d)),p=Math.pow(10,g),x=Math.round(d/p);x<1&&(x=1);var f=x*p,y=f*Math.floor(e/f),w=f*Math.ceil(t/f),S=y;if(s&&r>2){for(;h.push(S),!((S+=f)>w););return{result:h,niceMin:h[0],niceMax:h[h.length-1]}}var k=e;(h=[]).push(k);for(var l=Math.abs(t-e)/i,u=0;u<=i;u++)k+=l,h.push(k);return h[h.length-2]>=t&&h.pop(),{result:h,niceMin:h[0],niceMax:h[h.length-1]}}},{key:"linearScale",value:function(e,t){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:10,a=arguments.length>3?arguments[3]:void 0,s=Math.abs(t-e);(i=this._adjustTicksForSmallRange(i,a,s))==="dataPoints"&&(i=this.w.globals.dataPoints-1);var n=s/i;i===Number.MAX_VALUE&&(i=10,n=1);for(var r=[],o=e;i>=0;)r.push(o),o+=n,i-=1;return{result:r,niceMin:r[0],niceMax:r[r.length-1]}}},{key:"logarithmicScaleNice",value:function(e,t,i){t<=0&&(t=Math.max(e,i)),e<=0&&(e=Math.min(t,i));for(var a=[],s=Math.ceil(Math.log(t)/Math.log(i)+1),n=Math.floor(Math.log(e)/Math.log(i));n5)a.allSeriesCollapsed=!1,a.yAxisScale[e]=this.logarithmicScale(t,i,n.logBase),a.yAxisScale[e]=n.forceNiceScale?this.logarithmicScaleNice(t,i,n.logBase):this.logarithmicScale(t,i,n.logBase);else if(i!==-Number.MAX_VALUE&&L.isNumber(i))if(a.allSeriesCollapsed=!1,n.min===void 0&&n.max===void 0||n.forceNiceScale){var o=s.yaxis[e].max===void 0&&s.yaxis[e].min===void 0||s.yaxis[e].forceNiceScale;a.yAxisScale[e]=this.niceScale(t,i,n.tickAmount?n.tickAmount:r<5&&r>1?r+1:5,e,o)}else a.yAxisScale[e]=this.linearScale(t,i,n.tickAmount,e);else a.yAxisScale[e]=this.linearScale(0,5,5)}},{key:"setXScale",value:function(e,t){var i=this.w,a=i.globals,s=i.config.xaxis,n=Math.abs(t-e);return t!==-Number.MAX_VALUE&&L.isNumber(t)?a.xAxisScale=this.linearScale(e,t,s.tickAmount?s.tickAmount:n<5&&n>1?n+1:5,0):a.xAxisScale=this.linearScale(0,5,5),a.xAxisScale}},{key:"setMultipleYScales",value:function(){var e=this,t=this.w.globals,i=this.w.config,a=t.minYArr.concat([]),s=t.maxYArr.concat([]),n=[];i.yaxis.forEach(function(r,o){var h=o;i.series.forEach(function(g,p){g.name===r.seriesName&&(h=p,o!==p?n.push({index:p,similarIndex:o,alreadyExists:!0}):n.push({index:p}))});var c=a[h],d=s[h];e.setYScaleForIndex(o,c,d)}),this.sameScaleInMultipleAxes(a,s,n)}},{key:"sameScaleInMultipleAxes",value:function(e,t,i){var a=this,s=this.w.config,n=this.w.globals,r=[];i.forEach(function(f){f.alreadyExists&&(r[f.index]===void 0&&(r[f.index]=[]),r[f.index].push(f.index),r[f.index].push(f.similarIndex))}),n.yAxisSameScaleIndices=r,r.forEach(function(f,y){r.forEach(function(w,S){var k,l;y!==S&&(k=f,l=w,k.filter(function(u){return l.indexOf(u)!==-1})).length>0&&(r[y]=r[y].concat(r[S]))})});var o=r.map(function(f){return f.filter(function(y,w){return f.indexOf(y)===w})}).map(function(f){return f.sort()});r=r.filter(function(f){return!!f});var h=o.slice(),c=h.map(function(f){return JSON.stringify(f)});h=h.filter(function(f,y){return c.indexOf(JSON.stringify(f))===y});var d=[],g=[];e.forEach(function(f,y){h.forEach(function(w,S){w.indexOf(y)>-1&&(d[S]===void 0&&(d[S]=[],g[S]=[]),d[S].push({key:y,value:f}),g[S].push({key:y,value:t[y]}))})});var p=Array.apply(null,Array(h.length)).map(Number.prototype.valueOf,Number.MIN_VALUE),x=Array.apply(null,Array(h.length)).map(Number.prototype.valueOf,-Number.MAX_VALUE);d.forEach(function(f,y){f.forEach(function(w,S){p[y]=Math.min(w.value,p[y])})}),g.forEach(function(f,y){f.forEach(function(w,S){x[y]=Math.max(w.value,x[y])})}),e.forEach(function(f,y){g.forEach(function(w,S){var k=p[S],l=x[S];s.chart.stacked&&(l=0,w.forEach(function(u,m){u.value!==-Number.MAX_VALUE&&(l+=u.value),k!==Number.MIN_VALUE&&(k+=d[S][m].value)})),w.forEach(function(u,m){w[m].key===y&&(s.yaxis[y].min!==void 0&&(k=typeof s.yaxis[y].min=="function"?s.yaxis[y].min(n.minY):s.yaxis[y].min),s.yaxis[y].max!==void 0&&(l=typeof s.yaxis[y].max=="function"?s.yaxis[y].max(n.maxY):s.yaxis[y].max),a.setYScaleForIndex(y,k,l))})})})}},{key:"autoScaleY",value:function(e,t,i){e||(e=this);var a=e.w;if(a.globals.isMultipleYAxis||a.globals.collapsedSeries.length)return console.warn("autoScaleYaxis is not supported in a multi-yaxis chart."),t;var s=a.globals.seriesX[0],n=a.config.chart.stacked;return t.forEach(function(r,o){for(var h=0,c=0;c=i.xaxis.min){h=c;break}var d,g,p=a.globals.minYArr[o],x=a.globals.maxYArr[o],f=a.globals.stackedSeriesTotals;a.globals.series.forEach(function(y,w){var S=y[h];n?(S=f[h],d=g=S,f.forEach(function(k,l){s[l]<=i.xaxis.max&&s[l]>=i.xaxis.min&&(k>g&&k!==null&&(g=k),y[l]=i.xaxis.min){var u=k,m=k;a.globals.series.forEach(function(b,A){k!==null&&(u=Math.min(b[l],u),m=Math.max(b[l],m))}),m>g&&m!==null&&(g=m),up&&(d=p),t.length>1?(t[w].min=r.min===void 0?d:r.min,t[w].max=r.max===void 0?g:r.max):(t[0].min=r.min===void 0?d:r.min,t[0].max=r.max===void 0?g:r.max)})}),t}}]),v}(),Ye=function(){function v(e){O(this,v),this.ctx=e,this.w=e.w,this.scales=new me(e)}return I(v,[{key:"init",value:function(){this.setYRange(),this.setXRange(),this.setZRange()}},{key:"getMinYMaxY",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:-Number.MAX_VALUE,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,s=this.w.config,n=this.w.globals,r=-Number.MAX_VALUE,o=Number.MIN_VALUE;a===null&&(a=e+1);var h=n.series,c=h,d=h;s.chart.type==="candlestick"?(c=n.seriesCandleL,d=n.seriesCandleH):s.chart.type==="boxPlot"?(c=n.seriesCandleO,d=n.seriesCandleC):n.isRangeData&&(c=n.seriesRangeStart,d=n.seriesRangeEnd);for(var g=e;gc[g][p]&&c[g][p]<0&&(o=c[g][p])):n.hasNullValues=!0}}return s.chart.type==="rangeBar"&&n.seriesRangeStart.length&&n.isBarHorizontal&&(o=t),s.chart.type==="bar"&&(o<0&&r<0&&(r=0),o===Number.MIN_VALUE&&(o=0)),{minY:o,maxY:r,lowestY:t,highestY:i}}},{key:"setYRange",value:function(){var e=this.w.globals,t=this.w.config;e.maxY=-Number.MAX_VALUE,e.minY=Number.MIN_VALUE;var i=Number.MAX_VALUE;if(e.isMultipleYAxis)for(var a=0;a=0&&i<=10||t.yaxis[0].min!==void 0||t.yaxis[0].max!==void 0)&&(r=0),e.minY=i-5*r/100,i>0&&e.minY<0&&(e.minY=0),e.maxY=e.maxY+5*r/100}return t.yaxis.forEach(function(o,h){o.max!==void 0&&(typeof o.max=="number"?e.maxYArr[h]=o.max:typeof o.max=="function"&&(e.maxYArr[h]=o.max(e.isMultipleYAxis?e.maxYArr[h]:e.maxY)),e.maxY=e.maxYArr[h]),o.min!==void 0&&(typeof o.min=="number"?e.minYArr[h]=o.min:typeof o.min=="function"&&(e.minYArr[h]=o.min(e.isMultipleYAxis?e.minYArr[h]===Number.MIN_VALUE?0:e.minYArr[h]:e.minY)),e.minY=e.minYArr[h])}),e.isBarHorizontal&&["min","max"].forEach(function(o){t.xaxis[o]!==void 0&&typeof t.xaxis[o]=="number"&&(o==="min"?e.minY=t.xaxis[o]:e.maxY=t.xaxis[o])}),e.isMultipleYAxis?(this.scales.setMultipleYScales(),e.minY=i,e.yAxisScale.forEach(function(o,h){e.minYArr[h]=o.niceMin,e.maxYArr[h]=o.niceMax})):(this.scales.setYScaleForIndex(0,e.minY,e.maxY),e.minY=e.yAxisScale[0].niceMin,e.maxY=e.yAxisScale[0].niceMax,e.minYArr[0]=e.yAxisScale[0].niceMin,e.maxYArr[0]=e.yAxisScale[0].niceMax),{minY:e.minY,maxY:e.maxY,minYArr:e.minYArr,maxYArr:e.maxYArr,yAxisScale:e.yAxisScale}}},{key:"setXRange",value:function(){var e=this.w.globals,t=this.w.config,i=t.xaxis.type==="numeric"||t.xaxis.type==="datetime"||t.xaxis.type==="category"&&!e.noLabelsProvided||e.noLabelsProvided||e.isXNumeric;if(e.isXNumeric&&function(){for(var r=0;re.dataPoints&&e.dataPoints!==0&&(a=e.dataPoints-1)):t.xaxis.tickAmount==="dataPoints"?(e.series.length>1&&(a=e.series[e.maxValsInArrayIndex].length-1),e.isXNumeric&&(a=e.maxX-e.minX-1)):a=t.xaxis.tickAmount,e.xTickAmount=a,t.xaxis.max!==void 0&&typeof t.xaxis.max=="number"&&(e.maxX=t.xaxis.max),t.xaxis.min!==void 0&&typeof t.xaxis.min=="number"&&(e.minX=t.xaxis.min),t.xaxis.range!==void 0&&(e.minX=e.maxX-t.xaxis.range),e.minX!==Number.MAX_VALUE&&e.maxX!==-Number.MAX_VALUE)if(t.xaxis.convertedCatToNumeric&&!e.dataFormatXNumeric){for(var s=[],n=e.minX-1;n0&&(e.xAxisScale=this.scales.linearScale(1,e.labels.length,a-1),e.seriesX=e.labels.slice());i&&(e.labels=e.xAxisScale.result.slice())}return e.isBarHorizontal&&e.labels.length&&(e.xTickAmount=e.labels.length),this._handleSingleDataPoint(),this._getMinXDiff(),{minX:e.minX,maxX:e.maxX}}},{key:"setZRange",value:function(){var e=this.w.globals;if(e.isDataXYZ){for(var t=0;t0){var r=s-a[n-1];r>0&&(e.minXDiff=Math.min(r,e.minXDiff))}}),e.dataPoints!==1&&e.minXDiff!==Number.MAX_VALUE||(e.minXDiff=.5)})}},{key:"_setStackedMinMax",value:function(){var e=this.w.globals,t=[],i=[];if(e.series.length)for(var a=0;a0?s=s+parseFloat(e.series[r][a])+1e-4:n+=parseFloat(e.series[r][a])),r===e.series.length-1&&(t.push(s),i.push(n));for(var o=0;o=0;S--)w(S);if(i.config.yaxis[e].title.text!==void 0){var k=a.group({class:"apexcharts-yaxis-title"}),l=0;i.config.yaxis[e].opposite&&(l=i.globals.translateYAxisX[e]);var u=a.drawText({x:l,y:i.globals.gridHeight/2+i.globals.translateY+i.config.yaxis[e].title.offsetY,text:i.config.yaxis[e].title.text,textAnchor:"end",foreColor:i.config.yaxis[e].title.style.color,fontSize:i.config.yaxis[e].title.style.fontSize,fontWeight:i.config.yaxis[e].title.style.fontWeight,fontFamily:i.config.yaxis[e].title.style.fontFamily,cssClass:"apexcharts-yaxis-title-text "+i.config.yaxis[e].title.style.cssClass});k.add(u),h.add(k)}var m=i.config.yaxis[e].axisBorder,b=31+m.offsetX;if(i.config.yaxis[e].opposite&&(b=-31-m.offsetX),m.show){var A=a.drawLine(b,i.globals.translateY+m.offsetY-2,b,i.globals.gridHeight+i.globals.translateY+m.offsetY+2,m.color,0,m.width);h.add(A)}return i.config.yaxis[e].axisTicks.show&&this.axesUtils.drawYAxisTicks(b,d,m,i.config.yaxis[e].axisTicks,e,g,h),h}},{key:"drawYaxisInversed",value:function(e){var t=this.w,i=new Y(this.ctx),a=i.group({class:"apexcharts-xaxis apexcharts-yaxis-inversed"}),s=i.group({class:"apexcharts-xaxis-texts-g",transform:"translate(".concat(t.globals.translateXAxisX,", ").concat(t.globals.translateXAxisY,")")});a.add(s);var n=t.globals.yAxisScale[e].result.length-1,r=t.globals.gridWidth/n+.1,o=r+t.config.xaxis.labels.offsetX,h=t.globals.xLabelFormatter,c=t.globals.yAxisScale[e].result.slice(),d=t.globals.timescaleLabels;d.length>0&&(this.xaxisLabels=d.slice(),n=(c=d.slice()).length),c=this.axesUtils.checkForReversedLabels(e,c);var g=d.length;if(t.config.xaxis.labels.show)for(var p=g?0:n;g?p=0;g?p++:p--){var x=c[p];x=h(x,p,t);var f=t.globals.gridWidth+t.globals.padHorizontal-(o-r+t.config.xaxis.labels.offsetX);if(d.length){var y=this.axesUtils.getLabel(c,d,f,p,this.drawnLabels,this.xaxisFontSize);f=y.x,x=y.text,this.drawnLabels.push(y.text),p===0&&t.globals.skipFirstTimelinelabel&&(x=""),p===c.length-1&&t.globals.skipLastTimelinelabel&&(x="")}var w=i.drawText({x:f,y:this.xAxisoffX+t.config.xaxis.labels.offsetY+30-(t.config.xaxis.position==="top"?t.globals.xAxisHeight+t.config.xaxis.axisTicks.height-2:0),text:x,textAnchor:"middle",foreColor:Array.isArray(this.xaxisForeColors)?this.xaxisForeColors[e]:this.xaxisForeColors,fontSize:this.xaxisFontSize,fontFamily:this.xaxisFontFamily,fontWeight:t.config.xaxis.labels.style.fontWeight,isPlainText:!1,cssClass:"apexcharts-xaxis-label "+t.config.xaxis.labels.style.cssClass});s.add(w),w.tspan(x);var S=document.createElementNS(t.globals.SVGNS,"title");S.textContent=x,w.node.appendChild(S),o+=r}return this.inversedYAxisTitleText(a),this.inversedYAxisBorder(a),a}},{key:"inversedYAxisBorder",value:function(e){var t=this.w,i=new Y(this.ctx),a=t.config.xaxis.axisBorder;if(a.show){var s=0;t.config.chart.type==="bar"&&t.globals.isXNumeric&&(s-=15);var n=i.drawLine(t.globals.padHorizontal+s+a.offsetX,this.xAxisoffX,t.globals.gridWidth,this.xAxisoffX,a.color,0,a.height);this.elgrid&&this.elgrid.elGridBorders?this.elgrid.elGridBorders.add(n):e.add(n)}}},{key:"inversedYAxisTitleText",value:function(e){var t=this.w,i=new Y(this.ctx);if(t.config.xaxis.title.text!==void 0){var a=i.group({class:"apexcharts-xaxis-title apexcharts-yaxis-title-inversed"}),s=i.drawText({x:t.globals.gridWidth/2+t.config.xaxis.title.offsetX,y:this.xAxisoffX+parseFloat(this.xaxisFontSize)+parseFloat(t.config.xaxis.title.style.fontSize)+t.config.xaxis.title.offsetY+20,text:t.config.xaxis.title.text,textAnchor:"middle",fontSize:t.config.xaxis.title.style.fontSize,fontFamily:t.config.xaxis.title.style.fontFamily,fontWeight:t.config.xaxis.title.style.fontWeight,foreColor:t.config.xaxis.title.style.color,cssClass:"apexcharts-xaxis-title-text "+t.config.xaxis.title.style.cssClass});a.add(s),e.add(a)}}},{key:"yAxisTitleRotate",value:function(e,t){var i=this.w,a=new Y(this.ctx),s={width:0,height:0},n={width:0,height:0},r=i.globals.dom.baseEl.querySelector(" .apexcharts-yaxis[rel='".concat(e,"'] .apexcharts-yaxis-texts-g"));r!==null&&(s=r.getBoundingClientRect());var o=i.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(e,"'] .apexcharts-yaxis-title text"));if(o!==null&&(n=o.getBoundingClientRect()),o!==null){var h=this.xPaddingForYAxisTitle(e,s,n,t);o.setAttribute("x",h.xPos-(t?10:0))}if(o!==null){var c=a.rotateAroundCenter(o);o.setAttribute("transform","rotate(".concat(t?-1*i.config.yaxis[e].title.rotate:i.config.yaxis[e].title.rotate," ").concat(c.x," ").concat(c.y,")"))}}},{key:"xPaddingForYAxisTitle",value:function(e,t,i,a){var s=this.w,n=0,r=0,o=10;return s.config.yaxis[e].title.text===void 0||e<0?{xPos:r,padd:0}:(a?(r=t.width+s.config.yaxis[e].title.offsetX+i.width/2+o/2,(n+=1)===0&&(r-=o/2)):(r=-1*t.width+s.config.yaxis[e].title.offsetX+o/2+i.width/2,s.globals.isBarHorizontal&&(o=25,r=-1*t.width-s.config.yaxis[e].title.offsetX-o)),{xPos:r,padd:o})}},{key:"setYAxisXPosition",value:function(e,t){var i=this.w,a=0,s=0,n=18,r=1;i.config.yaxis.length>1&&(this.multipleYs=!0),i.config.yaxis.map(function(o,h){var c=i.globals.ignoreYAxisIndexes.indexOf(h)>-1||!o.show||o.floating||e[h].width===0,d=e[h].width+t[h].width;o.opposite?i.globals.isBarHorizontal?(s=i.globals.gridWidth+i.globals.translateX-1,i.globals.translateYAxisX[h]=s-o.labels.offsetX):(s=i.globals.gridWidth+i.globals.translateX+r,c||(r=r+d+20),i.globals.translateYAxisX[h]=s-o.labels.offsetX+20):(a=i.globals.translateX-n,c||(n=n+d+20),i.globals.translateYAxisX[h]=a+o.labels.offsetX)})}},{key:"setYAxisTextAlignments",value:function(){var e=this.w,t=e.globals.dom.baseEl.getElementsByClassName("apexcharts-yaxis");(t=L.listToArray(t)).forEach(function(i,a){var s=e.config.yaxis[a];if(s&&!s.floating&&s.labels.align!==void 0){var n=e.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(a,"'] .apexcharts-yaxis-texts-g")),r=e.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis[rel='".concat(a,"'] .apexcharts-yaxis-label"));r=L.listToArray(r);var o=n.getBoundingClientRect();s.labels.align==="left"?(r.forEach(function(h,c){h.setAttribute("text-anchor","start")}),s.opposite||n.setAttribute("transform","translate(-".concat(o.width,", 0)"))):s.labels.align==="center"?(r.forEach(function(h,c){h.setAttribute("text-anchor","middle")}),n.setAttribute("transform","translate(".concat(o.width/2*(s.opposite?1:-1),", 0)"))):s.labels.align==="right"&&(r.forEach(function(h,c){h.setAttribute("text-anchor","end")}),s.opposite&&n.setAttribute("transform","translate(".concat(o.width,", 0)")))}})}}]),v}(),Li=function(){function v(e){O(this,v),this.ctx=e,this.w=e.w,this.documentEvent=L.bind(this.documentEvent,this)}return I(v,[{key:"addEventListener",value:function(e,t){var i=this.w;i.globals.events.hasOwnProperty(e)?i.globals.events[e].push(t):i.globals.events[e]=[t]}},{key:"removeEventListener",value:function(e,t){var i=this.w;if(i.globals.events.hasOwnProperty(e)){var a=i.globals.events[e].indexOf(t);a!==-1&&i.globals.events[e].splice(a,1)}}},{key:"fireEvent",value:function(e,t){var i=this.w;if(i.globals.events.hasOwnProperty(e)){t&&t.length||(t=[]);for(var a=i.globals.events[e],s=a.length,n=0;n0&&(t=this.w.config.chart.locales.concat(window.Apex.chart.locales));var i=t.filter(function(s){return s.name===e})[0];if(!i)throw new Error("Wrong locale name provided. Please make sure you set the correct locale name in options");var a=L.extend(Ve,i);this.w.globals.locale=a.options}}]),v}(),Ti=function(){function v(e){O(this,v),this.ctx=e,this.w=e.w}return I(v,[{key:"drawAxis",value:function(e,t){var i,a,s=this,n=this.w.globals,r=this.w.config,o=new Ae(this.ctx,t),h=new Fe(this.ctx,t);n.axisCharts&&e!=="radar"&&(n.isBarHorizontal?(a=h.drawYaxisInversed(0),i=o.drawXaxisInversed(0),n.dom.elGraphical.add(i),n.dom.elGraphical.add(a)):(i=o.drawXaxis(),n.dom.elGraphical.add(i),r.yaxis.map(function(c,d){if(n.ignoreYAxisIndexes.indexOf(d)===-1&&(a=h.drawYaxis(d),n.dom.Paper.add(a),s.w.config.grid.position==="back")){var g=n.dom.Paper.children()[1];g.remove(),n.dom.Paper.add(g)}})))}}]),v}(),Re=function(){function v(e){O(this,v),this.ctx=e,this.w=e.w}return I(v,[{key:"drawXCrosshairs",value:function(){var e=this.w,t=new Y(this.ctx),i=new ee(this.ctx),a=e.config.xaxis.crosshairs.fill.gradient,s=e.config.xaxis.crosshairs.dropShadow,n=e.config.xaxis.crosshairs.fill.type,r=a.colorFrom,o=a.colorTo,h=a.opacityFrom,c=a.opacityTo,d=a.stops,g=s.enabled,p=s.left,x=s.top,f=s.blur,y=s.color,w=s.opacity,S=e.config.xaxis.crosshairs.fill.color;if(e.config.xaxis.crosshairs.show){n==="gradient"&&(S=t.drawGradient("vertical",r,o,h,c,null,d,null));var k=t.drawRect();e.config.xaxis.crosshairs.width===1&&(k=t.drawLine());var l=e.globals.gridHeight;(!L.isNumber(l)||l<0)&&(l=0);var u=e.config.xaxis.crosshairs.width;(!L.isNumber(u)||u<0)&&(u=0),k.attr({class:"apexcharts-xcrosshairs",x:0,y:0,y2:l,width:u,height:l,fill:S,filter:"none","fill-opacity":e.config.xaxis.crosshairs.opacity,stroke:e.config.xaxis.crosshairs.stroke.color,"stroke-width":e.config.xaxis.crosshairs.stroke.width,"stroke-dasharray":e.config.xaxis.crosshairs.stroke.dashArray}),g&&(k=i.dropShadow(k,{left:p,top:x,blur:f,color:y,opacity:w})),e.globals.dom.elGraphical.add(k)}}},{key:"drawYCrosshairs",value:function(){var e=this.w,t=new Y(this.ctx),i=e.config.yaxis[0].crosshairs,a=e.globals.barPadForNumericAxis;if(e.config.yaxis[0].crosshairs.show){var s=t.drawLine(-a,0,e.globals.gridWidth+a,0,i.stroke.color,i.stroke.dashArray,i.stroke.width);s.attr({class:"apexcharts-ycrosshairs"}),e.globals.dom.elGraphical.add(s)}var n=t.drawLine(-a,0,e.globals.gridWidth+a,0,i.stroke.color,0,0);n.attr({class:"apexcharts-ycrosshairs-hidden"}),e.globals.dom.elGraphical.add(n)}}]),v}(),Ei=function(){function v(e){O(this,v),this.ctx=e,this.w=e.w}return I(v,[{key:"checkResponsiveConfig",value:function(e){var t=this,i=this.w,a=i.config;if(a.responsive.length!==0){var s=a.responsive.slice();s.sort(function(h,c){return h.breakpoint>c.breakpoint?1:c.breakpoint>h.breakpoint?-1:0}).reverse();var n=new we({}),r=function(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=s[0].breakpoint,d=window.innerWidth>0?window.innerWidth:screen.width;if(d>c){var g=q.extendArrayProps(n,i.globals.initialConfig,i);h=L.extend(g,h),h=L.extend(i.config,h),t.overrideResponsiveOptions(h)}else for(var p=0;p0&&typeof t.config.colors[0]=="function"&&(t.globals.colors=t.config.series.map(function(p,x){var f=t.config.colors[x];return f||(f=t.config.colors[0]),typeof f=="function"?(e.isColorFn=!0,f({value:t.globals.axisCharts?t.globals.series[x][0]?t.globals.series[x][0]:0:t.globals.series[x],seriesIndex:x,dataPointIndex:x,w:t})):f}))),t.globals.seriesColors.map(function(p,x){p&&(t.globals.colors[x]=p)}),t.config.theme.monochrome.enabled){var a=[],s=t.globals.series.length;(this.isBarDistributed||this.isHeatmapDistributed)&&(s=t.globals.series[0].length*t.globals.series.length);for(var n=t.config.theme.monochrome.color,r=1/(s/t.config.theme.monochrome.shadeIntensity),o=t.config.theme.monochrome.shadeTo,h=0,c=0;c2&&arguments[2]!==void 0?arguments[2]:null,a=this.w,s=t||a.globals.series.length;if(i===null&&(i=this.isBarDistributed||this.isHeatmapDistributed||a.config.chart.type==="heatmap"&&a.config.plotOptions.heatmap.colorScale.inverse),i&&a.globals.series.length&&(s=a.globals.series[a.globals.maxValsInArrayIndex].length*a.globals.series.length),e.lengthe.globals.svgWidth&&(this.dCtx.lgRect.width=e.globals.svgWidth/1.5),this.dCtx.lgRect}},{key:"getLargestStringFromMultiArr",value:function(e,t){var i=e;if(this.w.globals.isMultiLineX){var a=t.map(function(n,r){return Array.isArray(n)?n.length:1}),s=Math.max.apply(Math,$(a));i=t[a.indexOf(s)]}return i}}]),v}(),Yi=function(){function v(e){O(this,v),this.w=e.w,this.dCtx=e}return I(v,[{key:"getxAxisLabelsCoords",value:function(){var e,t=this.w,i=t.globals.labels.slice();if(t.config.xaxis.convertedCatToNumeric&&i.length===0&&(i=t.globals.categoryLabels),t.globals.timescaleLabels.length>0){var a=this.getxAxisTimeScaleLabelsCoords();e={width:a.width,height:a.height},t.globals.rotateXLabels=!1}else{this.dCtx.lgWidthForSideLegends=t.config.legend.position!=="left"&&t.config.legend.position!=="right"||t.config.legend.floating?0:this.dCtx.lgRect.width;var s=t.globals.xLabelFormatter,n=L.getLargestStringFromArr(i),r=this.dCtx.dimHelpers.getLargestStringFromMultiArr(n,i);t.globals.isBarHorizontal&&(r=n=t.globals.yAxisScale[0].result.reduce(function(x,f){return x.length>f.length?x:f},0));var o=new ve(this.dCtx.ctx),h=n;n=o.xLabelFormat(s,n,h,{i:void 0,dateFormatter:new Q(this.dCtx.ctx).formatDate,w:t}),r=o.xLabelFormat(s,r,h,{i:void 0,dateFormatter:new Q(this.dCtx.ctx).formatDate,w:t}),(t.config.xaxis.convertedCatToNumeric&&n===void 0||String(n).trim()==="")&&(r=n="1");var c=new Y(this.dCtx.ctx),d=c.getTextRects(n,t.config.xaxis.labels.style.fontSize),g=d;if(n!==r&&(g=c.getTextRects(r,t.config.xaxis.labels.style.fontSize)),(e={width:d.width>=g.width?d.width:g.width,height:d.height>=g.height?d.height:g.height}).width*i.length>t.globals.svgWidth-this.dCtx.lgWidthForSideLegends-this.dCtx.yAxisWidth-this.dCtx.gridPad.left-this.dCtx.gridPad.right&&t.config.xaxis.labels.rotate!==0||t.config.xaxis.labels.rotateAlways){if(!t.globals.isBarHorizontal){t.globals.rotateXLabels=!0;var p=function(x){return c.getTextRects(x,t.config.xaxis.labels.style.fontSize,t.config.xaxis.labels.style.fontFamily,"rotate(".concat(t.config.xaxis.labels.rotate," 0 0)"),!1)};d=p(n),n!==r&&(g=p(r)),e.height=(d.height>g.height?d.height:g.height)/1.5,e.width=d.width>g.width?d.width:g.width}}else t.globals.rotateXLabels=!1}return t.config.xaxis.labels.show||(e={width:0,height:0}),{width:e.width,height:e.height}}},{key:"getxAxisGroupLabelsCoords",value:function(){var e,t=this.w;if(!t.globals.hasGroups)return{width:0,height:0};var i,a=((e=t.config.xaxis.group.style)===null||e===void 0?void 0:e.fontSize)||t.config.xaxis.labels.style.fontSize,s=t.globals.groups.map(function(d){return d.title}),n=L.getLargestStringFromArr(s),r=this.dCtx.dimHelpers.getLargestStringFromMultiArr(n,s),o=new Y(this.dCtx.ctx),h=o.getTextRects(n,a),c=h;return n!==r&&(c=o.getTextRects(r,a)),i={width:h.width>=c.width?h.width:c.width,height:h.height>=c.height?h.height:c.height},t.config.xaxis.labels.show||(i={width:0,height:0}),{width:i.width,height:i.height}}},{key:"getxAxisTitleCoords",value:function(){var e=this.w,t=0,i=0;if(e.config.xaxis.title.text!==void 0){var a=new Y(this.dCtx.ctx).getTextRects(e.config.xaxis.title.text,e.config.xaxis.title.style.fontSize);t=a.width,i=a.height}return{width:t,height:i}}},{key:"getxAxisTimeScaleLabelsCoords",value:function(){var e,t=this.w;this.dCtx.timescaleLabels=t.globals.timescaleLabels.slice();var i=this.dCtx.timescaleLabels.map(function(s){return s.value}),a=i.reduce(function(s,n){return s===void 0?(console.error("You have possibly supplied invalid Date format. Please supply a valid JavaScript Date"),0):s.length>n.length?s:n},0);return 1.05*(e=new Y(this.dCtx.ctx).getTextRects(a,t.config.xaxis.labels.style.fontSize)).width*i.length>t.globals.gridWidth&&t.config.xaxis.labels.rotate!==0&&(t.globals.overlappingXLabels=!0),e}},{key:"additionalPaddingXLabels",value:function(e){var t=this,i=this.w,a=i.globals,s=i.config,n=s.xaxis.type,r=e.width;a.skipLastTimelinelabel=!1,a.skipFirstTimelinelabel=!1;var o=i.config.yaxis[0].opposite&&i.globals.isBarHorizontal,h=function(c,d){(function(g){return a.collapsedSeriesIndices.indexOf(g)!==-1})(d)||function(g){if(t.dCtx.timescaleLabels&&t.dCtx.timescaleLabels.length){var p=t.dCtx.timescaleLabels[0],x=t.dCtx.timescaleLabels[t.dCtx.timescaleLabels.length-1].position+r/1.75-t.dCtx.yAxisWidthRight,f=p.position-r/1.75+t.dCtx.yAxisWidthLeft,y=i.config.legend.position==="right"&&t.dCtx.lgRect.width>0?t.dCtx.lgRect.width:0;x>a.svgWidth-a.translateX-y&&(a.skipLastTimelinelabel=!0),f<-(g.show&&!g.floating||s.chart.type!=="bar"&&s.chart.type!=="candlestick"&&s.chart.type!=="rangeBar"&&s.chart.type!=="boxPlot"?10:r/1.75)&&(a.skipFirstTimelinelabel=!0)}else n==="datetime"?t.dCtx.gridPad.rightString(o.niceMax).length?d:o.niceMax,p=c(g,{seriesIndex:r,dataPointIndex:-1,w:t}),x=p;if(p!==void 0&&p.length!==0||(p=g),t.globals.isBarHorizontal){a=0;var f=t.globals.labels.slice();p=c(p=L.getLargestStringFromArr(f),{seriesIndex:r,dataPointIndex:-1,w:t}),x=e.dCtx.dimHelpers.getLargestStringFromMultiArr(p,f)}var y=new Y(e.dCtx.ctx),w="rotate(".concat(n.labels.rotate," 0 0)"),S=y.getTextRects(p,n.labels.style.fontSize,n.labels.style.fontFamily,w,!1),k=S;p!==x&&(k=y.getTextRects(x,n.labels.style.fontSize,n.labels.style.fontFamily,w,!1)),i.push({width:(h>k.width||h>S.width?h:k.width>S.width?k.width:S.width)+a,height:k.height>S.height?k.height:S.height})}else i.push({width:0,height:0})}),i}},{key:"getyAxisTitleCoords",value:function(){var e=this,t=this.w,i=[];return t.config.yaxis.map(function(a,s){if(a.show&&a.title.text!==void 0){var n=new Y(e.dCtx.ctx),r="rotate(".concat(a.title.rotate," 0 0)"),o=n.getTextRects(a.title.text,a.title.style.fontSize,a.title.style.fontFamily,r,!1);i.push({width:o.width,height:o.height})}else i.push({width:0,height:0})}),i}},{key:"getTotalYAxisWidth",value:function(){var e=this.w,t=0,i=0,a=0,s=e.globals.yAxisScale.length>1?10:0,n=new ge(this.dCtx.ctx),r=function(o,h){var c=e.config.yaxis[h].floating,d=0;o.width>0&&!c?(d=o.width+s,function(g){return e.globals.ignoreYAxisIndexes.indexOf(g)>-1}(h)&&(d=d-o.width-s)):d=c||n.isYAxisHidden(h)?0:5,e.config.yaxis[h].opposite?a+=d:i+=d,t+=d};return e.globals.yLabelsCoords.map(function(o,h){r(o,h)}),e.globals.yTitleCoords.map(function(o,h){r(o,h)}),e.globals.isBarHorizontal&&!e.config.yaxis[0].floating&&(t=e.globals.yLabelsCoords[0].width+e.globals.yTitleCoords[0].width+15),this.dCtx.yAxisWidthLeft=i,this.dCtx.yAxisWidthRight=a,t}}]),v}(),Ri=function(){function v(e){O(this,v),this.w=e.w,this.dCtx=e}return I(v,[{key:"gridPadForColumnsInNumericAxis",value:function(e){var t=this.w;if(t.globals.noData||t.globals.allSeriesCollapsed)return 0;var i=function(c){return c==="bar"||c==="rangeBar"||c==="candlestick"||c==="boxPlot"},a=t.config.chart.type,s=0,n=i(a)?t.config.series.length:1;if(t.globals.comboBarCount>0&&(n=t.globals.comboBarCount),t.globals.collapsedSeries.forEach(function(c){i(c.type)&&(n-=1)}),t.config.chart.stacked&&(n=1),(i(a)||t.globals.comboBarCount>0)&&t.globals.isXNumeric&&!t.globals.isBarHorizontal&&n>0){var r,o,h=Math.abs(t.globals.initialMaxX-t.globals.initialMinX);h<=3&&(h=t.globals.dataPoints),r=h/e,t.globals.minXDiff&&t.globals.minXDiff/r>0&&(o=t.globals.minXDiff/r),o>e/2&&(o/=2),(s=o/n*parseInt(t.config.plotOptions.bar.columnWidth,10)/100)<1&&(s=1),s=s/(n>1?1:1.5)+5,t.globals.barPadForNumericAxis=s}return s}},{key:"gridPadFortitleSubtitle",value:function(){var e=this,t=this.w,i=t.globals,a=this.dCtx.isSparkline||!t.globals.axisCharts?0:10;["title","subtitle"].forEach(function(r){t.config[r].text!==void 0?a+=t.config[r].margin:a+=e.dCtx.isSparkline||!t.globals.axisCharts?0:5}),!t.config.legend.show||t.config.legend.position!=="bottom"||t.config.legend.floating||t.globals.axisCharts||(a+=10);var s=this.dCtx.dimHelpers.getTitleSubtitleCoords("title"),n=this.dCtx.dimHelpers.getTitleSubtitleCoords("subtitle");i.gridHeight=i.gridHeight-s.height-n.height-a,i.translateY=i.translateY+s.height+n.height+a}},{key:"setGridXPosForDualYAxis",value:function(e,t){var i=this.w,a=new ge(this.dCtx.ctx);i.config.yaxis.map(function(s,n){i.globals.ignoreYAxisIndexes.indexOf(n)!==-1||s.floating||a.isYAxisHidden(n)||(s.opposite&&(i.globals.translateX=i.globals.translateX-(t[n].width+e[n].width)-parseInt(i.config.yaxis[n].labels.style.fontSize,10)/1.2-12),i.globals.translateX<2&&(i.globals.translateX=2))})}}]),v}(),Me=function(){function v(e){O(this,v),this.ctx=e,this.w=e.w,this.lgRect={},this.yAxisWidth=0,this.yAxisWidthLeft=0,this.yAxisWidthRight=0,this.xAxisHeight=0,this.isSparkline=this.w.config.chart.sparkline.enabled,this.dimHelpers=new zi(this),this.dimYAxis=new Fi(this),this.dimXAxis=new Yi(this),this.dimGrid=new Ri(this),this.lgWidthForSideLegends=0,this.gridPad=this.w.config.grid.padding,this.xPadRight=0,this.xPadLeft=0}return I(v,[{key:"plotCoords",value:function(){var e=this,t=this.w,i=t.globals;this.lgRect=this.dimHelpers.getLegendsRect(),this.isSparkline&&(t.config.markers.discrete.length>0||t.config.markers.size>0)&&Object.entries(this.gridPad).forEach(function(s){var n=he(s,2),r=n[0],o=n[1];e.gridPad[r]=Math.max(o,e.w.globals.markers.largestSize/1.5)}),i.axisCharts?this.setDimensionsForAxisCharts():this.setDimensionsForNonAxisCharts(),this.dimGrid.gridPadFortitleSubtitle(),i.gridHeight=i.gridHeight-this.gridPad.top-this.gridPad.bottom,i.gridWidth=i.gridWidth-this.gridPad.left-this.gridPad.right-this.xPadRight-this.xPadLeft;var a=this.dimGrid.gridPadForColumnsInNumericAxis(i.gridWidth);i.gridWidth=i.gridWidth-2*a,i.translateX=i.translateX+this.gridPad.left+this.xPadLeft+(a>0?a+4:0),i.translateY=i.translateY+this.gridPad.top}},{key:"setDimensionsForAxisCharts",value:function(){var e=this,t=this.w,i=t.globals,a=this.dimYAxis.getyAxisLabelsCoords(),s=this.dimYAxis.getyAxisTitleCoords();t.globals.yLabelsCoords=[],t.globals.yTitleCoords=[],t.config.yaxis.map(function(p,x){t.globals.yLabelsCoords.push({width:a[x].width,index:x}),t.globals.yTitleCoords.push({width:s[x].width,index:x})}),this.yAxisWidth=this.dimYAxis.getTotalYAxisWidth();var n=this.dimXAxis.getxAxisLabelsCoords(),r=this.dimXAxis.getxAxisGroupLabelsCoords(),o=this.dimXAxis.getxAxisTitleCoords();this.conditionalChecksForAxisCoords(n,o,r),i.translateXAxisY=t.globals.rotateXLabels?this.xAxisHeight/8:-4,i.translateXAxisX=t.globals.rotateXLabels&&t.globals.isXNumeric&&t.config.xaxis.labels.rotate<=-45?-this.xAxisWidth/4:0,t.globals.isBarHorizontal&&(i.rotateXLabels=!1,i.translateXAxisY=parseInt(t.config.xaxis.labels.style.fontSize,10)/1.5*-1),i.translateXAxisY=i.translateXAxisY+t.config.xaxis.labels.offsetY,i.translateXAxisX=i.translateXAxisX+t.config.xaxis.labels.offsetX;var h=this.yAxisWidth,c=this.xAxisHeight;i.xAxisLabelsHeight=this.xAxisHeight-o.height,i.xAxisGroupLabelsHeight=i.xAxisLabelsHeight-n.height,i.xAxisLabelsWidth=this.xAxisWidth,i.xAxisHeight=this.xAxisHeight;var d=10;(t.config.chart.type==="radar"||this.isSparkline)&&(h=0,c=i.goldenPadding),this.isSparkline&&(this.lgRect={height:0,width:0}),(this.isSparkline||t.config.chart.type==="treemap")&&(h=0,c=0,d=0),this.isSparkline||this.dimXAxis.additionalPaddingXLabels(n);var g=function(){i.translateX=h,i.gridHeight=i.svgHeight-e.lgRect.height-c-(e.isSparkline||t.config.chart.type==="treemap"?0:t.globals.rotateXLabels?10:15),i.gridWidth=i.svgWidth-h};switch(t.config.xaxis.position==="top"&&(d=i.xAxisHeight-t.config.xaxis.axisTicks.height-5),t.config.legend.position){case"bottom":i.translateY=d,g();break;case"top":i.translateY=this.lgRect.height+d,g();break;case"left":i.translateY=d,i.translateX=this.lgRect.width+h,i.gridHeight=i.svgHeight-c-12,i.gridWidth=i.svgWidth-this.lgRect.width-h;break;case"right":i.translateY=d,i.translateX=h,i.gridHeight=i.svgHeight-c-12,i.gridWidth=i.svgWidth-this.lgRect.width-h-5;break;default:throw new Error("Legend position not supported")}this.dimGrid.setGridXPosForDualYAxis(s,a),new Fe(this.ctx).setYAxisXPosition(a,s)}},{key:"setDimensionsForNonAxisCharts",value:function(){var e=this.w,t=e.globals,i=e.config,a=0;e.config.legend.show&&!e.config.legend.floating&&(a=20);var s=i.chart.type==="pie"||i.chart.type==="polarArea"||i.chart.type==="donut"?"pie":"radialBar",n=i.plotOptions[s].offsetY,r=i.plotOptions[s].offsetX;if(!i.legend.show||i.legend.floating)return t.gridHeight=t.svgHeight-i.grid.padding.left+i.grid.padding.right,t.gridWidth=t.gridHeight,t.translateY=n,void(t.translateX=r+(t.svgWidth-t.gridWidth)/2);switch(i.legend.position){case"bottom":t.gridHeight=t.svgHeight-this.lgRect.height-t.goldenPadding,t.gridWidth=t.svgWidth,t.translateY=n-10,t.translateX=r+(t.svgWidth-t.gridWidth)/2;break;case"top":t.gridHeight=t.svgHeight-this.lgRect.height-t.goldenPadding,t.gridWidth=t.svgWidth,t.translateY=this.lgRect.height+n+10,t.translateX=r+(t.svgWidth-t.gridWidth)/2;break;case"left":t.gridWidth=t.svgWidth-this.lgRect.width-a,t.gridHeight=i.chart.height!=="auto"?t.svgHeight:t.gridWidth,t.translateY=n,t.translateX=r+this.lgRect.width+a;break;case"right":t.gridWidth=t.svgWidth-this.lgRect.width-a-5,t.gridHeight=i.chart.height!=="auto"?t.svgHeight:t.gridWidth,t.translateY=n,t.translateX=r+10;break;default:throw new Error("Legend position not supported")}}},{key:"conditionalChecksForAxisCoords",value:function(e,t,i){var a=this.w,s=a.globals.hasGroups?2:1,n=i.height+e.height+t.height,r=a.globals.isMultiLineX?1.2:a.globals.LINE_HEIGHT_RATIO,o=a.globals.rotateXLabels?22:10,h=a.globals.rotateXLabels&&a.config.legend.position==="bottom"?10:0;this.xAxisHeight=n*r+s*o+h,this.xAxisWidth=e.width,this.xAxisHeight-t.height>a.config.xaxis.labels.maxHeight&&(this.xAxisHeight=a.config.xaxis.labels.maxHeight),a.config.xaxis.labels.minHeight&&this.xAxisHeightd&&(this.yAxisWidth=d)}}]),v}(),Di=function(){function v(e){O(this,v),this.w=e.w,this.lgCtx=e}return I(v,[{key:"getLegendStyles",value:function(){var e=document.createElement("style");e.setAttribute("type","text/css");var t=document.createTextNode(` +
`):'
')+"
".concat(a[0],': ')+n+"
"+"
".concat(a[1],': ')+r+"
"+(o?"
".concat(a[2],': ')+o+"
":"")+"
".concat(a[3],': ')+h+"
"+"
".concat(a[4],': ')+c+"
"}}]),v}(),we=function(){function v(e){O(this,v),this.opts=e}return E(v,[{key:"init",value:function(e){var t=e.responsiveOverride,i=this.opts,a=new he,s=new ye(i);this.chartType=i.chart.type,i=this.extendYAxis(i),i=this.extendAnnotations(i);var n=a.init(),r={};if(i&&_(i)==="object"){var o={};o=["line","area","bar","candlestick","boxPlot","rangeBar","rangeArea","bubble","scatter","heatmap","treemap","pie","polarArea","donut","radar","radialBar"].indexOf(i.chart.type)!==-1?s[i.chart.type]():s.line(),i.chart.brush&&i.chart.brush.enabled&&(o=s.brush(o)),i.chart.stacked&&i.chart.stackType==="100%"&&(i=s.stacked100(i)),this.checkForDarkTheme(window.Apex),this.checkForDarkTheme(i),i.xaxis=i.xaxis||window.Apex.xaxis||{},t||(i.xaxis.convertedCatToNumeric=!1),((i=this.checkForCatToNumericXAxis(this.chartType,o,i)).chart.sparkline&&i.chart.sparkline.enabled||window.Apex.chart&&window.Apex.chart.sparkline&&window.Apex.chart.sparkline.enabled)&&(o=s.sparkline(o)),r=L.extend(n,o)}var h=L.extend(r,window.Apex);return n=L.extend(h,i),n=this.handleUserInputErrors(n)}},{key:"checkForCatToNumericXAxis",value:function(e,t,i){var a=new ye(i),s=(e==="bar"||e==="boxPlot")&&i.plotOptions&&i.plotOptions.bar&&i.plotOptions.bar.horizontal,n=e==="pie"||e==="polarArea"||e==="donut"||e==="radar"||e==="radialBar"||e==="heatmap",r=i.xaxis.type!=="datetime"&&i.xaxis.type!=="numeric",o=i.xaxis.tickPlacement?i.xaxis.tickPlacement:t.xaxis&&t.xaxis.tickPlacement;return s||n||!r||o==="between"||(i=a.convertCatToNumeric(i)),i}},{key:"extendYAxis",value:function(e,t){var i=new he;(e.yaxis===void 0||!e.yaxis||Array.isArray(e.yaxis)&&e.yaxis.length===0)&&(e.yaxis={}),e.yaxis.constructor!==Array&&window.Apex.yaxis&&window.Apex.yaxis.constructor!==Array&&(e.yaxis=L.extend(e.yaxis,window.Apex.yaxis)),e.yaxis.constructor!==Array?e.yaxis=[L.extend(i.yAxis,e.yaxis)]:e.yaxis=L.extendArray(e.yaxis,i.yAxis);var a=!1;e.yaxis.forEach(function(n){n.logarithmic&&(a=!0)});var s=e.series;return t&&!s&&(s=t.config.series),a&&s.length!==e.yaxis.length&&s.length&&(e.yaxis=s.map(function(n,r){if(n.name||(s[r].name="series-".concat(r+1)),e.yaxis[r])return e.yaxis[r].seriesName=s[r].name,e.yaxis[r];var o=L.extend(i.yAxis,e.yaxis[0]);return o.show=!1,o})),a&&s.length>1&&s.length!==e.yaxis.length&&console.warn("A multi-series logarithmic chart should have equal number of series and y-axes. Please make sure to equalize both."),e}},{key:"extendAnnotations",value:function(e){return e.annotations===void 0&&(e.annotations={},e.annotations.yaxis=[],e.annotations.xaxis=[],e.annotations.points=[]),e=this.extendYAxisAnnotations(e),e=this.extendXAxisAnnotations(e),e=this.extendPointAnnotations(e)}},{key:"extendYAxisAnnotations",value:function(e){var t=new he;return e.annotations.yaxis=L.extendArray(e.annotations.yaxis!==void 0?e.annotations.yaxis:[],t.yAxisAnnotation),e}},{key:"extendXAxisAnnotations",value:function(e){var t=new he;return e.annotations.xaxis=L.extendArray(e.annotations.xaxis!==void 0?e.annotations.xaxis:[],t.xAxisAnnotation),e}},{key:"extendPointAnnotations",value:function(e){var t=new he;return e.annotations.points=L.extendArray(e.annotations.points!==void 0?e.annotations.points:[],t.pointAnnotation),e}},{key:"checkForDarkTheme",value:function(e){e.theme&&e.theme.mode==="dark"&&(e.tooltip||(e.tooltip={}),e.tooltip.theme!=="light"&&(e.tooltip.theme="dark"),e.chart.foreColor||(e.chart.foreColor="#f6f7f8"),e.chart.background||(e.chart.background="#424242"),e.theme.palette||(e.theme.palette="palette4"))}},{key:"handleUserInputErrors",value:function(e){var t=e;if(t.tooltip.shared&&t.tooltip.intersect)throw new Error("tooltip.shared cannot be enabled when tooltip.intersect is true. Turn off any other option by setting it to false.");if(t.chart.type==="bar"&&t.plotOptions.bar.horizontal){if(t.yaxis.length>1)throw new Error("Multiple Y Axis for bars are not supported. Switch to column chart by setting plotOptions.bar.horizontal=false");t.yaxis[0].reversed&&(t.yaxis[0].opposite=!0),t.xaxis.tooltip.enabled=!1,t.yaxis[0].tooltip.enabled=!1,t.chart.zoom.enabled=!1}return t.chart.type!=="bar"&&t.chart.type!=="rangeBar"||t.tooltip.shared&&t.xaxis.crosshairs.width==="barWidth"&&t.series.length>1&&(t.xaxis.crosshairs.width="tickWidth"),t.chart.type!=="candlestick"&&t.chart.type!=="boxPlot"||t.yaxis[0].reversed&&(console.warn("Reversed y-axis in ".concat(t.chart.type," chart is not supported.")),t.yaxis[0].reversed=!1),t}}]),v}(),je=function(){function v(){O(this,v)}return E(v,[{key:"initGlobalVars",value:function(e){e.series=[],e.seriesCandleO=[],e.seriesCandleH=[],e.seriesCandleM=[],e.seriesCandleL=[],e.seriesCandleC=[],e.seriesRangeStart=[],e.seriesRangeEnd=[],e.seriesRange=[],e.seriesPercent=[],e.seriesGoals=[],e.seriesX=[],e.seriesZ=[],e.seriesNames=[],e.seriesTotals=[],e.seriesLog=[],e.seriesColors=[],e.stackedSeriesTotals=[],e.seriesXvalues=[],e.seriesYvalues=[],e.labels=[],e.hasGroups=!1,e.groups=[],e.categoryLabels=[],e.timescaleLabels=[],e.noLabelsProvided=!1,e.resizeTimer=null,e.selectionResizeTimer=null,e.delayedElements=[],e.pointsArray=[],e.dataLabelsRects=[],e.isXNumeric=!1,e.skipLastTimelinelabel=!1,e.skipFirstTimelinelabel=!1,e.isDataXYZ=!1,e.isMultiLineX=!1,e.isMultipleYAxis=!1,e.maxY=-Number.MAX_VALUE,e.minY=Number.MIN_VALUE,e.minYArr=[],e.maxYArr=[],e.maxX=-Number.MAX_VALUE,e.minX=Number.MAX_VALUE,e.initialMaxX=-Number.MAX_VALUE,e.initialMinX=Number.MAX_VALUE,e.maxDate=0,e.minDate=Number.MAX_VALUE,e.minZ=Number.MAX_VALUE,e.maxZ=-Number.MAX_VALUE,e.minXDiff=Number.MAX_VALUE,e.yAxisScale=[],e.xAxisScale=null,e.xAxisTicksPositions=[],e.yLabelsCoords=[],e.yTitleCoords=[],e.barPadForNumericAxis=0,e.padHorizontal=0,e.xRange=0,e.yRange=[],e.zRange=0,e.dataPoints=0,e.xTickAmount=0}},{key:"globalVars",value:function(e){return{chartID:null,cuid:null,events:{beforeMount:[],mounted:[],updated:[],clicked:[],selection:[],dataPointSelection:[],zoomed:[],scrolled:[]},colors:[],clientX:null,clientY:null,fill:{colors:[]},stroke:{colors:[]},dataLabels:{style:{colors:[]}},radarPolygons:{fill:{colors:[]}},markers:{colors:[],size:e.markers.size,largestSize:0},animationEnded:!1,isTouchDevice:"ontouchstart"in window||navigator.msMaxTouchPoints,isDirty:!1,isExecCalled:!1,initialConfig:null,initialSeries:[],lastXAxis:[],lastYAxis:[],columnSeries:null,labels:[],timescaleLabels:[],noLabelsProvided:!1,allSeriesCollapsed:!1,collapsedSeries:[],collapsedSeriesIndices:[],ancillaryCollapsedSeries:[],ancillaryCollapsedSeriesIndices:[],risingSeries:[],dataFormatXNumeric:!1,capturedSeriesIndex:-1,capturedDataPointIndex:-1,selectedDataPoints:[],goldenPadding:35,invalidLogScale:!1,ignoreYAxisIndexes:[],yAxisSameScaleIndices:[],maxValsInArrayIndex:0,radialSize:0,selection:void 0,zoomEnabled:e.chart.toolbar.autoSelected==="zoom"&&e.chart.toolbar.tools.zoom&&e.chart.zoom.enabled,panEnabled:e.chart.toolbar.autoSelected==="pan"&&e.chart.toolbar.tools.pan,selectionEnabled:e.chart.toolbar.autoSelected==="selection"&&e.chart.toolbar.tools.selection,yaxis:null,mousedown:!1,lastClientPosition:{},visibleXRange:void 0,yValueDecimal:0,total:0,SVGNS:"http://www.w3.org/2000/svg",svgWidth:0,svgHeight:0,noData:!1,locale:{},dom:{},memory:{methodsToExec:[]},shouldAnimate:!0,skipLastTimelinelabel:!1,skipFirstTimelinelabel:!1,delayedElements:[],axisCharts:!0,isDataXYZ:!1,resized:!1,resizeTimer:null,comboCharts:!1,dataChanged:!1,previousPaths:[],allSeriesHasEqualX:!0,pointsArray:[],dataLabelsRects:[],lastDrawnDataLabelsIndexes:[],hasNullValues:!1,easing:null,zoomed:!1,gridWidth:0,gridHeight:0,rotateXLabels:!1,defaultLabels:!1,xLabelFormatter:void 0,yLabelFormatters:[],xaxisTooltipFormatter:void 0,ttKeyFormatter:void 0,ttVal:void 0,ttZFormatter:void 0,LINE_HEIGHT_RATIO:1.618,xAxisLabelsHeight:0,xAxisGroupLabelsHeight:0,xAxisLabelsWidth:0,yAxisLabelsWidth:0,scaleX:1,scaleY:1,translateX:0,translateY:0,translateYAxisX:[],yAxisWidths:[],translateXAxisY:0,translateXAxisX:0,tooltip:null}}},{key:"init",value:function(e){var t=this.globalVars(e);return this.initGlobalVars(t),t.initialConfig=L.extend({},e),t.initialSeries=L.clone(e.series),t.lastXAxis=L.clone(t.initialConfig.xaxis),t.lastYAxis=L.clone(t.initialConfig.yaxis),t}}]),v}(),Pi=function(){function v(e){O(this,v),this.opts=e}return E(v,[{key:"init",value:function(){var e=new we(this.opts).init({responsiveOverride:!1});return{config:e,globals:new je().init(e)}}}]),v}(),ne=function(){function v(e){O(this,v),this.ctx=e,this.w=e.w,this.opts=null,this.seriesIndex=0}return E(v,[{key:"clippedImgArea",value:function(e){var t=this.w,i=t.config,a=parseInt(t.globals.gridWidth,10),s=parseInt(t.globals.gridHeight,10),n=a>s?a:s,r=e.image,o=0,h=0;e.width===void 0&&e.height===void 0?i.fill.image.width!==void 0&&i.fill.image.height!==void 0?(o=i.fill.image.width+1,h=i.fill.image.height):(o=n+1,h=n):(o=e.width,h=e.height);var c=document.createElementNS(t.globals.SVGNS,"pattern");Y.setAttrs(c,{id:e.patternID,patternUnits:e.patternUnits?e.patternUnits:"userSpaceOnUse",width:o+"px",height:h+"px"});var d=document.createElementNS(t.globals.SVGNS,"image");c.appendChild(d),d.setAttributeNS(window.SVG.xlink,"href",r),Y.setAttrs(d,{x:0,y:0,preserveAspectRatio:"none",width:o+"px",height:h+"px"}),d.style.opacity=e.opacity,t.globals.dom.elDefs.node.appendChild(c)}},{key:"getSeriesIndex",value:function(e){var t=this.w;return(t.config.chart.type==="bar"||t.config.chart.type==="rangeBar")&&t.config.plotOptions.bar.distributed||t.config.chart.type==="heatmap"||t.config.chart.type==="treemap"?this.seriesIndex=e.seriesNumber:this.seriesIndex=e.seriesNumber%t.globals.series.length,this.seriesIndex}},{key:"fillPath",value:function(e){var t=this.w;this.opts=e;var i,a,s,n=this.w.config;this.seriesIndex=this.getSeriesIndex(e);var r=this.getFillColors()[this.seriesIndex];t.globals.seriesColors[this.seriesIndex]!==void 0&&(r=t.globals.seriesColors[this.seriesIndex]),typeof r=="function"&&(r=r({seriesIndex:this.seriesIndex,dataPointIndex:e.dataPointIndex,value:e.value,w:t}));var o=e.fillType?e.fillType:this.getFillType(this.seriesIndex),h=Array.isArray(n.fill.opacity)?n.fill.opacity[this.seriesIndex]:n.fill.opacity;e.color&&(r=e.color);var c=r;if(r.indexOf("rgb")===-1?r.length<9&&(c=L.hexToRgba(r,h)):r.indexOf("rgba")>-1&&(h=L.getOpacityFromRGBA(r)),e.opacity&&(h=e.opacity),o==="pattern"&&(a=this.handlePatternFill({fillConfig:e.fillConfig,patternFill:a,fillColor:r,fillOpacity:h,defaultColor:c})),o==="gradient"&&(s=this.handleGradientFill({fillConfig:e.fillConfig,fillColor:r,fillOpacity:h,i:this.seriesIndex})),o==="image"){var d=n.fill.image.src,g=e.patternID?e.patternID:"";this.clippedImgArea({opacity:h,image:Array.isArray(d)?e.seriesNumber-1&&(p=L.getOpacityFromRGBA(g));var x=n.gradient.opacityTo===void 0?i:Array.isArray(n.gradient.opacityTo)?n.gradient.opacityTo[s]:n.gradient.opacityTo;if(n.gradient.gradientToColors===void 0||n.gradient.gradientToColors.length===0)r=n.gradient.shade==="dark"?c.shadeColor(-1*parseFloat(n.gradient.shadeIntensity),t.indexOf("rgb")>-1?L.rgb2hex(t):t):c.shadeColor(parseFloat(n.gradient.shadeIntensity),t.indexOf("rgb")>-1?L.rgb2hex(t):t);else if(n.gradient.gradientToColors[o.seriesNumber]){var f=n.gradient.gradientToColors[o.seriesNumber];r=f,f.indexOf("rgba")>-1&&(x=L.getOpacityFromRGBA(f))}else r=t;if(n.gradient.gradientFrom&&(g=n.gradient.gradientFrom),n.gradient.gradientTo&&(r=n.gradient.gradientTo),n.gradient.inverseColors){var y=g;g=r,r=y}return g.indexOf("rgb")>-1&&(g=L.rgb2hex(g)),r.indexOf("rgb")>-1&&(r=L.rgb2hex(r)),h.drawGradient(d,g,r,p,x,o.size,n.gradient.stops,n.gradient.colorStops,s)}}]),v}(),ke=function(){function v(e,t){O(this,v),this.ctx=e,this.w=e.w}return E(v,[{key:"setGlobalMarkerSize",value:function(){var e=this.w;if(e.globals.markers.size=Array.isArray(e.config.markers.size)?e.config.markers.size:[e.config.markers.size],e.globals.markers.size.length>0){if(e.globals.markers.size.length4&&arguments[4]!==void 0&&arguments[4],r=this.w,o=t,h=e,c=null,d=new Y(this.ctx),g=r.config.markers.discrete&&r.config.markers.discrete.length;if((r.globals.markers.size[t]>0||n||g)&&(c=d.group({class:n||g?"":"apexcharts-series-markers"})).attr("clip-path","url(#gridRectMarkerMask".concat(r.globals.cuid,")")),Array.isArray(h.x))for(var p=0;p0:r.config.markers.size>0;if(y||n||g){L.isNumber(h.y[p])?f+=" w".concat(L.randomId()):f="apexcharts-nullpoint";var w=this.getMarkerConfig({cssClass:f,seriesIndex:t,dataPointIndex:x});r.config.series[o].data[x]&&(r.config.series[o].data[x].fillColor&&(w.pointFillColor=r.config.series[o].data[x].fillColor),r.config.series[o].data[x].strokeColor&&(w.pointStrokeColor=r.config.series[o].data[x].strokeColor)),a&&(w.pSize=a),(s=d.drawMarker(h.x[p],h.y[p],w)).attr("rel",x),s.attr("j",x),s.attr("index",t),s.node.setAttribute("default-marker-size",w.pSize);var S=new Q(this.ctx);S.setSelectionFilter(s,t,x),this.addEvents(s),c&&c.add(s)}else r.globals.pointsArray[t]===void 0&&(r.globals.pointsArray[t]=[]),r.globals.pointsArray[t].push([h.x[p],h.y[p]])}return c}},{key:"getMarkerConfig",value:function(e){var t=e.cssClass,i=e.seriesIndex,a=e.dataPointIndex,s=a===void 0?null:a,n=e.finishRadius,r=n===void 0?null:n,o=this.w,h=this.getMarkerStyle(i),c=o.globals.markers.size[i],d=o.config.markers;return s!==null&&d.discrete.length&&d.discrete.map(function(g){g.seriesIndex===i&&g.dataPointIndex===s&&(h.pointStrokeColor=g.strokeColor,h.pointFillColor=g.fillColor,c=g.size,h.pointShape=g.shape)}),{pSize:r===null?c:r,pRadius:d.radius,width:Array.isArray(d.width)?d.width[i]:d.width,height:Array.isArray(d.height)?d.height[i]:d.height,pointStrokeWidth:Array.isArray(d.strokeWidth)?d.strokeWidth[i]:d.strokeWidth,pointStrokeColor:h.pointStrokeColor,pointFillColor:h.pointFillColor,shape:h.pointShape||(Array.isArray(d.shape)?d.shape[i]:d.shape),class:t,pointStrokeOpacity:Array.isArray(d.strokeOpacity)?d.strokeOpacity[i]:d.strokeOpacity,pointStrokeDashArray:Array.isArray(d.strokeDashArray)?d.strokeDashArray[i]:d.strokeDashArray,pointFillOpacity:Array.isArray(d.fillOpacity)?d.fillOpacity[i]:d.fillOpacity,seriesIndex:i}}},{key:"addEvents",value:function(e){var t=this.w,i=new Y(this.ctx);e.node.addEventListener("mouseenter",i.pathMouseEnter.bind(this.ctx,e)),e.node.addEventListener("mouseleave",i.pathMouseLeave.bind(this.ctx,e)),e.node.addEventListener("mousedown",i.pathMouseDown.bind(this.ctx,e)),e.node.addEventListener("click",t.config.markers.onClick),e.node.addEventListener("dblclick",t.config.markers.onDblClick),e.node.addEventListener("touchstart",i.pathMouseDown.bind(this.ctx,e),{passive:!0})}},{key:"getMarkerStyle",value:function(e){var t=this.w,i=t.globals.markers.colors,a=t.config.markers.strokeColor||t.config.markers.strokeColors;return{pointStrokeColor:Array.isArray(a)?a[e]:a,pointFillColor:Array.isArray(i)?i[e]:i}}}]),v}(),Ue=function(){function v(e){O(this,v),this.ctx=e,this.w=e.w,this.initialAnim=this.w.config.chart.animations.enabled,this.dynamicAnim=this.initialAnim&&this.w.config.chart.animations.dynamicAnimation.enabled}return E(v,[{key:"draw",value:function(e,t,i){var a=this.w,s=new Y(this.ctx),n=i.realIndex,r=i.pointsPos,o=i.zRatio,h=i.elParent,c=s.group({class:"apexcharts-series-markers apexcharts-series-".concat(a.config.chart.type)});if(c.attr("clip-path","url(#gridRectMarkerMask".concat(a.globals.cuid,")")),Array.isArray(r.x))for(var d=0;dy.maxBubbleRadius&&(f=y.maxBubbleRadius)}a.config.chart.animations.enabled||(x=f);var w=r.x[d],S=r.y[d];if(x=x||0,S!==null&&a.globals.series[n][g]!==void 0||(p=!1),p){var k=this.drawPoint(w,S,x,f,n,g,t);c.add(k)}h.add(c)}}},{key:"drawPoint",value:function(e,t,i,a,s,n,r){var o=this.w,h=s,c=new pe(this.ctx),d=new Q(this.ctx),g=new ne(this.ctx),p=new ke(this.ctx),x=new Y(this.ctx),f=p.getMarkerConfig({cssClass:"apexcharts-marker",seriesIndex:h,dataPointIndex:n,finishRadius:o.config.chart.type==="bubble"||o.globals.comboCharts&&o.config.series[s]&&o.config.series[s].type==="bubble"?a:null});a=f.pSize;var y,w=g.fillPath({seriesNumber:s,dataPointIndex:n,color:f.pointFillColor,patternUnits:"objectBoundingBox",value:o.globals.series[s][r]});if(f.shape==="circle"?y=x.drawCircle(i):f.shape!=="square"&&f.shape!=="rect"||(y=x.drawRect(0,0,f.width-f.pointStrokeWidth/2,f.height-f.pointStrokeWidth/2,f.pRadius)),o.config.series[h].data[n]&&o.config.series[h].data[n].fillColor&&(w=o.config.series[h].data[n].fillColor),y.attr({x:e-f.width/2-f.pointStrokeWidth/2,y:t-f.height/2-f.pointStrokeWidth/2,cx:e,cy:t,fill:w,"fill-opacity":f.pointFillOpacity,stroke:f.pointStrokeColor,r:a,"stroke-width":f.pointStrokeWidth,"stroke-dasharray":f.pointStrokeDashArray,"stroke-opacity":f.pointStrokeOpacity}),o.config.chart.dropShadow.enabled){var S=o.config.chart.dropShadow;d.dropShadow(y,S,s)}if(!this.initialAnim||o.globals.dataChanged||o.globals.resized)o.globals.animationEnded=!0;else{var k=o.config.chart.animations.speed;c.animateMarker(y,0,f.shape==="circle"?a:{width:f.width,height:f.height},k,o.globals.easing,function(){window.setTimeout(function(){c.animationCompleted(y)},100)})}if(o.globals.dataChanged&&f.shape==="circle")if(this.dynamicAnim){var l,u,m,b,A=o.config.chart.animations.dynamicAnimation.speed;(b=o.globals.previousPaths[s]&&o.globals.previousPaths[s][r])!=null&&(l=b.x,u=b.y,m=b.r!==void 0?b.r:a);for(var P=0;Po.globals.gridHeight+g&&(t=o.globals.gridHeight+g/2),o.globals.dataLabelsRects[a]===void 0&&(o.globals.dataLabelsRects[a]=[]),o.globals.dataLabelsRects[a].push({x:e,y:t,width:d,height:g});var p=o.globals.dataLabelsRects[a].length-2,x=o.globals.lastDrawnDataLabelsIndexes[a]!==void 0?o.globals.lastDrawnDataLabelsIndexes[a][o.globals.lastDrawnDataLabelsIndexes[a].length-1]:0;if(o.globals.dataLabelsRects[a][p]!==void 0){var f=o.globals.dataLabelsRects[a][x];(e>f.x+f.width+2||t>f.y+f.height+2||e+dt.globals.gridWidth+y.textRects.width+10)&&(o="");var w=t.globals.dataLabels.style.colors[n];((t.config.chart.type==="bar"||t.config.chart.type==="rangeBar")&&t.config.plotOptions.bar.distributed||t.config.dataLabels.distributed)&&(w=t.globals.dataLabels.style.colors[r]),typeof w=="function"&&(w=w({series:t.globals.series,seriesIndex:n,dataPointIndex:r,w:t})),p&&(w=p);var S=g.offsetX,k=g.offsetY;if(t.config.chart.type!=="bar"&&t.config.chart.type!=="rangeBar"||(S=0,k=0),y.drawnextLabel){var l=i.drawText({width:100,height:parseInt(g.style.fontSize,10),x:a+S,y:s+k,foreColor:w,textAnchor:h||g.textAnchor,text:o,fontSize:c||g.style.fontSize,fontFamily:g.style.fontFamily,fontWeight:g.style.fontWeight||"normal"});if(l.attr({class:"apexcharts-datalabel",cx:a,cy:s}),g.dropShadow.enabled){var u=g.dropShadow;new Q(this.ctx).dropShadow(l,u)}d.add(l),t.globals.lastDrawnDataLabelsIndexes[n]===void 0&&(t.globals.lastDrawnDataLabelsIndexes[n]=[]),t.globals.lastDrawnDataLabelsIndexes[n].push(r)}}}},{key:"addBackgroundToDataLabel",value:function(e,t){var i=this.w,a=i.config.dataLabels.background,s=a.padding,n=a.padding/2,r=t.width,o=t.height,h=new Y(this.ctx).drawRect(t.x-s,t.y-n/2,r+2*s,o+n,a.borderRadius,i.config.chart.background==="transparent"?"#fff":i.config.chart.background,a.opacity,a.borderWidth,a.borderColor);return a.dropShadow.enabled&&new Q(this.ctx).dropShadow(h,a.dropShadow),h}},{key:"dataLabelsBackground",value:function(){var e=this.w;if(e.config.chart.type!=="bubble")for(var t=e.globals.dom.baseEl.querySelectorAll(".apexcharts-datalabels text"),i=0;i0&&arguments[0]!==void 0)||arguments[0],t=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],i=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],a=this.w,s=L.clone(a.globals.initialSeries);a.globals.previousPaths=[],i?(a.globals.collapsedSeries=[],a.globals.ancillaryCollapsedSeries=[],a.globals.collapsedSeriesIndices=[],a.globals.ancillaryCollapsedSeriesIndices=[]):s=this.emptyCollapsedSeries(s),a.config.series=s,e&&(t&&(a.globals.zoomed=!1,this.ctx.updateHelpers.revertDefaultAxisMinMax()),this.ctx.updateHelpers._updateSeries(s,a.config.chart.animations.dynamicAnimation.enabled))}},{key:"emptyCollapsedSeries",value:function(e){for(var t=this.w,i=0;i-1&&(e[i].data=[]);return e}},{key:"toggleSeriesOnHover",value:function(e,t){var i=this.w;t||(t=e.target);var a=i.globals.dom.baseEl.querySelectorAll(".apexcharts-series, .apexcharts-datalabels");if(e.type==="mousemove"){var s=parseInt(t.getAttribute("rel"),10)-1,n=null,r=null;i.globals.axisCharts||i.config.chart.type==="radialBar"?i.globals.axisCharts?(n=i.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(s,"']")),r=i.globals.dom.baseEl.querySelector(".apexcharts-datalabels[data\\:realIndex='".concat(s,"']"))):n=i.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(s+1,"']")):n=i.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(s+1,"'] path"));for(var o=0;o=o.from&&c<=o.to&&s[h].classList.remove(i.legendInactiveClass)}}(a.config.plotOptions.heatmap.colorScale.ranges[r])}else e.type==="mouseout"&&n("remove")}},{key:"getActiveConfigSeriesIndex",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"asc",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=this.w,a=0;if(i.config.series.length>1){for(var s=i.config.series.map(function(r,o){return r.data&&r.data.length>0&&i.globals.collapsedSeriesIndices.indexOf(o)===-1&&(!i.globals.comboCharts||t.length===0||t.length&&t.indexOf(i.config.series[o].type)>-1)?o:-1}),n=e==="asc"?0:s.length-1;e==="asc"?n=0;e==="asc"?n++:n--)if(s[n]!==-1){a=s[n];break}}return a}},{key:"getBarSeriesIndices",value:function(){return this.w.globals.comboCharts?this.w.config.series.map(function(e,t){return e.type==="bar"||e.type==="column"?t:-1}).filter(function(e){return e!==-1}):this.w.config.series.map(function(e,t){return t})}},{key:"getPreviousPaths",value:function(){var e=this.w;function t(n,r,o){for(var h=n[r].childNodes,c={type:o,paths:[],realIndex:n[r].getAttribute("data:realIndex")},d=0;d0)for(var a=function(n){for(var r=e.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(e.config.chart.type," .apexcharts-series[data\\:realIndex='").concat(n,"'] rect")),o=[],h=function(d){var g=function(x){return r[d].getAttribute(x)},p={x:parseFloat(g("x")),y:parseFloat(g("y")),width:parseFloat(g("width")),height:parseFloat(g("height"))};o.push({rect:p,color:r[d].getAttribute("color")})},c=0;c0)for(var a=0;a0?t:[]});return e}}]),v}(),qe=function(){function v(e){O(this,v),this.ctx=e,this.w=e.w,this.twoDSeries=[],this.threeDSeries=[],this.twoDSeriesX=[],this.seriesGoals=[],this.coreUtils=new U(this.ctx)}return E(v,[{key:"isMultiFormat",value:function(){return this.isFormatXY()||this.isFormat2DArray()}},{key:"isFormatXY",value:function(){var e=this.w.config.series.slice(),t=new re(this.ctx);if(this.activeSeriesIndex=t.getActiveConfigSeriesIndex(),e[this.activeSeriesIndex].data!==void 0&&e[this.activeSeriesIndex].data.length>0&&e[this.activeSeriesIndex].data[0]!==null&&e[this.activeSeriesIndex].data[0].x!==void 0&&e[this.activeSeriesIndex].data[0]!==null)return!0}},{key:"isFormat2DArray",value:function(){var e=this.w.config.series.slice(),t=new re(this.ctx);if(this.activeSeriesIndex=t.getActiveConfigSeriesIndex(),e[this.activeSeriesIndex].data!==void 0&&e[this.activeSeriesIndex].data.length>0&&e[this.activeSeriesIndex].data[0]!==void 0&&e[this.activeSeriesIndex].data[0]!==null&&e[this.activeSeriesIndex].data[0].constructor===Array)return!0}},{key:"handleFormat2DArray",value:function(e,t){for(var i=this.w.config,a=this.w.globals,s=i.chart.type==="boxPlot"||i.series[t].type==="boxPlot",n=0;n=5?this.twoDSeries.push(L.parseNumber(e[t].data[n][4])):this.twoDSeries.push(L.parseNumber(e[t].data[n][1])),a.dataFormatXNumeric=!0),i.xaxis.type==="datetime"){var r=new Date(e[t].data[n][0]);r=new Date(r).getTime(),this.twoDSeriesX.push(r)}else this.twoDSeriesX.push(e[t].data[n][0]);for(var o=0;o-1&&(n=this.activeSeriesIndex);for(var r=0;r1&&arguments[1]!==void 0?arguments[1]:this.ctx,a=this.w.config,s=this.w.globals,n=new J(i),r=a.labels.length>0?a.labels.slice():a.xaxis.categories.slice();s.isRangeBar=a.chart.type==="rangeBar"&&s.isBarHorizontal,s.hasGroups=a.xaxis.type==="category"&&a.xaxis.group.groups.length>0,s.hasGroups&&(s.groups=a.xaxis.group.groups);for(var o=function(){for(var d=0;d0&&(this.twoDSeriesX=r,s.seriesX.push(this.twoDSeriesX))),s.labels.push(this.twoDSeriesX);var c=e[h].data.map(function(d){return L.parseNumber(d)});s.series.push(c)}s.seriesZ.push(this.threeDSeries),e[h].name!==void 0?s.seriesNames.push(e[h].name):s.seriesNames.push("series-"+parseInt(h+1,10)),e[h].color!==void 0?s.seriesColors.push(e[h].color):s.seriesColors.push(void 0)}return this.w}},{key:"parseDataNonAxisCharts",value:function(e){var t=this.w.globals,i=this.w.config;t.series=e.slice(),t.seriesNames=i.labels.slice();for(var a=0;a0?i.labels=t.xaxis.categories:t.labels.length>0?i.labels=t.labels.slice():this.fallbackToCategory?(i.labels=i.labels[0],i.seriesRange.length&&(i.seriesRange.map(function(a){a.forEach(function(s){i.labels.indexOf(s.x)<0&&s.x&&i.labels.push(s.x)})}),i.labels=i.labels.filter(function(a,s,n){return n.indexOf(a)===s})),t.xaxis.convertedCatToNumeric&&(new ye(t).convertCatToNumericXaxis(t,this.ctx,i.seriesX[0]),this._generateExternalLabels(e))):this._generateExternalLabels(e)}},{key:"_generateExternalLabels",value:function(e){var t=this.w.globals,i=this.w.config,a=[];if(t.axisCharts){if(t.series.length>0)if(this.isFormatXY())for(var s=i.series.map(function(d,g){return d.data.filter(function(p,x,f){return f.findIndex(function(y){return y.x===p.x})===x})}),n=s.reduce(function(d,g,p,x){return x[d].length>g.length?d:p},0),r=0;r4&&arguments[4]!==void 0?arguments[4]:[],n=arguments.length>5&&arguments[5]!==void 0?arguments[5]:"12px",r=!(arguments.length>6&&arguments[6]!==void 0)||arguments[6],o=this.w,h=e[a]===void 0?"":e[a],c=h,d=o.globals.xLabelFormatter,g=o.config.xaxis.labels.formatter,p=!1,x=new ve(this.ctx),f=h;r&&(c=x.xLabelFormat(d,h,f,{i:a,dateFormatter:new J(this.ctx).formatDate,w:o}),g!==void 0&&(c=g(h,e[a],{i:a,dateFormatter:new J(this.ctx).formatDate,w:o})));var y=function(l){var u=null;return t.forEach(function(m){m.unit==="month"?u="year":m.unit==="day"?u="month":m.unit==="hour"?u="day":m.unit==="minute"&&(u="hour")}),u===l};t.length>0?(p=y(t[a].unit),i=t[a].position,c=t[a].value):o.config.xaxis.type==="datetime"&&g===void 0&&(c=""),c===void 0&&(c=""),c=Array.isArray(c)?c:c.toString();var w=new Y(this.ctx),S={};S=o.globals.rotateXLabels&&r?w.getTextRects(c,parseInt(n,10),null,"rotate(".concat(o.config.xaxis.labels.rotate," 0 0)"),!1):w.getTextRects(c,parseInt(n,10));var k=!o.config.xaxis.labels.showDuplicates&&this.ctx.timeScale;return!Array.isArray(c)&&(c.indexOf("NaN")===0||c.toLowerCase().indexOf("invalid")===0||c.toLowerCase().indexOf("infinity")>=0||s.indexOf(c)>=0&&k)&&(c=""),{x:i,text:c,textRect:S,isBold:p}}},{key:"checkLabelBasedOnTickamount",value:function(e,t,i){var a=this.w,s=a.config.xaxis.tickAmount;return s==="dataPoints"&&(s=Math.round(a.globals.gridWidth/120)),s>i||e%Math.round(i/(s+1))==0||(t.text=""),t}},{key:"checkForOverflowingLabels",value:function(e,t,i,a,s){var n=this.w;if(e===0&&n.globals.skipFirstTimelinelabel&&(t.text=""),e===i-1&&n.globals.skipLastTimelinelabel&&(t.text=""),n.config.xaxis.labels.hideOverlappingLabels&&a.length>0){var r=s[s.length-1];t.x0){o.config.yaxis[s].opposite===!0&&(e+=a.width);for(var d=t;d>=0;d--){var g=c+t/10+o.config.yaxis[s].labels.offsetY-1;o.globals.isBarHorizontal&&(g=n*d),o.config.chart.type==="heatmap"&&(g+=n/2);var p=h.drawLine(e+i.offsetX-a.width+a.offsetX,g+a.offsetY,e+i.offsetX+a.offsetX,g+a.offsetY,a.color);r.add(p),c+=n}}}}]),v}(),Le=function(){function v(e){O(this,v),this.ctx=e,this.w=e.w}return E(v,[{key:"scaleSvgNode",value:function(e,t){var i=parseFloat(e.getAttributeNS(null,"width")),a=parseFloat(e.getAttributeNS(null,"height"));e.setAttributeNS(null,"width",i*t),e.setAttributeNS(null,"height",a*t),e.setAttributeNS(null,"viewBox","0 0 "+i+" "+a)}},{key:"fixSvgStringForIe11",value:function(e){if(!L.isIE11())return e.replace(/ /g," ");var t=0,i=e.replace(/xmlns="http:\/\/www.w3.org\/2000\/svg"/g,function(a){return++t===2?'xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svgjs="http://svgjs.dev"':a});return i=(i=i.replace(/xmlns:NS\d+=""/g,"")).replace(/NS\d+:(\w+:\w+=")/g,"$1")}},{key:"getSvgString",value:function(e){e==null&&(e=1);var t=this.w.globals.dom.Paper.svg();if(e!==1){var i=this.w.globals.dom.Paper.node.cloneNode(!0);this.scaleSvgNode(i,e),t=new XMLSerializer().serializeToString(i)}return this.fixSvgStringForIe11(t)}},{key:"cleanup",value:function(){var e=this.w,t=e.globals.dom.baseEl.getElementsByClassName("apexcharts-xcrosshairs"),i=e.globals.dom.baseEl.getElementsByClassName("apexcharts-ycrosshairs"),a=e.globals.dom.baseEl.querySelectorAll(".apexcharts-zoom-rect, .apexcharts-selection-rect");Array.prototype.forEach.call(a,function(s){s.setAttribute("width",0)}),t&&t[0]&&(t[0].setAttribute("x",-500),t[0].setAttribute("x1",-500),t[0].setAttribute("x2",-500)),i&&i[0]&&(i[0].setAttribute("y",-100),i[0].setAttribute("y1",-100),i[0].setAttribute("y2",-100))}},{key:"svgUrl",value:function(){this.cleanup();var e=this.getSvgString(),t=new Blob([e],{type:"image/svg+xml;charset=utf-8"});return URL.createObjectURL(t)}},{key:"dataURI",value:function(e){var t=this;return new Promise(function(i){var a=t.w,s=e?e.scale||e.width/a.globals.svgWidth:1;t.cleanup();var n=document.createElement("canvas");n.width=a.globals.svgWidth*s,n.height=parseInt(a.globals.dom.elWrap.style.height,10)*s;var r=a.config.chart.background==="transparent"?"#fff":a.config.chart.background,o=n.getContext("2d");o.fillStyle=r,o.fillRect(0,0,n.width*s,n.height*s);var h=t.getSvgString(s);if(window.canvg&&L.isIE11()){var c=window.canvg.Canvg.fromString(o,h,{ignoreClear:!0,ignoreDimensions:!0});c.start();var d=n.msToBlob();c.stop(),i({blob:d})}else{var g="data:image/svg+xml,"+encodeURIComponent(h),p=new Image;p.crossOrigin="anonymous",p.onload=function(){if(o.drawImage(p,0,0),n.msToBlob){var x=n.msToBlob();i({blob:x})}else{var f=n.toDataURL("image/png");i({imgURI:f})}},p.src=g}})}},{key:"exportToSVG",value:function(){this.triggerDownload(this.svgUrl(),this.w.config.chart.toolbar.export.svg.filename,".svg")}},{key:"exportToPng",value:function(){var e=this;this.dataURI().then(function(t){var i=t.imgURI,a=t.blob;a?navigator.msSaveOrOpenBlob(a,e.w.globals.chartID+".png"):e.triggerDownload(i,e.w.config.chart.toolbar.export.png.filename,".png")})}},{key:"exportToCSV",value:function(e){var t=this,i=e.series,a=e.fileName,s=e.columnDelimiter,n=s===void 0?",":s,r=e.lineDelimiter,o=r===void 0?` +`:r,h=this.w;i||(i=h.config.series);var c=[],d=[],g="",p=h.globals.series.map(function(k,l){return h.globals.collapsedSeriesIndices.indexOf(l)===-1?k:[]}),x=Math.max.apply(Math,j(i.map(function(k){return k.data?k.data.length:0}))),f=new qe(this.ctx),y=new ce(this.ctx),w=function(k){var l="";if(h.globals.axisCharts){if(h.config.xaxis.type==="category"||h.config.xaxis.convertedCatToNumeric)if(h.globals.isBarHorizontal){var u=h.globals.yLabelFormatters[0],m=new re(t.ctx).getActiveConfigSeriesIndex();l=u(h.globals.labels[k],{seriesIndex:m,dataPointIndex:k,w:h})}else l=y.getLabel(h.globals.labels,h.globals.timescaleLabels,0,k).text;h.config.xaxis.type==="datetime"&&(h.config.xaxis.categories.length?l=h.config.xaxis.categories[k]:h.config.labels.length&&(l=h.config.labels[k]))}else l=h.config.labels[k];return Array.isArray(l)&&(l=l.join(" ")),L.isNumber(l)?l:l.split(n).join("")},S=function(k,l){if(c.length&&l===0&&d.push(c.join(n)),k.data){k.data=k.data.length&&k.data||j(Array(x)).map(function(){return""});for(var u=0;u=10?h.config.chart.toolbar.export.csv.dateFormatter(m):L.isNumber(m)?m:m.split(n).join("")));for(var b=0;b0&&!i.globals.isBarHorizontal&&(this.xaxisLabels=i.globals.timescaleLabels.slice()),i.config.xaxis.overwriteCategories&&(this.xaxisLabels=i.config.xaxis.overwriteCategories),this.drawnLabels=[],this.drawnLabelsRects=[],i.config.xaxis.position==="top"?this.offY=0:this.offY=i.globals.gridHeight+1,this.offY=this.offY+i.config.xaxis.axisBorder.offsetY,this.isCategoryBarHorizontal=i.config.chart.type==="bar"&&i.config.plotOptions.bar.horizontal,this.xaxisFontSize=i.config.xaxis.labels.style.fontSize,this.xaxisFontFamily=i.config.xaxis.labels.style.fontFamily,this.xaxisForeColors=i.config.xaxis.labels.style.colors,this.xaxisBorderWidth=i.config.xaxis.axisBorder.width,this.isCategoryBarHorizontal&&(this.xaxisBorderWidth=i.config.yaxis[0].axisBorder.width.toString()),this.xaxisBorderWidth.indexOf("%")>-1?this.xaxisBorderWidth=i.globals.gridWidth*parseInt(this.xaxisBorderWidth,10)/100:this.xaxisBorderWidth=parseInt(this.xaxisBorderWidth,10),this.xaxisBorderHeight=i.config.xaxis.axisBorder.height,this.yaxis=i.config.yaxis[0]}return E(v,[{key:"drawXaxis",value:function(){var e=this.w,t=new Y(this.ctx),i=t.group({class:"apexcharts-xaxis",transform:"translate(".concat(e.config.xaxis.offsetX,", ").concat(e.config.xaxis.offsetY,")")}),a=t.group({class:"apexcharts-xaxis-texts-g",transform:"translate(".concat(e.globals.translateXAxisX,", ").concat(e.globals.translateXAxisY,")")});i.add(a);for(var s=[],n=0;n6&&arguments[6]!==void 0?arguments[6]:{},c=[],d=[],g=this.w,p=h.xaxisFontSize||this.xaxisFontSize,x=h.xaxisFontFamily||this.xaxisFontFamily,f=h.xaxisForeColors||this.xaxisForeColors,y=h.fontWeight||g.config.xaxis.labels.style.fontWeight,w=h.cssClass||g.config.xaxis.labels.style.cssClass,S=g.globals.padHorizontal,k=a.length,l=g.config.xaxis.type==="category"?g.globals.dataPoints:k;if(l===0&&k>l&&(l=k),s){var u=l>1?l-1:l;r=g.globals.gridWidth/u,S=S+n(0,r)/2+g.config.xaxis.labels.offsetX}else r=g.globals.gridWidth/l,S=S+n(0,r)+g.config.xaxis.labels.offsetX;for(var m=function(A){var P=S-n(A,r)/2+g.config.xaxis.labels.offsetX;A===0&&k===1&&r/2===S&&l===1&&(P=g.globals.gridWidth/2);var C=o.axesUtils.getLabel(a,g.globals.timescaleLabels,P,A,c,p,e),I=28;if(g.globals.rotateXLabels&&e&&(I=22),g.config.xaxis.title.text&&g.config.xaxis.position==="top"&&(I+=parseFloat(g.config.xaxis.title.style.fontSize)+2),e||(I=I+parseFloat(p)+(g.globals.xAxisLabelsHeight-g.globals.xAxisGroupLabelsHeight)+(g.globals.rotateXLabels?10:0)),C=g.config.xaxis.tickAmount!==void 0&&g.config.xaxis.tickAmount!=="dataPoints"&&g.config.xaxis.type!=="datetime"?o.axesUtils.checkLabelBasedOnTickamount(A,C,k):o.axesUtils.checkForOverflowingLabels(A,C,k,c,d),g.config.xaxis.labels.show){var T=t.drawText({x:C.x,y:o.offY+g.config.xaxis.labels.offsetY+I-(g.config.xaxis.position==="top"?g.globals.xAxisHeight+g.config.xaxis.axisTicks.height-2:0),text:C.text,textAnchor:"middle",fontWeight:C.isBold?600:y,fontSize:p,fontFamily:x,foreColor:Array.isArray(f)?e&&g.config.xaxis.convertedCatToNumeric?f[g.globals.minX+A-1]:f[A]:f,isPlainText:!1,cssClass:(e?"apexcharts-xaxis-label ":"apexcharts-xaxis-group-label ")+w});if(i.add(T),T.on("click",function(R){if(typeof g.config.chart.events.xAxisLabelClick=="function"){var N=Object.assign({},g,{labelIndex:A});g.config.chart.events.xAxisLabelClick(R,o.ctx,N)}}),e){var D=document.createElementNS(g.globals.SVGNS,"title");D.textContent=Array.isArray(C.text)?C.text.join(" "):C.text,T.node.appendChild(D),C.text!==""&&(c.push(C.text),d.push(C))}}Aa.globals.gridWidth)){var n=this.offY+a.config.xaxis.axisTicks.offsetY;if(t=t+n+a.config.xaxis.axisTicks.height,a.config.xaxis.position==="top"&&(t=n-a.config.xaxis.axisTicks.height),a.config.xaxis.axisTicks.show){var r=new Y(this.ctx).drawLine(e+a.config.xaxis.axisTicks.offsetX,n+a.config.xaxis.offsetY,s+a.config.xaxis.axisTicks.offsetX,t+a.config.xaxis.offsetY,a.config.xaxis.axisTicks.color);i.add(r),r.node.classList.add("apexcharts-xaxis-tick")}}}},{key:"getXAxisTicksPositions",value:function(){var e=this.w,t=[],i=this.xaxisLabels.length,a=e.globals.padHorizontal;if(e.globals.timescaleLabels.length>0)for(var s=0;s0){var c=s[s.length-1].getBBox(),d=s[0].getBBox();c.x<-20&&s[s.length-1].parentNode.removeChild(s[s.length-1]),d.x+d.width>e.globals.gridWidth&&!e.globals.isBarHorizontal&&s[0].parentNode.removeChild(s[0]);for(var g=0;g0&&(this.xaxisLabels=t.globals.timescaleLabels.slice())}return E(v,[{key:"drawGridArea",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,t=this.w,i=new Y(this.ctx);e===null&&(e=i.group({class:"apexcharts-grid"}));var a=i.drawLine(t.globals.padHorizontal,1,t.globals.padHorizontal,t.globals.gridHeight,"transparent"),s=i.drawLine(t.globals.padHorizontal,t.globals.gridHeight,t.globals.gridWidth,t.globals.gridHeight,"transparent");return e.add(s),e.add(a),e}},{key:"drawGrid",value:function(){var e=null;return this.w.globals.axisCharts&&(e=this.renderGrid(),this.drawGridArea(e.el)),e}},{key:"createGridMask",value:function(){var e=this.w,t=e.globals,i=new Y(this.ctx),a=Array.isArray(e.config.stroke.width)?0:e.config.stroke.width;if(Array.isArray(e.config.stroke.width)){var s=0;e.config.stroke.width.forEach(function(d){s=Math.max(s,d)}),a=s}t.dom.elGridRectMask=document.createElementNS(t.SVGNS,"clipPath"),t.dom.elGridRectMask.setAttribute("id","gridRectMask".concat(t.cuid)),t.dom.elGridRectMarkerMask=document.createElementNS(t.SVGNS,"clipPath"),t.dom.elGridRectMarkerMask.setAttribute("id","gridRectMarkerMask".concat(t.cuid)),t.dom.elForecastMask=document.createElementNS(t.SVGNS,"clipPath"),t.dom.elForecastMask.setAttribute("id","forecastMask".concat(t.cuid)),t.dom.elNonForecastMask=document.createElementNS(t.SVGNS,"clipPath"),t.dom.elNonForecastMask.setAttribute("id","nonForecastMask".concat(t.cuid));var n=e.config.chart.type,r=0,o=0;(n==="bar"||n==="rangeBar"||n==="candlestick"||n==="boxPlot"||e.globals.comboBarCount>0)&&e.globals.isXNumeric&&!e.globals.isBarHorizontal&&(r=e.config.grid.padding.left,o=e.config.grid.padding.right,t.barPadForNumericAxis>r&&(r=t.barPadForNumericAxis,o=t.barPadForNumericAxis)),t.dom.elGridRect=i.drawRect(-a/2-r-2,-a/2,t.gridWidth+a+o+r+4,t.gridHeight+a,0,"#fff");var h=e.globals.markers.largestSize+1;t.dom.elGridRectMarker=i.drawRect(2*-h,2*-h,t.gridWidth+4*h,t.gridHeight+4*h,0,"#fff"),t.dom.elGridRectMask.appendChild(t.dom.elGridRect.node),t.dom.elGridRectMarkerMask.appendChild(t.dom.elGridRectMarker.node);var c=t.dom.baseEl.querySelector("defs");c.appendChild(t.dom.elGridRectMask),c.appendChild(t.dom.elForecastMask),c.appendChild(t.dom.elNonForecastMask),c.appendChild(t.dom.elGridRectMarkerMask)}},{key:"_drawGridLines",value:function(e){var t=e.i,i=e.x1,a=e.y1,s=e.x2,n=e.y2,r=e.xCount,o=e.parent,h=this.w;if(!(t===0&&h.globals.skipFirstTimelinelabel||t===r-1&&h.globals.skipLastTimelinelabel&&!h.config.xaxis.labels.formatter||h.config.chart.type==="radar")){h.config.grid.xaxis.lines.show&&this._drawGridLine({i:t,x1:i,y1:a,x2:s,y2:n,xCount:r,parent:o});var c=0;if(h.globals.hasGroups&&h.config.xaxis.tickPlacement==="between"){var d=h.globals.groups;if(d){for(var g=0,p=0;g2));s++);return!e.globals.isBarHorizontal||this.isRangeBar?(i=this.xaxisLabels.length,this.isRangeBar&&(a=e.globals.labels.length,e.config.xaxis.tickAmount&&e.config.xaxis.labels.formatter&&(i=e.config.xaxis.tickAmount)),this._drawXYLines({xCount:i,tickAmount:a})):(i=a,a=e.globals.xTickAmount,this._drawInvertedXYLines({xCount:i,tickAmount:a})),this.drawGridBands(i,a),{el:this.elg,elGridBorders:this.elGridBorders,xAxisTickWidth:e.globals.gridWidth/i}}},{key:"drawGridBands",value:function(e,t){var i=this.w;if(i.config.grid.row.colors!==void 0&&i.config.grid.row.colors.length>0)for(var a=0,s=i.globals.gridHeight/t,n=i.globals.gridWidth,r=0,o=0;r=i.config.grid.row.colors.length&&(o=0),this._drawGridBandRect({c:o,x1:0,y1:a,x2:n,y2:s,type:"row"}),a+=i.globals.gridHeight/t;if(i.config.grid.column.colors!==void 0&&i.config.grid.column.colors.length>0)for(var h=i.globals.isBarHorizontal||i.config.xaxis.type!=="category"&&!i.config.xaxis.convertedCatToNumeric?e:e-1,c=i.globals.padHorizontal,d=i.globals.padHorizontal+i.globals.gridWidth/h,g=i.globals.gridHeight,p=0,x=0;p=i.config.grid.column.colors.length&&(x=0),this._drawGridBandRect({c:x,x1:c,y1:0,x2:d,y2:g,type:"column"}),c+=i.globals.gridWidth/h}}]),v}(),xe=function(){function v(e){O(this,v),this.ctx=e,this.w=e.w}return E(v,[{key:"niceScale",value:function(e,t){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:10,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,s=arguments.length>4?arguments[4]:void 0,n=this.w,r=Math.abs(t-e);if((i=this._adjustTicksForSmallRange(i,a,r))==="dataPoints"&&(i=n.globals.dataPoints-1),e===Number.MIN_VALUE&&t===0||!L.isNumber(e)&&!L.isNumber(t)||e===Number.MIN_VALUE&&t===-Number.MAX_VALUE){e=0,t=i;var o=this.linearScale(e,t,i);return o}e>t?(console.warn("axis.min cannot be greater than axis.max"),t=e+.1):e===t&&(e=e===0?0:e-.5,t=t===0?2:t+.5);var h=[];r<1&&s&&(n.config.chart.type==="candlestick"||n.config.series[a].type==="candlestick"||n.config.chart.type==="boxPlot"||n.config.series[a].type==="boxPlot"||n.globals.isRangeData)&&(t*=1.01);var c=i+1;c<2?c=2:c>2&&(c-=2);var d=r/c,g=Math.floor(L.log10(d)),p=Math.pow(10,g),x=Math.round(d/p);x<1&&(x=1);var f=x*p,y=f*Math.floor(e/f),w=f*Math.ceil(t/f),S=y;if(s&&r>2){for(;h.push(S),!((S+=f)>w););return{result:h,niceMin:h[0],niceMax:h[h.length-1]}}var k=e;(h=[]).push(k);for(var l=Math.abs(t-e)/i,u=0;u<=i;u++)k+=l,h.push(k);return h[h.length-2]>=t&&h.pop(),{result:h,niceMin:h[0],niceMax:h[h.length-1]}}},{key:"linearScale",value:function(e,t){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:10,a=arguments.length>3?arguments[3]:void 0,s=Math.abs(t-e);(i=this._adjustTicksForSmallRange(i,a,s))==="dataPoints"&&(i=this.w.globals.dataPoints-1);var n=s/i;i===Number.MAX_VALUE&&(i=10,n=1);for(var r=[],o=e;i>=0;)r.push(o),o+=n,i-=1;return{result:r,niceMin:r[0],niceMax:r[r.length-1]}}},{key:"logarithmicScaleNice",value:function(e,t,i){t<=0&&(t=Math.max(e,i)),e<=0&&(e=Math.min(t,i));for(var a=[],s=Math.ceil(Math.log(t)/Math.log(i)+1),n=Math.floor(Math.log(e)/Math.log(i));n5)a.allSeriesCollapsed=!1,a.yAxisScale[e]=this.logarithmicScale(t,i,n.logBase),a.yAxisScale[e]=n.forceNiceScale?this.logarithmicScaleNice(t,i,n.logBase):this.logarithmicScale(t,i,n.logBase);else if(i!==-Number.MAX_VALUE&&L.isNumber(i))if(a.allSeriesCollapsed=!1,n.min===void 0&&n.max===void 0||n.forceNiceScale){var o=s.yaxis[e].max===void 0&&s.yaxis[e].min===void 0||s.yaxis[e].forceNiceScale;a.yAxisScale[e]=this.niceScale(t,i,n.tickAmount?n.tickAmount:r<5&&r>1?r+1:5,e,o)}else a.yAxisScale[e]=this.linearScale(t,i,n.tickAmount,e);else a.yAxisScale[e]=this.linearScale(0,5,5)}},{key:"setXScale",value:function(e,t){var i=this.w,a=i.globals,s=i.config.xaxis,n=Math.abs(t-e);return t!==-Number.MAX_VALUE&&L.isNumber(t)?a.xAxisScale=this.linearScale(e,t,s.tickAmount?s.tickAmount:n<5&&n>1?n+1:5,0):a.xAxisScale=this.linearScale(0,5,5),a.xAxisScale}},{key:"setMultipleYScales",value:function(){var e=this,t=this.w.globals,i=this.w.config,a=t.minYArr.concat([]),s=t.maxYArr.concat([]),n=[];i.yaxis.forEach(function(r,o){var h=o;i.series.forEach(function(g,p){g.name===r.seriesName&&(h=p,o!==p?n.push({index:p,similarIndex:o,alreadyExists:!0}):n.push({index:p}))});var c=a[h],d=s[h];e.setYScaleForIndex(o,c,d)}),this.sameScaleInMultipleAxes(a,s,n)}},{key:"sameScaleInMultipleAxes",value:function(e,t,i){var a=this,s=this.w.config,n=this.w.globals,r=[];i.forEach(function(f){f.alreadyExists&&(r[f.index]===void 0&&(r[f.index]=[]),r[f.index].push(f.index),r[f.index].push(f.similarIndex))}),n.yAxisSameScaleIndices=r,r.forEach(function(f,y){r.forEach(function(w,S){var k,l;y!==S&&(k=f,l=w,k.filter(function(u){return l.indexOf(u)!==-1})).length>0&&(r[y]=r[y].concat(r[S]))})});var o=r.map(function(f){return f.filter(function(y,w){return f.indexOf(y)===w})}).map(function(f){return f.sort()});r=r.filter(function(f){return!!f});var h=o.slice(),c=h.map(function(f){return JSON.stringify(f)});h=h.filter(function(f,y){return c.indexOf(JSON.stringify(f))===y});var d=[],g=[];e.forEach(function(f,y){h.forEach(function(w,S){w.indexOf(y)>-1&&(d[S]===void 0&&(d[S]=[],g[S]=[]),d[S].push({key:y,value:f}),g[S].push({key:y,value:t[y]}))})});var p=Array.apply(null,Array(h.length)).map(Number.prototype.valueOf,Number.MIN_VALUE),x=Array.apply(null,Array(h.length)).map(Number.prototype.valueOf,-Number.MAX_VALUE);d.forEach(function(f,y){f.forEach(function(w,S){p[y]=Math.min(w.value,p[y])})}),g.forEach(function(f,y){f.forEach(function(w,S){x[y]=Math.max(w.value,x[y])})}),e.forEach(function(f,y){g.forEach(function(w,S){var k=p[S],l=x[S];s.chart.stacked&&(l=0,w.forEach(function(u,m){u.value!==-Number.MAX_VALUE&&(l+=u.value),k!==Number.MIN_VALUE&&(k+=d[S][m].value)})),w.forEach(function(u,m){w[m].key===y&&(s.yaxis[y].min!==void 0&&(k=typeof s.yaxis[y].min=="function"?s.yaxis[y].min(n.minY):s.yaxis[y].min),s.yaxis[y].max!==void 0&&(l=typeof s.yaxis[y].max=="function"?s.yaxis[y].max(n.maxY):s.yaxis[y].max),a.setYScaleForIndex(y,k,l))})})})}},{key:"autoScaleY",value:function(e,t,i){e||(e=this);var a=e.w;if(a.globals.isMultipleYAxis||a.globals.collapsedSeries.length)return console.warn("autoScaleYaxis is not supported in a multi-yaxis chart."),t;var s=a.globals.seriesX[0],n=a.config.chart.stacked;return t.forEach(function(r,o){for(var h=0,c=0;c=i.xaxis.min){h=c;break}var d,g,p=a.globals.minYArr[o],x=a.globals.maxYArr[o],f=a.globals.stackedSeriesTotals;a.globals.series.forEach(function(y,w){var S=y[h];n?(S=f[h],d=g=S,f.forEach(function(k,l){s[l]<=i.xaxis.max&&s[l]>=i.xaxis.min&&(k>g&&k!==null&&(g=k),y[l]=i.xaxis.min){var u=k,m=k;a.globals.series.forEach(function(b,A){k!==null&&(u=Math.min(b[l],u),m=Math.max(b[l],m))}),m>g&&m!==null&&(g=m),up&&(d=p),t.length>1?(t[w].min=r.min===void 0?d:r.min,t[w].max=r.max===void 0?g:r.max):(t[0].min=r.min===void 0?d:r.min,t[0].max=r.max===void 0?g:r.max)})}),t}}]),v}(),Ye=function(){function v(e){O(this,v),this.ctx=e,this.w=e.w,this.scales=new xe(e)}return E(v,[{key:"init",value:function(){this.setYRange(),this.setXRange(),this.setZRange()}},{key:"getMinYMaxY",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:-Number.MAX_VALUE,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,s=this.w.config,n=this.w.globals,r=-Number.MAX_VALUE,o=Number.MIN_VALUE;a===null&&(a=e+1);var h=n.series,c=h,d=h;s.chart.type==="candlestick"?(c=n.seriesCandleL,d=n.seriesCandleH):s.chart.type==="boxPlot"?(c=n.seriesCandleO,d=n.seriesCandleC):n.isRangeData&&(c=n.seriesRangeStart,d=n.seriesRangeEnd);for(var g=e;gc[g][p]&&c[g][p]<0&&(o=c[g][p])):n.hasNullValues=!0}}return s.chart.type==="rangeBar"&&n.seriesRangeStart.length&&n.isBarHorizontal&&(o=t),s.chart.type==="bar"&&(o<0&&r<0&&(r=0),o===Number.MIN_VALUE&&(o=0)),{minY:o,maxY:r,lowestY:t,highestY:i}}},{key:"setYRange",value:function(){var e=this.w.globals,t=this.w.config;e.maxY=-Number.MAX_VALUE,e.minY=Number.MIN_VALUE;var i=Number.MAX_VALUE;if(e.isMultipleYAxis)for(var a=0;a=0&&i<=10||t.yaxis[0].min!==void 0||t.yaxis[0].max!==void 0)&&(r=0),e.minY=i-5*r/100,i>0&&e.minY<0&&(e.minY=0),e.maxY=e.maxY+5*r/100}return t.yaxis.forEach(function(o,h){o.max!==void 0&&(typeof o.max=="number"?e.maxYArr[h]=o.max:typeof o.max=="function"&&(e.maxYArr[h]=o.max(e.isMultipleYAxis?e.maxYArr[h]:e.maxY)),e.maxY=e.maxYArr[h]),o.min!==void 0&&(typeof o.min=="number"?e.minYArr[h]=o.min:typeof o.min=="function"&&(e.minYArr[h]=o.min(e.isMultipleYAxis?e.minYArr[h]===Number.MIN_VALUE?0:e.minYArr[h]:e.minY)),e.minY=e.minYArr[h])}),e.isBarHorizontal&&["min","max"].forEach(function(o){t.xaxis[o]!==void 0&&typeof t.xaxis[o]=="number"&&(o==="min"?e.minY=t.xaxis[o]:e.maxY=t.xaxis[o])}),e.isMultipleYAxis?(this.scales.setMultipleYScales(),e.minY=i,e.yAxisScale.forEach(function(o,h){e.minYArr[h]=o.niceMin,e.maxYArr[h]=o.niceMax})):(this.scales.setYScaleForIndex(0,e.minY,e.maxY),e.minY=e.yAxisScale[0].niceMin,e.maxY=e.yAxisScale[0].niceMax,e.minYArr[0]=e.yAxisScale[0].niceMin,e.maxYArr[0]=e.yAxisScale[0].niceMax),{minY:e.minY,maxY:e.maxY,minYArr:e.minYArr,maxYArr:e.maxYArr,yAxisScale:e.yAxisScale}}},{key:"setXRange",value:function(){var e=this.w.globals,t=this.w.config,i=t.xaxis.type==="numeric"||t.xaxis.type==="datetime"||t.xaxis.type==="category"&&!e.noLabelsProvided||e.noLabelsProvided||e.isXNumeric;if(e.isXNumeric&&function(){for(var r=0;re.dataPoints&&e.dataPoints!==0&&(a=e.dataPoints-1)):t.xaxis.tickAmount==="dataPoints"?(e.series.length>1&&(a=e.series[e.maxValsInArrayIndex].length-1),e.isXNumeric&&(a=e.maxX-e.minX-1)):a=t.xaxis.tickAmount,e.xTickAmount=a,t.xaxis.max!==void 0&&typeof t.xaxis.max=="number"&&(e.maxX=t.xaxis.max),t.xaxis.min!==void 0&&typeof t.xaxis.min=="number"&&(e.minX=t.xaxis.min),t.xaxis.range!==void 0&&(e.minX=e.maxX-t.xaxis.range),e.minX!==Number.MAX_VALUE&&e.maxX!==-Number.MAX_VALUE)if(t.xaxis.convertedCatToNumeric&&!e.dataFormatXNumeric){for(var s=[],n=e.minX-1;n0&&(e.xAxisScale=this.scales.linearScale(1,e.labels.length,a-1),e.seriesX=e.labels.slice());i&&(e.labels=e.xAxisScale.result.slice())}return e.isBarHorizontal&&e.labels.length&&(e.xTickAmount=e.labels.length),this._handleSingleDataPoint(),this._getMinXDiff(),{minX:e.minX,maxX:e.maxX}}},{key:"setZRange",value:function(){var e=this.w.globals;if(e.isDataXYZ){for(var t=0;t0){var r=s-a[n-1];r>0&&(e.minXDiff=Math.min(r,e.minXDiff))}}),e.dataPoints!==1&&e.minXDiff!==Number.MAX_VALUE||(e.minXDiff=.5)})}},{key:"_setStackedMinMax",value:function(){var e=this.w.globals,t=[],i=[];if(e.series.length)for(var a=0;a0?s=s+parseFloat(e.series[r][a])+1e-4:n+=parseFloat(e.series[r][a])),r===e.series.length-1&&(t.push(s),i.push(n));for(var o=0;o=0;S--)w(S);if(i.config.yaxis[e].title.text!==void 0){var k=a.group({class:"apexcharts-yaxis-title"}),l=0;i.config.yaxis[e].opposite&&(l=i.globals.translateYAxisX[e]);var u=a.drawText({x:l,y:i.globals.gridHeight/2+i.globals.translateY+i.config.yaxis[e].title.offsetY,text:i.config.yaxis[e].title.text,textAnchor:"end",foreColor:i.config.yaxis[e].title.style.color,fontSize:i.config.yaxis[e].title.style.fontSize,fontWeight:i.config.yaxis[e].title.style.fontWeight,fontFamily:i.config.yaxis[e].title.style.fontFamily,cssClass:"apexcharts-yaxis-title-text "+i.config.yaxis[e].title.style.cssClass});k.add(u),h.add(k)}var m=i.config.yaxis[e].axisBorder,b=31+m.offsetX;if(i.config.yaxis[e].opposite&&(b=-31-m.offsetX),m.show){var A=a.drawLine(b,i.globals.translateY+m.offsetY-2,b,i.globals.gridHeight+i.globals.translateY+m.offsetY+2,m.color,0,m.width);h.add(A)}return i.config.yaxis[e].axisTicks.show&&this.axesUtils.drawYAxisTicks(b,d,m,i.config.yaxis[e].axisTicks,e,g,h),h}},{key:"drawYaxisInversed",value:function(e){var t=this.w,i=new Y(this.ctx),a=i.group({class:"apexcharts-xaxis apexcharts-yaxis-inversed"}),s=i.group({class:"apexcharts-xaxis-texts-g",transform:"translate(".concat(t.globals.translateXAxisX,", ").concat(t.globals.translateXAxisY,")")});a.add(s);var n=t.globals.yAxisScale[e].result.length-1,r=t.globals.gridWidth/n+.1,o=r+t.config.xaxis.labels.offsetX,h=t.globals.xLabelFormatter,c=t.globals.yAxisScale[e].result.slice(),d=t.globals.timescaleLabels;d.length>0&&(this.xaxisLabels=d.slice(),n=(c=d.slice()).length),c=this.axesUtils.checkForReversedLabels(e,c);var g=d.length;if(t.config.xaxis.labels.show)for(var p=g?0:n;g?p=0;g?p++:p--){var x=c[p];x=h(x,p,t);var f=t.globals.gridWidth+t.globals.padHorizontal-(o-r+t.config.xaxis.labels.offsetX);if(d.length){var y=this.axesUtils.getLabel(c,d,f,p,this.drawnLabels,this.xaxisFontSize);f=y.x,x=y.text,this.drawnLabels.push(y.text),p===0&&t.globals.skipFirstTimelinelabel&&(x=""),p===c.length-1&&t.globals.skipLastTimelinelabel&&(x="")}var w=i.drawText({x:f,y:this.xAxisoffX+t.config.xaxis.labels.offsetY+30-(t.config.xaxis.position==="top"?t.globals.xAxisHeight+t.config.xaxis.axisTicks.height-2:0),text:x,textAnchor:"middle",foreColor:Array.isArray(this.xaxisForeColors)?this.xaxisForeColors[e]:this.xaxisForeColors,fontSize:this.xaxisFontSize,fontFamily:this.xaxisFontFamily,fontWeight:t.config.xaxis.labels.style.fontWeight,isPlainText:!1,cssClass:"apexcharts-xaxis-label "+t.config.xaxis.labels.style.cssClass});s.add(w),w.tspan(x);var S=document.createElementNS(t.globals.SVGNS,"title");S.textContent=x,w.node.appendChild(S),o+=r}return this.inversedYAxisTitleText(a),this.inversedYAxisBorder(a),a}},{key:"inversedYAxisBorder",value:function(e){var t=this.w,i=new Y(this.ctx),a=t.config.xaxis.axisBorder;if(a.show){var s=0;t.config.chart.type==="bar"&&t.globals.isXNumeric&&(s-=15);var n=i.drawLine(t.globals.padHorizontal+s+a.offsetX,this.xAxisoffX,t.globals.gridWidth,this.xAxisoffX,a.color,0,a.height);this.elgrid&&this.elgrid.elGridBorders?this.elgrid.elGridBorders.add(n):e.add(n)}}},{key:"inversedYAxisTitleText",value:function(e){var t=this.w,i=new Y(this.ctx);if(t.config.xaxis.title.text!==void 0){var a=i.group({class:"apexcharts-xaxis-title apexcharts-yaxis-title-inversed"}),s=i.drawText({x:t.globals.gridWidth/2+t.config.xaxis.title.offsetX,y:this.xAxisoffX+parseFloat(this.xaxisFontSize)+parseFloat(t.config.xaxis.title.style.fontSize)+t.config.xaxis.title.offsetY+20,text:t.config.xaxis.title.text,textAnchor:"middle",fontSize:t.config.xaxis.title.style.fontSize,fontFamily:t.config.xaxis.title.style.fontFamily,fontWeight:t.config.xaxis.title.style.fontWeight,foreColor:t.config.xaxis.title.style.color,cssClass:"apexcharts-xaxis-title-text "+t.config.xaxis.title.style.cssClass});a.add(s),e.add(a)}}},{key:"yAxisTitleRotate",value:function(e,t){var i=this.w,a=new Y(this.ctx),s={width:0,height:0},n={width:0,height:0},r=i.globals.dom.baseEl.querySelector(" .apexcharts-yaxis[rel='".concat(e,"'] .apexcharts-yaxis-texts-g"));r!==null&&(s=r.getBoundingClientRect());var o=i.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(e,"'] .apexcharts-yaxis-title text"));if(o!==null&&(n=o.getBoundingClientRect()),o!==null){var h=this.xPaddingForYAxisTitle(e,s,n,t);o.setAttribute("x",h.xPos-(t?10:0))}if(o!==null){var c=a.rotateAroundCenter(o);o.setAttribute("transform","rotate(".concat(t?-1*i.config.yaxis[e].title.rotate:i.config.yaxis[e].title.rotate," ").concat(c.x," ").concat(c.y,")"))}}},{key:"xPaddingForYAxisTitle",value:function(e,t,i,a){var s=this.w,n=0,r=0,o=10;return s.config.yaxis[e].title.text===void 0||e<0?{xPos:r,padd:0}:(a?(r=t.width+s.config.yaxis[e].title.offsetX+i.width/2+o/2,(n+=1)===0&&(r-=o/2)):(r=-1*t.width+s.config.yaxis[e].title.offsetX+o/2+i.width/2,s.globals.isBarHorizontal&&(o=25,r=-1*t.width-s.config.yaxis[e].title.offsetX-o)),{xPos:r,padd:o})}},{key:"setYAxisXPosition",value:function(e,t){var i=this.w,a=0,s=0,n=18,r=1;i.config.yaxis.length>1&&(this.multipleYs=!0),i.config.yaxis.map(function(o,h){var c=i.globals.ignoreYAxisIndexes.indexOf(h)>-1||!o.show||o.floating||e[h].width===0,d=e[h].width+t[h].width;o.opposite?i.globals.isBarHorizontal?(s=i.globals.gridWidth+i.globals.translateX-1,i.globals.translateYAxisX[h]=s-o.labels.offsetX):(s=i.globals.gridWidth+i.globals.translateX+r,c||(r=r+d+20),i.globals.translateYAxisX[h]=s-o.labels.offsetX+20):(a=i.globals.translateX-n,c||(n=n+d+20),i.globals.translateYAxisX[h]=a+o.labels.offsetX)})}},{key:"setYAxisTextAlignments",value:function(){var e=this.w,t=e.globals.dom.baseEl.getElementsByClassName("apexcharts-yaxis");(t=L.listToArray(t)).forEach(function(i,a){var s=e.config.yaxis[a];if(s&&!s.floating&&s.labels.align!==void 0){var n=e.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(a,"'] .apexcharts-yaxis-texts-g")),r=e.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis[rel='".concat(a,"'] .apexcharts-yaxis-label"));r=L.listToArray(r);var o=n.getBoundingClientRect();s.labels.align==="left"?(r.forEach(function(h,c){h.setAttribute("text-anchor","start")}),s.opposite||n.setAttribute("transform","translate(-".concat(o.width,", 0)"))):s.labels.align==="center"?(r.forEach(function(h,c){h.setAttribute("text-anchor","middle")}),n.setAttribute("transform","translate(".concat(o.width/2*(s.opposite?1:-1),", 0)"))):s.labels.align==="right"&&(r.forEach(function(h,c){h.setAttribute("text-anchor","end")}),s.opposite&&n.setAttribute("transform","translate(".concat(o.width,", 0)")))}})}}]),v}(),Li=function(){function v(e){O(this,v),this.ctx=e,this.w=e.w,this.documentEvent=L.bind(this.documentEvent,this)}return E(v,[{key:"addEventListener",value:function(e,t){var i=this.w;i.globals.events.hasOwnProperty(e)?i.globals.events[e].push(t):i.globals.events[e]=[t]}},{key:"removeEventListener",value:function(e,t){var i=this.w;if(i.globals.events.hasOwnProperty(e)){var a=i.globals.events[e].indexOf(t);a!==-1&&i.globals.events[e].splice(a,1)}}},{key:"fireEvent",value:function(e,t){var i=this.w;if(i.globals.events.hasOwnProperty(e)){t&&t.length||(t=[]);for(var a=i.globals.events[e],s=a.length,n=0;n0&&(t=this.w.config.chart.locales.concat(window.Apex.chart.locales));var i=t.filter(function(s){return s.name===e})[0];if(!i)throw new Error("Wrong locale name provided. Please make sure you set the correct locale name in options");var a=L.extend(Ve,i);this.w.globals.locale=a.options}}]),v}(),Ti=function(){function v(e){O(this,v),this.ctx=e,this.w=e.w}return E(v,[{key:"drawAxis",value:function(e,t){var i,a,s=this,n=this.w.globals,r=this.w.config,o=new Ae(this.ctx,t),h=new Fe(this.ctx,t);n.axisCharts&&e!=="radar"&&(n.isBarHorizontal?(a=h.drawYaxisInversed(0),i=o.drawXaxisInversed(0),n.dom.elGraphical.add(i),n.dom.elGraphical.add(a)):(i=o.drawXaxis(),n.dom.elGraphical.add(i),r.yaxis.map(function(c,d){if(n.ignoreYAxisIndexes.indexOf(d)===-1&&(a=h.drawYaxis(d),n.dom.Paper.add(a),s.w.config.grid.position==="back")){var g=n.dom.Paper.children()[1];g.remove(),n.dom.Paper.add(g)}})))}}]),v}(),De=function(){function v(e){O(this,v),this.ctx=e,this.w=e.w}return E(v,[{key:"drawXCrosshairs",value:function(){var e=this.w,t=new Y(this.ctx),i=new Q(this.ctx),a=e.config.xaxis.crosshairs.fill.gradient,s=e.config.xaxis.crosshairs.dropShadow,n=e.config.xaxis.crosshairs.fill.type,r=a.colorFrom,o=a.colorTo,h=a.opacityFrom,c=a.opacityTo,d=a.stops,g=s.enabled,p=s.left,x=s.top,f=s.blur,y=s.color,w=s.opacity,S=e.config.xaxis.crosshairs.fill.color;if(e.config.xaxis.crosshairs.show){n==="gradient"&&(S=t.drawGradient("vertical",r,o,h,c,null,d,null));var k=t.drawRect();e.config.xaxis.crosshairs.width===1&&(k=t.drawLine());var l=e.globals.gridHeight;(!L.isNumber(l)||l<0)&&(l=0);var u=e.config.xaxis.crosshairs.width;(!L.isNumber(u)||u<0)&&(u=0),k.attr({class:"apexcharts-xcrosshairs",x:0,y:0,y2:l,width:u,height:l,fill:S,filter:"none","fill-opacity":e.config.xaxis.crosshairs.opacity,stroke:e.config.xaxis.crosshairs.stroke.color,"stroke-width":e.config.xaxis.crosshairs.stroke.width,"stroke-dasharray":e.config.xaxis.crosshairs.stroke.dashArray}),g&&(k=i.dropShadow(k,{left:p,top:x,blur:f,color:y,opacity:w})),e.globals.dom.elGraphical.add(k)}}},{key:"drawYCrosshairs",value:function(){var e=this.w,t=new Y(this.ctx),i=e.config.yaxis[0].crosshairs,a=e.globals.barPadForNumericAxis;if(e.config.yaxis[0].crosshairs.show){var s=t.drawLine(-a,0,e.globals.gridWidth+a,0,i.stroke.color,i.stroke.dashArray,i.stroke.width);s.attr({class:"apexcharts-ycrosshairs"}),e.globals.dom.elGraphical.add(s)}var n=t.drawLine(-a,0,e.globals.gridWidth+a,0,i.stroke.color,0,0);n.attr({class:"apexcharts-ycrosshairs-hidden"}),e.globals.dom.elGraphical.add(n)}}]),v}(),Ii=function(){function v(e){O(this,v),this.ctx=e,this.w=e.w}return E(v,[{key:"checkResponsiveConfig",value:function(e){var t=this,i=this.w,a=i.config;if(a.responsive.length!==0){var s=a.responsive.slice();s.sort(function(h,c){return h.breakpoint>c.breakpoint?1:c.breakpoint>h.breakpoint?-1:0}).reverse();var n=new we({}),r=function(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=s[0].breakpoint,d=window.innerWidth>0?window.innerWidth:screen.width;if(d>c){var g=U.extendArrayProps(n,i.globals.initialConfig,i);h=L.extend(g,h),h=L.extend(i.config,h),t.overrideResponsiveOptions(h)}else for(var p=0;p0&&typeof t.config.colors[0]=="function"&&(t.globals.colors=t.config.series.map(function(p,x){var f=t.config.colors[x];return f||(f=t.config.colors[0]),typeof f=="function"?(e.isColorFn=!0,f({value:t.globals.axisCharts?t.globals.series[x][0]?t.globals.series[x][0]:0:t.globals.series[x],seriesIndex:x,dataPointIndex:x,w:t})):f}))),t.globals.seriesColors.map(function(p,x){p&&(t.globals.colors[x]=p)}),t.config.theme.monochrome.enabled){var a=[],s=t.globals.series.length;(this.isBarDistributed||this.isHeatmapDistributed)&&(s=t.globals.series[0].length*t.globals.series.length);for(var n=t.config.theme.monochrome.color,r=1/(s/t.config.theme.monochrome.shadeIntensity),o=t.config.theme.monochrome.shadeTo,h=0,c=0;c2&&arguments[2]!==void 0?arguments[2]:null,a=this.w,s=t||a.globals.series.length;if(i===null&&(i=this.isBarDistributed||this.isHeatmapDistributed||a.config.chart.type==="heatmap"&&a.config.plotOptions.heatmap.colorScale.inverse),i&&a.globals.series.length&&(s=a.globals.series[a.globals.maxValsInArrayIndex].length*a.globals.series.length),e.lengthe.globals.svgWidth&&(this.dCtx.lgRect.width=e.globals.svgWidth/1.5),this.dCtx.lgRect}},{key:"getLargestStringFromMultiArr",value:function(e,t){var i=e;if(this.w.globals.isMultiLineX){var a=t.map(function(n,r){return Array.isArray(n)?n.length:1}),s=Math.max.apply(Math,j(a));i=t[a.indexOf(s)]}return i}}]),v}(),Yi=function(){function v(e){O(this,v),this.w=e.w,this.dCtx=e}return E(v,[{key:"getxAxisLabelsCoords",value:function(){var e,t=this.w,i=t.globals.labels.slice();if(t.config.xaxis.convertedCatToNumeric&&i.length===0&&(i=t.globals.categoryLabels),t.globals.timescaleLabels.length>0){var a=this.getxAxisTimeScaleLabelsCoords();e={width:a.width,height:a.height},t.globals.rotateXLabels=!1}else{this.dCtx.lgWidthForSideLegends=t.config.legend.position!=="left"&&t.config.legend.position!=="right"||t.config.legend.floating?0:this.dCtx.lgRect.width;var s=t.globals.xLabelFormatter,n=L.getLargestStringFromArr(i),r=this.dCtx.dimHelpers.getLargestStringFromMultiArr(n,i);t.globals.isBarHorizontal&&(r=n=t.globals.yAxisScale[0].result.reduce(function(x,f){return x.length>f.length?x:f},0));var o=new ve(this.dCtx.ctx),h=n;n=o.xLabelFormat(s,n,h,{i:void 0,dateFormatter:new J(this.dCtx.ctx).formatDate,w:t}),r=o.xLabelFormat(s,r,h,{i:void 0,dateFormatter:new J(this.dCtx.ctx).formatDate,w:t}),(t.config.xaxis.convertedCatToNumeric&&n===void 0||String(n).trim()==="")&&(r=n="1");var c=new Y(this.dCtx.ctx),d=c.getTextRects(n,t.config.xaxis.labels.style.fontSize),g=d;if(n!==r&&(g=c.getTextRects(r,t.config.xaxis.labels.style.fontSize)),(e={width:d.width>=g.width?d.width:g.width,height:d.height>=g.height?d.height:g.height}).width*i.length>t.globals.svgWidth-this.dCtx.lgWidthForSideLegends-this.dCtx.yAxisWidth-this.dCtx.gridPad.left-this.dCtx.gridPad.right&&t.config.xaxis.labels.rotate!==0||t.config.xaxis.labels.rotateAlways){if(!t.globals.isBarHorizontal){t.globals.rotateXLabels=!0;var p=function(x){return c.getTextRects(x,t.config.xaxis.labels.style.fontSize,t.config.xaxis.labels.style.fontFamily,"rotate(".concat(t.config.xaxis.labels.rotate," 0 0)"),!1)};d=p(n),n!==r&&(g=p(r)),e.height=(d.height>g.height?d.height:g.height)/1.5,e.width=d.width>g.width?d.width:g.width}}else t.globals.rotateXLabels=!1}return t.config.xaxis.labels.show||(e={width:0,height:0}),{width:e.width,height:e.height}}},{key:"getxAxisGroupLabelsCoords",value:function(){var e,t=this.w;if(!t.globals.hasGroups)return{width:0,height:0};var i,a=((e=t.config.xaxis.group.style)===null||e===void 0?void 0:e.fontSize)||t.config.xaxis.labels.style.fontSize,s=t.globals.groups.map(function(d){return d.title}),n=L.getLargestStringFromArr(s),r=this.dCtx.dimHelpers.getLargestStringFromMultiArr(n,s),o=new Y(this.dCtx.ctx),h=o.getTextRects(n,a),c=h;return n!==r&&(c=o.getTextRects(r,a)),i={width:h.width>=c.width?h.width:c.width,height:h.height>=c.height?h.height:c.height},t.config.xaxis.labels.show||(i={width:0,height:0}),{width:i.width,height:i.height}}},{key:"getxAxisTitleCoords",value:function(){var e=this.w,t=0,i=0;if(e.config.xaxis.title.text!==void 0){var a=new Y(this.dCtx.ctx).getTextRects(e.config.xaxis.title.text,e.config.xaxis.title.style.fontSize);t=a.width,i=a.height}return{width:t,height:i}}},{key:"getxAxisTimeScaleLabelsCoords",value:function(){var e,t=this.w;this.dCtx.timescaleLabels=t.globals.timescaleLabels.slice();var i=this.dCtx.timescaleLabels.map(function(s){return s.value}),a=i.reduce(function(s,n){return s===void 0?(console.error("You have possibly supplied invalid Date format. Please supply a valid JavaScript Date"),0):s.length>n.length?s:n},0);return 1.05*(e=new Y(this.dCtx.ctx).getTextRects(a,t.config.xaxis.labels.style.fontSize)).width*i.length>t.globals.gridWidth&&t.config.xaxis.labels.rotate!==0&&(t.globals.overlappingXLabels=!0),e}},{key:"additionalPaddingXLabels",value:function(e){var t=this,i=this.w,a=i.globals,s=i.config,n=s.xaxis.type,r=e.width;a.skipLastTimelinelabel=!1,a.skipFirstTimelinelabel=!1;var o=i.config.yaxis[0].opposite&&i.globals.isBarHorizontal,h=function(c,d){(function(g){return a.collapsedSeriesIndices.indexOf(g)!==-1})(d)||function(g){if(t.dCtx.timescaleLabels&&t.dCtx.timescaleLabels.length){var p=t.dCtx.timescaleLabels[0],x=t.dCtx.timescaleLabels[t.dCtx.timescaleLabels.length-1].position+r/1.75-t.dCtx.yAxisWidthRight,f=p.position-r/1.75+t.dCtx.yAxisWidthLeft,y=i.config.legend.position==="right"&&t.dCtx.lgRect.width>0?t.dCtx.lgRect.width:0;x>a.svgWidth-a.translateX-y&&(a.skipLastTimelinelabel=!0),f<-(g.show&&!g.floating||s.chart.type!=="bar"&&s.chart.type!=="candlestick"&&s.chart.type!=="rangeBar"&&s.chart.type!=="boxPlot"?10:r/1.75)&&(a.skipFirstTimelinelabel=!0)}else n==="datetime"?t.dCtx.gridPad.rightString(o.niceMax).length?d:o.niceMax,p=c(g,{seriesIndex:r,dataPointIndex:-1,w:t}),x=p;if(p!==void 0&&p.length!==0||(p=g),t.globals.isBarHorizontal){a=0;var f=t.globals.labels.slice();p=c(p=L.getLargestStringFromArr(f),{seriesIndex:r,dataPointIndex:-1,w:t}),x=e.dCtx.dimHelpers.getLargestStringFromMultiArr(p,f)}var y=new Y(e.dCtx.ctx),w="rotate(".concat(n.labels.rotate," 0 0)"),S=y.getTextRects(p,n.labels.style.fontSize,n.labels.style.fontFamily,w,!1),k=S;p!==x&&(k=y.getTextRects(x,n.labels.style.fontSize,n.labels.style.fontFamily,w,!1)),i.push({width:(h>k.width||h>S.width?h:k.width>S.width?k.width:S.width)+a,height:k.height>S.height?k.height:S.height})}else i.push({width:0,height:0})}),i}},{key:"getyAxisTitleCoords",value:function(){var e=this,t=this.w,i=[];return t.config.yaxis.map(function(a,s){if(a.show&&a.title.text!==void 0){var n=new Y(e.dCtx.ctx),r="rotate(".concat(a.title.rotate," 0 0)"),o=n.getTextRects(a.title.text,a.title.style.fontSize,a.title.style.fontFamily,r,!1);i.push({width:o.width,height:o.height})}else i.push({width:0,height:0})}),i}},{key:"getTotalYAxisWidth",value:function(){var e=this.w,t=0,i=0,a=0,s=e.globals.yAxisScale.length>1?10:0,n=new ce(this.dCtx.ctx),r=function(o,h){var c=e.config.yaxis[h].floating,d=0;o.width>0&&!c?(d=o.width+s,function(g){return e.globals.ignoreYAxisIndexes.indexOf(g)>-1}(h)&&(d=d-o.width-s)):d=c||n.isYAxisHidden(h)?0:5,e.config.yaxis[h].opposite?a+=d:i+=d,t+=d};return e.globals.yLabelsCoords.map(function(o,h){r(o,h)}),e.globals.yTitleCoords.map(function(o,h){r(o,h)}),e.globals.isBarHorizontal&&!e.config.yaxis[0].floating&&(t=e.globals.yLabelsCoords[0].width+e.globals.yTitleCoords[0].width+15),this.dCtx.yAxisWidthLeft=i,this.dCtx.yAxisWidthRight=a,t}}]),v}(),Di=function(){function v(e){O(this,v),this.w=e.w,this.dCtx=e}return E(v,[{key:"gridPadForColumnsInNumericAxis",value:function(e){var t=this.w;if(t.globals.noData||t.globals.allSeriesCollapsed)return 0;var i=function(c){return c==="bar"||c==="rangeBar"||c==="candlestick"||c==="boxPlot"},a=t.config.chart.type,s=0,n=i(a)?t.config.series.length:1;if(t.globals.comboBarCount>0&&(n=t.globals.comboBarCount),t.globals.collapsedSeries.forEach(function(c){i(c.type)&&(n-=1)}),t.config.chart.stacked&&(n=1),(i(a)||t.globals.comboBarCount>0)&&t.globals.isXNumeric&&!t.globals.isBarHorizontal&&n>0){var r,o,h=Math.abs(t.globals.initialMaxX-t.globals.initialMinX);h<=3&&(h=t.globals.dataPoints),r=h/e,t.globals.minXDiff&&t.globals.minXDiff/r>0&&(o=t.globals.minXDiff/r),o>e/2&&(o/=2),(s=o/n*parseInt(t.config.plotOptions.bar.columnWidth,10)/100)<1&&(s=1),s=s/(n>1?1:1.5)+5,t.globals.barPadForNumericAxis=s}return s}},{key:"gridPadFortitleSubtitle",value:function(){var e=this,t=this.w,i=t.globals,a=this.dCtx.isSparkline||!t.globals.axisCharts?0:10;["title","subtitle"].forEach(function(r){t.config[r].text!==void 0?a+=t.config[r].margin:a+=e.dCtx.isSparkline||!t.globals.axisCharts?0:5}),!t.config.legend.show||t.config.legend.position!=="bottom"||t.config.legend.floating||t.globals.axisCharts||(a+=10);var s=this.dCtx.dimHelpers.getTitleSubtitleCoords("title"),n=this.dCtx.dimHelpers.getTitleSubtitleCoords("subtitle");i.gridHeight=i.gridHeight-s.height-n.height-a,i.translateY=i.translateY+s.height+n.height+a}},{key:"setGridXPosForDualYAxis",value:function(e,t){var i=this.w,a=new ce(this.dCtx.ctx);i.config.yaxis.map(function(s,n){i.globals.ignoreYAxisIndexes.indexOf(n)!==-1||s.floating||a.isYAxisHidden(n)||(s.opposite&&(i.globals.translateX=i.globals.translateX-(t[n].width+e[n].width)-parseInt(i.config.yaxis[n].labels.style.fontSize,10)/1.2-12),i.globals.translateX<2&&(i.globals.translateX=2))})}}]),v}(),Me=function(){function v(e){O(this,v),this.ctx=e,this.w=e.w,this.lgRect={},this.yAxisWidth=0,this.yAxisWidthLeft=0,this.yAxisWidthRight=0,this.xAxisHeight=0,this.isSparkline=this.w.config.chart.sparkline.enabled,this.dimHelpers=new zi(this),this.dimYAxis=new Fi(this),this.dimXAxis=new Yi(this),this.dimGrid=new Di(this),this.lgWidthForSideLegends=0,this.gridPad=this.w.config.grid.padding,this.xPadRight=0,this.xPadLeft=0}return E(v,[{key:"plotCoords",value:function(){var e=this,t=this.w,i=t.globals;this.lgRect=this.dimHelpers.getLegendsRect(),this.isSparkline&&(t.config.markers.discrete.length>0||t.config.markers.size>0)&&Object.entries(this.gridPad).forEach(function(s){var n=be(s,2),r=n[0],o=n[1];e.gridPad[r]=Math.max(o,e.w.globals.markers.largestSize/1.5)}),i.axisCharts?this.setDimensionsForAxisCharts():this.setDimensionsForNonAxisCharts(),this.dimGrid.gridPadFortitleSubtitle(),i.gridHeight=i.gridHeight-this.gridPad.top-this.gridPad.bottom,i.gridWidth=i.gridWidth-this.gridPad.left-this.gridPad.right-this.xPadRight-this.xPadLeft;var a=this.dimGrid.gridPadForColumnsInNumericAxis(i.gridWidth);i.gridWidth=i.gridWidth-2*a,i.translateX=i.translateX+this.gridPad.left+this.xPadLeft+(a>0?a+4:0),i.translateY=i.translateY+this.gridPad.top}},{key:"setDimensionsForAxisCharts",value:function(){var e=this,t=this.w,i=t.globals,a=this.dimYAxis.getyAxisLabelsCoords(),s=this.dimYAxis.getyAxisTitleCoords();t.globals.yLabelsCoords=[],t.globals.yTitleCoords=[],t.config.yaxis.map(function(p,x){t.globals.yLabelsCoords.push({width:a[x].width,index:x}),t.globals.yTitleCoords.push({width:s[x].width,index:x})}),this.yAxisWidth=this.dimYAxis.getTotalYAxisWidth();var n=this.dimXAxis.getxAxisLabelsCoords(),r=this.dimXAxis.getxAxisGroupLabelsCoords(),o=this.dimXAxis.getxAxisTitleCoords();this.conditionalChecksForAxisCoords(n,o,r),i.translateXAxisY=t.globals.rotateXLabels?this.xAxisHeight/8:-4,i.translateXAxisX=t.globals.rotateXLabels&&t.globals.isXNumeric&&t.config.xaxis.labels.rotate<=-45?-this.xAxisWidth/4:0,t.globals.isBarHorizontal&&(i.rotateXLabels=!1,i.translateXAxisY=parseInt(t.config.xaxis.labels.style.fontSize,10)/1.5*-1),i.translateXAxisY=i.translateXAxisY+t.config.xaxis.labels.offsetY,i.translateXAxisX=i.translateXAxisX+t.config.xaxis.labels.offsetX;var h=this.yAxisWidth,c=this.xAxisHeight;i.xAxisLabelsHeight=this.xAxisHeight-o.height,i.xAxisGroupLabelsHeight=i.xAxisLabelsHeight-n.height,i.xAxisLabelsWidth=this.xAxisWidth,i.xAxisHeight=this.xAxisHeight;var d=10;(t.config.chart.type==="radar"||this.isSparkline)&&(h=0,c=i.goldenPadding),this.isSparkline&&(this.lgRect={height:0,width:0}),(this.isSparkline||t.config.chart.type==="treemap")&&(h=0,c=0,d=0),this.isSparkline||this.dimXAxis.additionalPaddingXLabels(n);var g=function(){i.translateX=h,i.gridHeight=i.svgHeight-e.lgRect.height-c-(e.isSparkline||t.config.chart.type==="treemap"?0:t.globals.rotateXLabels?10:15),i.gridWidth=i.svgWidth-h};switch(t.config.xaxis.position==="top"&&(d=i.xAxisHeight-t.config.xaxis.axisTicks.height-5),t.config.legend.position){case"bottom":i.translateY=d,g();break;case"top":i.translateY=this.lgRect.height+d,g();break;case"left":i.translateY=d,i.translateX=this.lgRect.width+h,i.gridHeight=i.svgHeight-c-12,i.gridWidth=i.svgWidth-this.lgRect.width-h;break;case"right":i.translateY=d,i.translateX=h,i.gridHeight=i.svgHeight-c-12,i.gridWidth=i.svgWidth-this.lgRect.width-h-5;break;default:throw new Error("Legend position not supported")}this.dimGrid.setGridXPosForDualYAxis(s,a),new Fe(this.ctx).setYAxisXPosition(a,s)}},{key:"setDimensionsForNonAxisCharts",value:function(){var e=this.w,t=e.globals,i=e.config,a=0;e.config.legend.show&&!e.config.legend.floating&&(a=20);var s=i.chart.type==="pie"||i.chart.type==="polarArea"||i.chart.type==="donut"?"pie":"radialBar",n=i.plotOptions[s].offsetY,r=i.plotOptions[s].offsetX;if(!i.legend.show||i.legend.floating)return t.gridHeight=t.svgHeight-i.grid.padding.left+i.grid.padding.right,t.gridWidth=t.gridHeight,t.translateY=n,void(t.translateX=r+(t.svgWidth-t.gridWidth)/2);switch(i.legend.position){case"bottom":t.gridHeight=t.svgHeight-this.lgRect.height-t.goldenPadding,t.gridWidth=t.svgWidth,t.translateY=n-10,t.translateX=r+(t.svgWidth-t.gridWidth)/2;break;case"top":t.gridHeight=t.svgHeight-this.lgRect.height-t.goldenPadding,t.gridWidth=t.svgWidth,t.translateY=this.lgRect.height+n+10,t.translateX=r+(t.svgWidth-t.gridWidth)/2;break;case"left":t.gridWidth=t.svgWidth-this.lgRect.width-a,t.gridHeight=i.chart.height!=="auto"?t.svgHeight:t.gridWidth,t.translateY=n,t.translateX=r+this.lgRect.width+a;break;case"right":t.gridWidth=t.svgWidth-this.lgRect.width-a-5,t.gridHeight=i.chart.height!=="auto"?t.svgHeight:t.gridWidth,t.translateY=n,t.translateX=r+10;break;default:throw new Error("Legend position not supported")}}},{key:"conditionalChecksForAxisCoords",value:function(e,t,i){var a=this.w,s=a.globals.hasGroups?2:1,n=i.height+e.height+t.height,r=a.globals.isMultiLineX?1.2:a.globals.LINE_HEIGHT_RATIO,o=a.globals.rotateXLabels?22:10,h=a.globals.rotateXLabels&&a.config.legend.position==="bottom"?10:0;this.xAxisHeight=n*r+s*o+h,this.xAxisWidth=e.width,this.xAxisHeight-t.height>a.config.xaxis.labels.maxHeight&&(this.xAxisHeight=a.config.xaxis.labels.maxHeight),a.config.xaxis.labels.minHeight&&this.xAxisHeightd&&(this.yAxisWidth=d)}}]),v}(),Ri=function(){function v(e){O(this,v),this.w=e.w,this.lgCtx=e}return E(v,[{key:"getLegendStyles",value:function(){var e=document.createElement("style");e.setAttribute("type","text/css");var t=document.createTextNode(` .apexcharts-legend { display: flex; @@ -68,7 +68,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } .apexcharts-inactive-legend { opacity: 0.45; - }`);return e.appendChild(t),e}},{key:"getLegendBBox",value:function(){var e=this.w.globals.dom.baseEl.querySelector(".apexcharts-legend").getBoundingClientRect(),t=e.width;return{clwh:e.height,clww:t}}},{key:"appendToForeignObject",value:function(){var e=this.w.globals;e.dom.elLegendForeign=document.createElementNS(e.SVGNS,"foreignObject");var t=e.dom.elLegendForeign;t.setAttribute("x",0),t.setAttribute("y",0),t.setAttribute("width",e.svgWidth),t.setAttribute("height",e.svgHeight),e.dom.elLegendWrap.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),t.appendChild(e.dom.elLegendWrap),t.appendChild(this.getLegendStyles()),e.dom.Paper.node.insertBefore(t,e.dom.elGraphical.node)}},{key:"toggleDataSeries",value:function(e,t){var i=this,a=this.w;if(a.globals.axisCharts||a.config.chart.type==="radialBar"){a.globals.resized=!0;var s=null,n=null;a.globals.risingSeries=[],a.globals.axisCharts?(s=a.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(e,"']")),n=parseInt(s.getAttribute("data:realIndex"),10)):(s=a.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(e+1,"']")),n=parseInt(s.getAttribute("rel"),10)-1),t?[{cs:a.globals.collapsedSeries,csi:a.globals.collapsedSeriesIndices},{cs:a.globals.ancillaryCollapsedSeries,csi:a.globals.ancillaryCollapsedSeriesIndices}].forEach(function(c){i.riseCollapsedSeries(c.cs,c.csi,n)}):this.hideSeries({seriesEl:s,realIndex:n})}else{var r=a.globals.dom.Paper.select(" .apexcharts-series[rel='".concat(e+1,"'] path")),o=a.config.chart.type;if(o==="pie"||o==="polarArea"||o==="donut"){var h=a.config.plotOptions.pie.donut.labels;new Y(this.lgCtx.ctx).pathMouseDown(r.members[0],null),this.lgCtx.ctx.pie.printDataLabelsInner(r.members[0].node,h)}r.fire("click")}}},{key:"hideSeries",value:function(e){var t=e.seriesEl,i=e.realIndex,a=this.w,s=L.clone(a.config.series);if(a.globals.axisCharts){var n=!1;if(a.config.yaxis[i]&&a.config.yaxis[i].show&&a.config.yaxis[i].showAlways&&(n=!0,a.globals.ancillaryCollapsedSeriesIndices.indexOf(i)<0&&(a.globals.ancillaryCollapsedSeries.push({index:i,data:s[i].data.slice(),type:t.parentNode.className.baseVal.split("-")[1]}),a.globals.ancillaryCollapsedSeriesIndices.push(i))),!n){a.globals.collapsedSeries.push({index:i,data:s[i].data.slice(),type:t.parentNode.className.baseVal.split("-")[1]}),a.globals.collapsedSeriesIndices.push(i);var r=a.globals.risingSeries.indexOf(i);a.globals.risingSeries.splice(r,1)}}else a.globals.collapsedSeries.push({index:i,data:s[i]}),a.globals.collapsedSeriesIndices.push(i);for(var o=t.childNodes,h=0;h0){for(var n=0;n-1&&(e[a].data=[])}):e.forEach(function(i,a){t.globals.collapsedSeriesIndices.indexOf(a)>-1&&(e[a]=0)}),e}}]),v}(),Ze=function(){function v(e,t){O(this,v),this.ctx=e,this.w=e.w,this.onLegendClick=this.onLegendClick.bind(this),this.onLegendHovered=this.onLegendHovered.bind(this),this.isBarsDistributed=this.w.config.chart.type==="bar"&&this.w.config.plotOptions.bar.distributed&&this.w.config.series.length===1,this.legendHelpers=new Di(this)}return I(v,[{key:"init",value:function(){var e=this.w,t=e.globals,i=e.config;if((i.legend.showForSingleSeries&&t.series.length===1||this.isBarsDistributed||t.series.length>1||!t.axisCharts)&&i.legend.show){for(;t.dom.elLegendWrap.firstChild;)t.dom.elLegendWrap.removeChild(t.dom.elLegendWrap.firstChild);this.drawLegends(),L.isIE11()?document.getElementsByTagName("head")[0].appendChild(this.legendHelpers.getLegendStyles()):this.legendHelpers.appendToForeignObject(),i.legend.position==="bottom"||i.legend.position==="top"?this.legendAlignHorizontal():i.legend.position!=="right"&&i.legend.position!=="left"||this.legendAlignVertical()}}},{key:"drawLegends",value:function(){var e=this,t=this.w,i=t.config.legend.fontFamily,a=t.globals.seriesNames,s=t.globals.colors.slice();if(t.config.chart.type==="heatmap"){var n=t.config.plotOptions.heatmap.colorScale.ranges;a=n.map(function(T){return T.name?T.name:T.from+" - "+T.to}),s=n.map(function(T){return T.color})}else this.isBarsDistributed&&(a=t.globals.labels.slice());t.config.legend.customLegendItems.length&&(a=t.config.legend.customLegendItems);for(var r=t.globals.legendFormatter,o=t.config.legend.inverseOrder,h=o?a.length-1:0;o?h>=0:h<=a.length-1;o?h--:h++){var c=r(a[h],{seriesIndex:h,w:t}),d=!1,g=!1;if(t.globals.collapsedSeries.length>0)for(var p=0;p0)for(var x=0;x0?h-10:0)+(c>0?c-10:0)}a.style.position="absolute",n=n+e+i.config.legend.offsetX,r=r+t+i.config.legend.offsetY,a.style.left=n+"px",a.style.top=r+"px",i.config.legend.position==="bottom"?(a.style.top="auto",a.style.bottom=5-i.config.legend.offsetY+"px"):i.config.legend.position==="right"&&(a.style.left="auto",a.style.right=25+i.config.legend.offsetX+"px"),["width","height"].forEach(function(d){a.style[d]&&(a.style[d]=parseInt(i.config.legend[d],10)+"px")})}},{key:"legendAlignHorizontal",value:function(){var e=this.w;e.globals.dom.baseEl.querySelector(".apexcharts-legend").style.right=0;var t=this.legendHelpers.getLegendBBox(),i=new Me(this.ctx),a=i.dimHelpers.getTitleSubtitleCoords("title"),s=i.dimHelpers.getTitleSubtitleCoords("subtitle"),n=0;e.config.legend.position==="bottom"?n=-t.clwh/1.8:e.config.legend.position==="top"&&(n=a.height+s.height+e.config.title.margin+e.config.subtitle.margin-10),this.setLegendWrapXY(20,n)}},{key:"legendAlignVertical",value:function(){var e=this.w,t=this.legendHelpers.getLegendBBox(),i=0;e.config.legend.position==="left"&&(i=20),e.config.legend.position==="right"&&(i=e.globals.svgWidth-t.clww-10),this.setLegendWrapXY(i,20)}},{key:"onLegendHovered",value:function(e){var t=this.w,i=e.target.classList.contains("apexcharts-legend-text")||e.target.classList.contains("apexcharts-legend-marker");if(t.config.chart.type==="heatmap"||this.isBarsDistributed){if(i){var a=parseInt(e.target.getAttribute("rel"),10)-1;this.ctx.events.fireEvent("legendHover",[this.ctx,a,this.w]),new re(this.ctx).highlightRangeInSeries(e,e.target)}}else!e.target.classList.contains("apexcharts-inactive-legend")&&i&&new re(this.ctx).toggleSeriesOnHover(e,e.target)}},{key:"onLegendClick",value:function(e){var t=this.w;if(!t.config.legend.customLegendItems.length&&(e.target.classList.contains("apexcharts-legend-text")||e.target.classList.contains("apexcharts-legend-marker"))){var i=parseInt(e.target.getAttribute("rel"),10)-1,a=e.target.getAttribute("data:collapsed")==="true",s=this.w.config.chart.events.legendClick;typeof s=="function"&&s(this.ctx,i,this.w),this.ctx.events.fireEvent("legendClick",[this.ctx,i,this.w]);var n=this.w.config.legend.markers.onClick;typeof n=="function"&&e.target.classList.contains("apexcharts-legend-marker")&&(n(this.ctx,i,this.w),this.ctx.events.fireEvent("legendMarkerClick",[this.ctx,i,this.w])),t.config.chart.type!=="treemap"&&t.config.chart.type!=="heatmap"&&!this.isBarsDistributed&&t.config.legend.onItemClick.toggleDataSeries&&this.legendHelpers.toggleDataSeries(i,a)}}}]),v}(),Je=function(){function v(e){O(this,v),this.ctx=e,this.w=e.w;var t=this.w;this.ev=this.w.config.chart.events,this.selectedClass="apexcharts-selected",this.localeValues=this.w.globals.locale.toolbar,this.minX=t.globals.minX,this.maxX=t.globals.maxX}return I(v,[{key:"createToolbar",value:function(){var e=this,t=this.w,i=function(){return document.createElement("div")},a=i();if(a.setAttribute("class","apexcharts-toolbar"),a.style.top=t.config.chart.toolbar.offsetY+"px",a.style.right=3-t.config.chart.toolbar.offsetX+"px",t.globals.dom.elWrap.appendChild(a),this.elZoom=i(),this.elZoomIn=i(),this.elZoomOut=i(),this.elPan=i(),this.elSelection=i(),this.elZoomReset=i(),this.elMenuIcon=i(),this.elMenu=i(),this.elCustomIcons=[],this.t=t.config.chart.toolbar.tools,Array.isArray(this.t.customIcons))for(var s=0;s + }`);return e.appendChild(t),e}},{key:"getLegendBBox",value:function(){var e=this.w.globals.dom.baseEl.querySelector(".apexcharts-legend").getBoundingClientRect(),t=e.width;return{clwh:e.height,clww:t}}},{key:"appendToForeignObject",value:function(){var e=this.w.globals;e.dom.elLegendForeign=document.createElementNS(e.SVGNS,"foreignObject");var t=e.dom.elLegendForeign;t.setAttribute("x",0),t.setAttribute("y",0),t.setAttribute("width",e.svgWidth),t.setAttribute("height",e.svgHeight),e.dom.elLegendWrap.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),t.appendChild(e.dom.elLegendWrap),t.appendChild(this.getLegendStyles()),e.dom.Paper.node.insertBefore(t,e.dom.elGraphical.node)}},{key:"toggleDataSeries",value:function(e,t){var i=this,a=this.w;if(a.globals.axisCharts||a.config.chart.type==="radialBar"){a.globals.resized=!0;var s=null,n=null;a.globals.risingSeries=[],a.globals.axisCharts?(s=a.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(e,"']")),n=parseInt(s.getAttribute("data:realIndex"),10)):(s=a.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(e+1,"']")),n=parseInt(s.getAttribute("rel"),10)-1),t?[{cs:a.globals.collapsedSeries,csi:a.globals.collapsedSeriesIndices},{cs:a.globals.ancillaryCollapsedSeries,csi:a.globals.ancillaryCollapsedSeriesIndices}].forEach(function(c){i.riseCollapsedSeries(c.cs,c.csi,n)}):this.hideSeries({seriesEl:s,realIndex:n})}else{var r=a.globals.dom.Paper.select(" .apexcharts-series[rel='".concat(e+1,"'] path")),o=a.config.chart.type;if(o==="pie"||o==="polarArea"||o==="donut"){var h=a.config.plotOptions.pie.donut.labels;new Y(this.lgCtx.ctx).pathMouseDown(r.members[0],null),this.lgCtx.ctx.pie.printDataLabelsInner(r.members[0].node,h)}r.fire("click")}}},{key:"hideSeries",value:function(e){var t=e.seriesEl,i=e.realIndex,a=this.w,s=L.clone(a.config.series);if(a.globals.axisCharts){var n=!1;if(a.config.yaxis[i]&&a.config.yaxis[i].show&&a.config.yaxis[i].showAlways&&(n=!0,a.globals.ancillaryCollapsedSeriesIndices.indexOf(i)<0&&(a.globals.ancillaryCollapsedSeries.push({index:i,data:s[i].data.slice(),type:t.parentNode.className.baseVal.split("-")[1]}),a.globals.ancillaryCollapsedSeriesIndices.push(i))),!n){a.globals.collapsedSeries.push({index:i,data:s[i].data.slice(),type:t.parentNode.className.baseVal.split("-")[1]}),a.globals.collapsedSeriesIndices.push(i);var r=a.globals.risingSeries.indexOf(i);a.globals.risingSeries.splice(r,1)}}else a.globals.collapsedSeries.push({index:i,data:s[i]}),a.globals.collapsedSeriesIndices.push(i);for(var o=t.childNodes,h=0;h0){for(var n=0;n-1&&(e[a].data=[])}):e.forEach(function(i,a){t.globals.collapsedSeriesIndices.indexOf(a)>-1&&(e[a]=0)}),e}}]),v}(),Ze=function(){function v(e,t){O(this,v),this.ctx=e,this.w=e.w,this.onLegendClick=this.onLegendClick.bind(this),this.onLegendHovered=this.onLegendHovered.bind(this),this.isBarsDistributed=this.w.config.chart.type==="bar"&&this.w.config.plotOptions.bar.distributed&&this.w.config.series.length===1,this.legendHelpers=new Ri(this)}return E(v,[{key:"init",value:function(){var e=this.w,t=e.globals,i=e.config;if((i.legend.showForSingleSeries&&t.series.length===1||this.isBarsDistributed||t.series.length>1||!t.axisCharts)&&i.legend.show){for(;t.dom.elLegendWrap.firstChild;)t.dom.elLegendWrap.removeChild(t.dom.elLegendWrap.firstChild);this.drawLegends(),L.isIE11()?document.getElementsByTagName("head")[0].appendChild(this.legendHelpers.getLegendStyles()):this.legendHelpers.appendToForeignObject(),i.legend.position==="bottom"||i.legend.position==="top"?this.legendAlignHorizontal():i.legend.position!=="right"&&i.legend.position!=="left"||this.legendAlignVertical()}}},{key:"drawLegends",value:function(){var e=this,t=this.w,i=t.config.legend.fontFamily,a=t.globals.seriesNames,s=t.globals.colors.slice();if(t.config.chart.type==="heatmap"){var n=t.config.plotOptions.heatmap.colorScale.ranges;a=n.map(function(T){return T.name?T.name:T.from+" - "+T.to}),s=n.map(function(T){return T.color})}else this.isBarsDistributed&&(a=t.globals.labels.slice());t.config.legend.customLegendItems.length&&(a=t.config.legend.customLegendItems);for(var r=t.globals.legendFormatter,o=t.config.legend.inverseOrder,h=o?a.length-1:0;o?h>=0:h<=a.length-1;o?h--:h++){var c=r(a[h],{seriesIndex:h,w:t}),d=!1,g=!1;if(t.globals.collapsedSeries.length>0)for(var p=0;p0)for(var x=0;x0?h-10:0)+(c>0?c-10:0)}a.style.position="absolute",n=n+e+i.config.legend.offsetX,r=r+t+i.config.legend.offsetY,a.style.left=n+"px",a.style.top=r+"px",i.config.legend.position==="bottom"?(a.style.top="auto",a.style.bottom=5-i.config.legend.offsetY+"px"):i.config.legend.position==="right"&&(a.style.left="auto",a.style.right=25+i.config.legend.offsetX+"px"),["width","height"].forEach(function(d){a.style[d]&&(a.style[d]=parseInt(i.config.legend[d],10)+"px")})}},{key:"legendAlignHorizontal",value:function(){var e=this.w;e.globals.dom.baseEl.querySelector(".apexcharts-legend").style.right=0;var t=this.legendHelpers.getLegendBBox(),i=new Me(this.ctx),a=i.dimHelpers.getTitleSubtitleCoords("title"),s=i.dimHelpers.getTitleSubtitleCoords("subtitle"),n=0;e.config.legend.position==="bottom"?n=-t.clwh/1.8:e.config.legend.position==="top"&&(n=a.height+s.height+e.config.title.margin+e.config.subtitle.margin-10),this.setLegendWrapXY(20,n)}},{key:"legendAlignVertical",value:function(){var e=this.w,t=this.legendHelpers.getLegendBBox(),i=0;e.config.legend.position==="left"&&(i=20),e.config.legend.position==="right"&&(i=e.globals.svgWidth-t.clww-10),this.setLegendWrapXY(i,20)}},{key:"onLegendHovered",value:function(e){var t=this.w,i=e.target.classList.contains("apexcharts-legend-text")||e.target.classList.contains("apexcharts-legend-marker");if(t.config.chart.type==="heatmap"||this.isBarsDistributed){if(i){var a=parseInt(e.target.getAttribute("rel"),10)-1;this.ctx.events.fireEvent("legendHover",[this.ctx,a,this.w]),new re(this.ctx).highlightRangeInSeries(e,e.target)}}else!e.target.classList.contains("apexcharts-inactive-legend")&&i&&new re(this.ctx).toggleSeriesOnHover(e,e.target)}},{key:"onLegendClick",value:function(e){var t=this.w;if(!t.config.legend.customLegendItems.length&&(e.target.classList.contains("apexcharts-legend-text")||e.target.classList.contains("apexcharts-legend-marker"))){var i=parseInt(e.target.getAttribute("rel"),10)-1,a=e.target.getAttribute("data:collapsed")==="true",s=this.w.config.chart.events.legendClick;typeof s=="function"&&s(this.ctx,i,this.w),this.ctx.events.fireEvent("legendClick",[this.ctx,i,this.w]);var n=this.w.config.legend.markers.onClick;typeof n=="function"&&e.target.classList.contains("apexcharts-legend-marker")&&(n(this.ctx,i,this.w),this.ctx.events.fireEvent("legendMarkerClick",[this.ctx,i,this.w])),t.config.chart.type!=="treemap"&&t.config.chart.type!=="heatmap"&&!this.isBarsDistributed&&t.config.legend.onItemClick.toggleDataSeries&&this.legendHelpers.toggleDataSeries(i,a)}}}]),v}(),Je=function(){function v(e){O(this,v),this.ctx=e,this.w=e.w;var t=this.w;this.ev=this.w.config.chart.events,this.selectedClass="apexcharts-selected",this.localeValues=this.w.globals.locale.toolbar,this.minX=t.globals.minX,this.maxX=t.globals.maxX}return E(v,[{key:"createToolbar",value:function(){var e=this,t=this.w,i=function(){return document.createElement("div")},a=i();if(a.setAttribute("class","apexcharts-toolbar"),a.style.top=t.config.chart.toolbar.offsetY+"px",a.style.right=3-t.config.chart.toolbar.offsetX+"px",t.globals.dom.elWrap.appendChild(a),this.elZoom=i(),this.elZoomIn=i(),this.elZoomOut=i(),this.elPan=i(),this.elSelection=i(),this.elZoomReset=i(),this.elMenuIcon=i(),this.elMenu=i(),this.elCustomIcons=[],this.t=t.config.chart.toolbar.tools,Array.isArray(this.t.customIcons))for(var s=0;s @@ -94,11 +94,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `,title:this.localeValues.pan,class:t.globals.isTouchDevice?"apexcharts-element-hidden":"apexcharts-pan-icon"}),r("reset",this.elZoomReset,` -`),this.t.download&&n.push({el:this.elMenuIcon,icon:typeof this.t.download=="string"?this.t.download:'',title:this.localeValues.menu,class:"apexcharts-menu-icon"});for(var h=0;h0&&a.height>0&&this.slDraggableRect.selectize({points:"l, r",pointSize:8,pointType:"rect"}).resize({constraint:{minX:0,minY:0,maxX:i.globals.gridWidth,maxY:i.globals.gridHeight}}).on("resizing",this.selectionDragging.bind(this,"resizing"))}}},{key:"preselectedSelection",value:function(){var i=this.w,a=this.xyRatios;if(!i.globals.zoomEnabled){if(i.globals.selection!==void 0&&i.globals.selection!==null)this.drawSelectionRect(i.globals.selection);else if(i.config.chart.selection.xaxis.min!==void 0&&i.config.chart.selection.xaxis.max!==void 0){var s=(i.config.chart.selection.xaxis.min-i.globals.minX)/a.xRatio,n={x:s,y:0,width:i.globals.gridWidth-(i.globals.maxX-i.config.chart.selection.xaxis.max)/a.xRatio-s,height:i.globals.gridHeight,translateX:0,translateY:0,selectionEnabled:!0};this.drawSelectionRect(n),this.makeSelectionRectDraggable(),typeof i.config.chart.events.selection=="function"&&i.config.chart.events.selection(this.ctx,{xaxis:{min:i.config.chart.selection.xaxis.min,max:i.config.chart.selection.xaxis.max},yaxis:{}})}}}},{key:"drawSelectionRect",value:function(i){var a=i.x,s=i.y,n=i.width,r=i.height,o=i.translateX,h=o===void 0?0:o,c=i.translateY,d=c===void 0?0:c,g=this.w,p=this.zoomRect,x=this.selectionRect;if(this.dragged||g.globals.selection!==null){var f={transform:"translate("+h+", "+d+")"};g.globals.zoomEnabled&&this.dragged&&(n<0&&(n=1),p.attr({x:a,y:s,width:n,height:r,fill:g.config.chart.zoom.zoomedArea.fill.color,"fill-opacity":g.config.chart.zoom.zoomedArea.fill.opacity,stroke:g.config.chart.zoom.zoomedArea.stroke.color,"stroke-width":g.config.chart.zoom.zoomedArea.stroke.width,"stroke-opacity":g.config.chart.zoom.zoomedArea.stroke.opacity}),Y.setAttrs(p.node,f)),g.globals.selectionEnabled&&(x.attr({x:a,y:s,width:n>0?n:0,height:r>0?r:0,fill:g.config.chart.selection.fill.color,"fill-opacity":g.config.chart.selection.fill.opacity,stroke:g.config.chart.selection.stroke.color,"stroke-width":g.config.chart.selection.stroke.width,"stroke-dasharray":g.config.chart.selection.stroke.dashArray,"stroke-opacity":g.config.chart.selection.stroke.opacity}),Y.setAttrs(x.node,f))}}},{key:"hideSelectionRect",value:function(i){i&&i.attr({x:0,y:0,width:0,height:0})}},{key:"selectionDrawing",value:function(i){var a=i.context,s=i.zoomtype,n=this.w,r=a,o=this.gridRect.getBoundingClientRect(),h=r.startX-1,c=r.startY,d=!1,g=!1,p=r.clientX-o.left-h,x=r.clientY-o.top-c,f={};return Math.abs(p+h)>n.globals.gridWidth?p=n.globals.gridWidth-h:r.clientX-o.left<0&&(p=h),h>r.clientX-o.left&&(d=!0,p=Math.abs(p)),c>r.clientY-o.top&&(g=!0,x=Math.abs(x)),f=s==="x"?{x:d?h-p:h,y:0,width:p,height:n.globals.gridHeight}:s==="y"?{x:0,y:g?c-x:c,width:n.globals.gridWidth,height:x}:{x:d?h-p:h,y:g?c-x:c,width:p,height:x},r.drawSelectionRect(f),r.selectionDragging("resizing"),f}},{key:"selectionDragging",value:function(i,a){var s=this,n=this.w,r=this.xyRatios,o=this.selectionRect,h=0;i==="resizing"&&(h=30);var c=function(g){return parseFloat(o.node.getAttribute(g))},d={x:c("x"),y:c("y"),width:c("width"),height:c("height")};n.globals.selection=d,typeof n.config.chart.events.selection=="function"&&n.globals.selectionEnabled&&(clearTimeout(this.w.globals.selectionResizeTimer),this.w.globals.selectionResizeTimer=window.setTimeout(function(){var g=s.gridRect.getBoundingClientRect(),p=o.node.getBoundingClientRect(),x={xaxis:{min:n.globals.xAxisScale.niceMin+(p.left-g.left)*r.xRatio,max:n.globals.xAxisScale.niceMin+(p.right-g.left)*r.xRatio},yaxis:{min:n.globals.yAxisScale[0].niceMin+(g.bottom-p.bottom)*r.yRatio[0],max:n.globals.yAxisScale[0].niceMax-(p.top-g.top)*r.yRatio[0]}};n.config.chart.events.selection(s.ctx,x),n.config.chart.brush.enabled&&n.config.chart.events.brushScrolled!==void 0&&n.config.chart.events.brushScrolled(s.ctx,x)},h))}},{key:"selectionDrawn",value:function(i){var a=i.context,s=i.zoomtype,n=this.w,r=a,o=this.xyRatios,h=this.ctx.toolbar;if(r.startX>r.endX){var c=r.startX;r.startX=r.endX,r.endX=c}if(r.startY>r.endY){var d=r.startY;r.startY=r.endY,r.endY=d}var g=void 0,p=void 0;n.globals.isRangeBar?(g=n.globals.yAxisScale[0].niceMin+r.startX*o.invertedYRatio,p=n.globals.yAxisScale[0].niceMin+r.endX*o.invertedYRatio):(g=n.globals.xAxisScale.niceMin+r.startX*o.xRatio,p=n.globals.xAxisScale.niceMin+r.endX*o.xRatio);var x=[],f=[];if(n.config.yaxis.forEach(function(b,A){x.push(n.globals.yAxisScale[A].niceMax-o.yRatio[A]*r.startY),f.push(n.globals.yAxisScale[A].niceMax-o.yRatio[A]*r.endY)}),r.dragged&&(r.dragX>10||r.dragY>10)&&g!==p){if(n.globals.zoomEnabled){var y=L.clone(n.globals.initialConfig.yaxis),w=L.clone(n.globals.initialConfig.xaxis);if(n.globals.zoomed=!0,n.config.xaxis.convertedCatToNumeric&&(g=Math.floor(g),p=Math.floor(p),g<1&&(g=1,p=n.globals.dataPoints),p-g<2&&(p=g+1)),s!=="xy"&&s!=="x"||(w={min:g,max:p}),s!=="xy"&&s!=="y"||y.forEach(function(b,A){y[A].min=f[A],y[A].max=x[A]}),n.config.chart.zoom.autoScaleYaxis){var S=new me(r.ctx);y=S.autoScaleY(r.ctx,y,{xaxis:w})}if(h){var k=h.getBeforeZoomRange(w,y);k&&(w=k.xaxis?k.xaxis:w,y=k.yaxis?k.yaxis:y)}var l={xaxis:w};n.config.chart.group||(l.yaxis=y),r.ctx.updateHelpers._updateOptions(l,!1,r.w.config.chart.animations.dynamicAnimation.enabled),typeof n.config.chart.events.zoomed=="function"&&h.zoomCallback(w,y)}else if(n.globals.selectionEnabled){var u,m=null;u={min:g,max:p},s!=="xy"&&s!=="y"||(m=L.clone(n.config.yaxis)).forEach(function(b,A){m[A].min=f[A],m[A].max=x[A]}),n.globals.selection=r.selection,typeof n.config.chart.events.selection=="function"&&n.config.chart.events.selection(r.ctx,{xaxis:u,yaxis:m})}}}},{key:"panDragging",value:function(i){var a=i.context,s=this.w,n=a;if(s.globals.lastClientPosition.x!==void 0){var r=s.globals.lastClientPosition.x-n.clientX,o=s.globals.lastClientPosition.y-n.clientY;Math.abs(r)>Math.abs(o)&&r>0?this.moveDirection="left":Math.abs(r)>Math.abs(o)&&r<0?this.moveDirection="right":Math.abs(o)>Math.abs(r)&&o>0?this.moveDirection="up":Math.abs(o)>Math.abs(r)&&o<0&&(this.moveDirection="down")}s.globals.lastClientPosition={x:n.clientX,y:n.clientY};var h=s.globals.isRangeBar?s.globals.minY:s.globals.minX,c=s.globals.isRangeBar?s.globals.maxY:s.globals.maxX;s.config.xaxis.convertedCatToNumeric||n.panScrolled(h,c)}},{key:"delayedPanScrolled",value:function(){var i=this.w,a=i.globals.minX,s=i.globals.maxX,n=(i.globals.maxX-i.globals.minX)/2;this.moveDirection==="left"?(a=i.globals.minX+n,s=i.globals.maxX+n):this.moveDirection==="right"&&(a=i.globals.minX-n,s=i.globals.maxX-n),a=Math.floor(a),s=Math.floor(s),this.updateScrolledChart({xaxis:{min:a,max:s}},a,s)}},{key:"panScrolled",value:function(i,a){var s=this.w,n=this.xyRatios,r=L.clone(s.globals.initialConfig.yaxis),o=n.xRatio,h=s.globals.minX,c=s.globals.maxX;s.globals.isRangeBar&&(o=n.invertedYRatio,h=s.globals.minY,c=s.globals.maxY),this.moveDirection==="left"?(i=h+s.globals.gridWidth/15*o,a=c+s.globals.gridWidth/15*o):this.moveDirection==="right"&&(i=h-s.globals.gridWidth/15*o,a=c-s.globals.gridWidth/15*o),s.globals.isRangeBar||(is.globals.initialMaxX)&&(i=h,a=c);var d={min:i,max:a};s.config.chart.zoom.autoScaleYaxis&&(r=new me(this.ctx).autoScaleY(this.ctx,r,{xaxis:d}));var g={xaxis:{min:i,max:a}};s.config.chart.group||(g.yaxis=r),this.updateScrolledChart(g,i,a)}},{key:"updateScrolledChart",value:function(i,a,s){var n=this.w;this.ctx.updateHelpers._updateOptions(i,!1,!1),typeof n.config.chart.events.scrolled=="function"&&n.config.chart.events.scrolled(this.ctx,{xaxis:{min:a,max:s}})}}]),t}(Je),Qe=function(){function v(e){O(this,v),this.w=e.w,this.ttCtx=e,this.ctx=e.ctx}return I(v,[{key:"getNearestValues",value:function(e){var t=e.hoverArea,i=e.elGrid,a=e.clientX,s=e.clientY,n=this.w,r=i.getBoundingClientRect(),o=r.width,h=r.height,c=o/(n.globals.dataPoints-1),d=h/n.globals.dataPoints,g=this.hasBars();!n.globals.comboCharts&&!g||n.config.xaxis.convertedCatToNumeric||(c=o/n.globals.dataPoints);var p=a-r.left-n.globals.barPadForNumericAxis,x=s-r.top;p<0||x<0||p>o||x>h?(t.classList.remove("hovering-zoom"),t.classList.remove("hovering-pan")):n.globals.zoomEnabled?(t.classList.remove("hovering-pan"),t.classList.add("hovering-zoom")):n.globals.panEnabled&&(t.classList.remove("hovering-zoom"),t.classList.add("hovering-pan"));var f=Math.round(p/c),y=Math.floor(x/d);g&&!n.config.xaxis.convertedCatToNumeric&&(f=Math.ceil(p/c),f-=1);var w=null,S=null,k=[],l=[];if(n.globals.seriesXvalues.forEach(function(A){k.push([A[0]+1e-6].concat(A))}),n.globals.seriesYvalues.forEach(function(A){l.push([A[0]+1e-6].concat(A))}),k=k.map(function(A){return A.filter(function(P){return L.isNumber(P)})}),l=l.map(function(A){return A.filter(function(P){return L.isNumber(P)})}),n.globals.isXNumeric){var u=this.ttCtx.getElGrid().getBoundingClientRect(),m=p*(u.width/o),b=x*(u.height/h);w=(S=this.closestInMultiArray(m,b,k,l)).index,f=S.j,w!==null&&(k=n.globals.seriesXvalues[w],f=(S=this.closestInArray(m,k)).index)}return n.globals.capturedSeriesIndex=w===null?-1:w,(!f||f<1)&&(f=0),n.globals.isBarHorizontal?n.globals.capturedDataPointIndex=y:n.globals.capturedDataPointIndex=f,{capturedSeries:w,j:n.globals.isBarHorizontal?y:f,hoverX:p,hoverY:x}}},{key:"closestInMultiArray",value:function(e,t,i,a){var s=this.w,n=0,r=null,o=-1;s.globals.series.length>1?n=this.getFirstActiveXArray(i):r=0;var h=i[n][0],c=Math.abs(e-h);if(i.forEach(function(p){p.forEach(function(x,f){var y=Math.abs(e-x);y0?r:-1}),s=0;s0)for(var a=0;as?-1:0});var t=[];return e.forEach(function(i){t.push(i.querySelector(".apexcharts-marker"))}),t}},{key:"hasMarkers",value:function(){return this.getElMarkers().length>0}},{key:"getElBars",value:function(){return this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-bar-series, .apexcharts-candlestick-series, .apexcharts-boxPlot-series, .apexcharts-rangebar-series")}},{key:"hasBars",value:function(){return this.getElBars().length>0}},{key:"getHoverMarkerSize",value:function(e){var t=this.w,i=t.config.markers.hover.size;return i===void 0&&(i=t.globals.markers.size[e]+t.config.markers.hover.sizeOffset),i}},{key:"toggleAllTooltipSeriesGroups",value:function(e){var t=this.w,i=this.ttCtx;i.allTooltipSeriesGroups.length===0&&(i.allTooltipSeriesGroups=t.globals.dom.baseEl.querySelectorAll(".apexcharts-tooltip-series-group"));for(var a=i.allTooltipSeriesGroups,s=0;s
').concat(A.attrs.name,""),b+="
".concat(A.val,"
")}),k.innerHTML=m+"",l.innerHTML=b+""};r?h.globals.seriesGoals[t][i]&&Array.isArray(h.globals.seriesGoals[t][i])?u():(k.innerHTML="",l.innerHTML=""):u()}else k.innerHTML="",l.innerHTML="";f!==null&&(a[t].querySelector(".apexcharts-tooltip-text-z-label").innerHTML=h.config.tooltip.z.title,a[t].querySelector(".apexcharts-tooltip-text-z-value").innerHTML=f!==void 0?f:""),r&&y[0]&&(d==null||h.globals.ancillaryCollapsedSeriesIndices.indexOf(t)>-1||h.globals.collapsedSeriesIndices.indexOf(t)>-1?y[0].parentNode.style.display="none":y[0].parentNode.style.display=h.config.tooltip.items.display)}},{key:"toggleActiveInactiveSeries",value:function(e){var t=this.w;if(e)this.tooltipUtil.toggleAllTooltipSeriesGroups("enable");else{this.tooltipUtil.toggleAllTooltipSeriesGroups("disable");var i=t.globals.dom.baseEl.querySelector(".apexcharts-tooltip-series-group");i&&(i.classList.add("apexcharts-active"),i.style.display=t.config.tooltip.items.display)}}},{key:"getValuesToPrint",value:function(e){var t=e.i,i=e.j,a=this.w,s=this.ctx.series.filteredSeriesX(),n="",r="",o=null,h=null,c={series:a.globals.series,seriesIndex:t,dataPointIndex:i,w:a},d=a.globals.ttZFormatter;i===null?h=a.globals.series[t]:a.globals.isXNumeric&&a.config.chart.type!=="treemap"?(n=s[t][i],s[t].length===0&&(n=s[this.tooltipUtil.getFirstActiveXArray(s)][i])):n=a.globals.labels[i]!==void 0?a.globals.labels[i]:"";var g=n;return a.globals.isXNumeric&&a.config.xaxis.type==="datetime"?n=new ve(this.ctx).xLabelFormat(a.globals.ttKeyFormatter,g,g,{i:void 0,dateFormatter:new Q(this.ctx).formatDate,w:this.w}):n=a.globals.isBarHorizontal?a.globals.yLabelFormatters[0](g,c):a.globals.xLabelFormatter(g,c),a.config.tooltip.x.formatter!==void 0&&(n=a.globals.ttKeyFormatter(g,c)),a.globals.seriesZ.length>0&&a.globals.seriesZ[t].length>0&&(o=d(a.globals.seriesZ[t][i],a)),r=typeof a.config.xaxis.tooltip.formatter=="function"?a.globals.xaxisTooltipFormatter(g,c):n,{val:Array.isArray(h)?h.join(" "):h,xVal:Array.isArray(n)?n.join(" "):n,xAxisTTVal:Array.isArray(r)?r.join(" "):r,zVal:o}}},{key:"handleCustomTooltip",value:function(e){var t=e.i,i=e.j,a=e.y1,s=e.y2,n=e.w,r=this.ttCtx.getElTooltip(),o=n.config.tooltip.custom;Array.isArray(o)&&o[t]&&(o=o[t]),r.innerHTML=o({ctx:this.ctx,series:n.globals.series,seriesIndex:t,dataPointIndex:i,y1:a,y2:s,w:n})}}]),v}(),Ke=function(){function v(e){O(this,v),this.ttCtx=e,this.ctx=e.ctx,this.w=e.w}return I(v,[{key:"moveXCrosshairs",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,i=this.ttCtx,a=this.w,s=i.getElXCrosshairs(),n=e-i.xcrosshairsWidth/2,r=a.globals.labels.slice().length;if(t!==null&&(n=a.globals.gridWidth/r*t),s===null||a.globals.isBarHorizontal||(s.setAttribute("x",n),s.setAttribute("x1",n),s.setAttribute("x2",n),s.setAttribute("y2",a.globals.gridHeight),s.classList.add("apexcharts-active")),n<0&&(n=0),n>a.globals.gridWidth&&(n=a.globals.gridWidth),i.isXAxisTooltipEnabled){var o=n;a.config.xaxis.crosshairs.width!=="tickWidth"&&a.config.xaxis.crosshairs.width!=="barWidth"||(o=n+i.xcrosshairsWidth/2),this.moveXAxisTooltip(o)}}},{key:"moveYCrosshairs",value:function(e){var t=this.ttCtx;t.ycrosshairs!==null&&Y.setAttrs(t.ycrosshairs,{y1:e,y2:e}),t.ycrosshairsHidden!==null&&Y.setAttrs(t.ycrosshairsHidden,{y1:e,y2:e})}},{key:"moveXAxisTooltip",value:function(e){var t=this.w,i=this.ttCtx;if(i.xaxisTooltip!==null&&i.xcrosshairsWidth!==0){i.xaxisTooltip.classList.add("apexcharts-active");var a=i.xaxisOffY+t.config.xaxis.tooltip.offsetY+t.globals.translateY+1+t.config.xaxis.offsetY;if(e-=i.xaxisTooltip.getBoundingClientRect().width/2,!isNaN(e)){e+=t.globals.translateX;var s;s=new Y(this.ctx).getTextRects(i.xaxisTooltipText.innerHTML),i.xaxisTooltipText.style.minWidth=s.width+"px",i.xaxisTooltip.style.left=e+"px",i.xaxisTooltip.style.top=a+"px"}}}},{key:"moveYAxisTooltip",value:function(e){var t=this.w,i=this.ttCtx;i.yaxisTTEls===null&&(i.yaxisTTEls=t.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxistooltip"));var a=parseInt(i.ycrosshairsHidden.getAttribute("y1"),10),s=t.globals.translateY+a,n=i.yaxisTTEls[e].getBoundingClientRect().height,r=t.globals.translateYAxisX[e]-2;t.config.yaxis[e].opposite&&(r-=26),s-=n/2,t.globals.ignoreYAxisIndexes.indexOf(e)===-1?(i.yaxisTTEls[e].classList.add("apexcharts-active"),i.yaxisTTEls[e].style.top=s+"px",i.yaxisTTEls[e].style.left=r+t.config.yaxis[e].tooltip.offsetX+"px"):i.yaxisTTEls[e].classList.remove("apexcharts-active")}},{key:"moveTooltip",value:function(e,t){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,a=this.w,s=this.ttCtx,n=s.getElTooltip(),r=s.tooltipRect,o=i!==null?parseFloat(i):1,h=parseFloat(e)+o+5,c=parseFloat(t)+o/2;if(h>a.globals.gridWidth/2&&(h=h-r.ttWidth-o-10),h>a.globals.gridWidth-r.ttWidth-10&&(h=a.globals.gridWidth-r.ttWidth),h<-20&&(h=-20),a.config.tooltip.followCursor){var d=s.getElGrid(),g=d.getBoundingClientRect();c=s.e.clientY+a.globals.translateY-g.top-r.ttHeight/2}else a.globals.isBarHorizontal||(r.ttHeight/2+c>a.globals.gridHeight&&(c=a.globals.gridHeight-r.ttHeight+a.globals.translateY),c<0&&(c=0));isNaN(h)||(h+=a.globals.translateX,n.style.left=h+"px",n.style.top=c+"px")}},{key:"moveMarkers",value:function(e,t){var i=this.w,a=this.ttCtx;if(i.globals.markers.size[e]>0)for(var s=i.globals.dom.baseEl.querySelectorAll(" .apexcharts-series[data\\:realIndex='".concat(e,"'] .apexcharts-marker")),n=0;n0&&(c.setAttribute("r",o),c.setAttribute("cx",i),c.setAttribute("cy",a)),this.moveXCrosshairs(i),n.fixedTooltip||this.moveTooltip(i,a,o)}}},{key:"moveDynamicPointsOnHover",value:function(e){var t,i=this.ttCtx,a=i.w,s=0,n=0,r=a.globals.pointsArray;t=new re(this.ctx).getActiveConfigSeriesIndex("asc",["line","area","scatter","bubble"]);var o=i.tooltipUtil.getHoverMarkerSize(t);r[t]&&(s=r[t][e][0],n=r[t][e][1]);var h=i.tooltipUtil.getAllMarkers();if(h!==null)for(var c=0;c0?(h[c]&&h[c].setAttribute("r",o),h[c]&&h[c].setAttribute("cy",g)):h[c]&&h[c].setAttribute("r",0)}}if(this.moveXCrosshairs(s),!i.fixedTooltip){var f=n||a.globals.gridHeight;this.moveTooltip(s,f,o)}}},{key:"moveStickyTooltipOverBars",value:function(e){var t=this.w,i=this.ttCtx,a=t.globals.columnSeries?t.globals.columnSeries.length:t.globals.series.length,s=a>=2&&a%2==0?Math.floor(a/2):Math.floor(a/2)+1;t.globals.isBarHorizontal&&(s=new re(this.ctx).getActiveConfigSeriesIndex("desc")+1);var n=t.globals.dom.baseEl.querySelector(".apexcharts-bar-series .apexcharts-series[rel='".concat(s,"'] path[j='").concat(e,"'], .apexcharts-candlestick-series .apexcharts-series[rel='").concat(s,"'] path[j='").concat(e,"'], .apexcharts-boxPlot-series .apexcharts-series[rel='").concat(s,"'] path[j='").concat(e,"'], .apexcharts-rangebar-series .apexcharts-series[rel='").concat(s,"'] path[j='").concat(e,"']")),r=n?parseFloat(n.getAttribute("cx")):0,o=n?parseFloat(n.getAttribute("cy")):0,h=n?parseFloat(n.getAttribute("barWidth")):0,c=n?parseFloat(n.getAttribute("barHeight")):0,d=i.getElGrid().getBoundingClientRect(),g=n.classList.contains("apexcharts-candlestick-area")||n.classList.contains("apexcharts-boxPlot-area");if(t.globals.isXNumeric?(n&&!g&&(r-=a%2!=0?h/2:0),n&&g&&t.globals.comboCharts&&(r-=h/2)):t.globals.isBarHorizontal||(r=i.xAxisTicksPositions[e-1]+i.dataPointsDividedWidth/2,isNaN(r)&&(r=i.xAxisTicksPositions[e]-i.dataPointsDividedWidth/2)),t.globals.isBarHorizontal?(o>t.globals.gridHeight/2&&(o-=i.tooltipRect.ttHeight),(o=o+t.config.grid.padding.top+c/3)+c>t.globals.gridHeight&&(o=t.globals.gridHeight-c)):t.config.tooltip.followCursor?o=i.e.clientY-d.top-i.tooltipRect.ttHeight/2:o+i.tooltipRect.ttHeight+15>t.globals.gridHeight&&(o=t.globals.gridHeight),o<-10&&(o=-10),t.globals.isBarHorizontal||this.moveXCrosshairs(r),!i.fixedTooltip){var p=o||t.globals.gridHeight;this.moveTooltip(r,p)}}}]),v}(),Ni=function(){function v(e){O(this,v),this.w=e.w,this.ttCtx=e,this.ctx=e.ctx,this.tooltipPosition=new Ke(e)}return I(v,[{key:"drawDynamicPoints",value:function(){var e=this.w,t=new Y(this.ctx),i=new ke(this.ctx),a=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series");a=$(a),e.config.chart.stacked&&a.sort(function(d,g){return parseFloat(d.getAttribute("data:realIndex"))-parseFloat(g.getAttribute("data:realIndex"))});for(var s=0;s2&&arguments[2]!==void 0?arguments[2]:null,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,s=this.w;s.config.chart.type!=="bubble"&&this.newPointSize(e,t);var n=t.getAttribute("cx"),r=t.getAttribute("cy");if(i!==null&&a!==null&&(n=i,r=a),this.tooltipPosition.moveXCrosshairs(n),!this.fixedTooltip){if(s.config.chart.type==="radar"){var o=this.ttCtx.getElGrid(),h=o.getBoundingClientRect();n=this.ttCtx.e.clientX-h.left}this.tooltipPosition.moveTooltip(n,r,s.config.markers.hover.size)}}},{key:"enlargePoints",value:function(e){for(var t=this.w,i=this,a=this.ttCtx,s=e,n=t.globals.dom.baseEl.querySelectorAll(".apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker"),r=t.config.markers.hover.size,o=0;o=0?e[t].setAttribute("r",i):e[t].setAttribute("r",0)}}}]),v}(),Wi=function(){function v(e){O(this,v),this.w=e.w,this.ttCtx=e}return I(v,[{key:"getAttr",value:function(e,t){return parseFloat(e.target.getAttribute(t))}},{key:"handleHeatTreeTooltip",value:function(e){var t=e.e,i=e.opt,a=e.x,s=e.y,n=e.type,r=this.ttCtx,o=this.w;if(t.target.classList.contains("apexcharts-".concat(n,"-rect"))){var h=this.getAttr(t,"i"),c=this.getAttr(t,"j"),d=this.getAttr(t,"cx"),g=this.getAttr(t,"cy"),p=this.getAttr(t,"width"),x=this.getAttr(t,"height");if(r.tooltipLabels.drawSeriesTexts({ttItems:i.ttItems,i:h,j:c,shared:!1,e:t}),o.globals.capturedSeriesIndex=h,o.globals.capturedDataPointIndex=c,a=d+r.tooltipRect.ttWidth/2+p,s=g+r.tooltipRect.ttHeight/2-x/2,r.tooltipPosition.moveXCrosshairs(d+p/2),a>o.globals.gridWidth/2&&(a=d-r.tooltipRect.ttWidth/2+p),r.w.config.tooltip.followCursor){var f=o.globals.dom.elWrap.getBoundingClientRect();a=o.globals.clientX-f.left-(a>o.globals.gridWidth/2?r.tooltipRect.ttWidth:0),s=o.globals.clientY-f.top-(s>o.globals.gridHeight/2?r.tooltipRect.ttHeight:0)}}return{x:a,y:s}}},{key:"handleMarkerTooltip",value:function(e){var t,i,a=e.e,s=e.opt,n=e.x,r=e.y,o=this.w,h=this.ttCtx;if(a.target.classList.contains("apexcharts-marker")){var c=parseInt(s.paths.getAttribute("cx"),10),d=parseInt(s.paths.getAttribute("cy"),10),g=parseFloat(s.paths.getAttribute("val"));if(i=parseInt(s.paths.getAttribute("rel"),10),t=parseInt(s.paths.parentNode.parentNode.parentNode.getAttribute("rel"),10)-1,h.intersect){var p=L.findAncestor(s.paths,"apexcharts-series");p&&(t=parseInt(p.getAttribute("data:realIndex"),10))}if(h.tooltipLabels.drawSeriesTexts({ttItems:s.ttItems,i:t,j:i,shared:!h.showOnIntersect&&o.config.tooltip.shared,e:a}),a.type==="mouseup"&&h.markerClick(a,t,i),o.globals.capturedSeriesIndex=t,o.globals.capturedDataPointIndex=i,n=c,r=d+o.globals.translateY-1.4*h.tooltipRect.ttHeight,h.w.config.tooltip.followCursor){var x=h.getElGrid().getBoundingClientRect();r=h.e.clientY+o.globals.translateY-x.top}g<0&&(r=d),h.marker.enlargeCurrentPoint(i,s.paths,n,r)}return{x:n,y:r}}},{key:"handleBarTooltip",value:function(e){var t,i,a=e.e,s=e.opt,n=this.w,r=this.ttCtx,o=r.getElTooltip(),h=0,c=0,d=0,g=this.getBarTooltipXY({e:a,opt:s});t=g.i;var p=g.barHeight,x=g.j;n.globals.capturedSeriesIndex=t,n.globals.capturedDataPointIndex=x,n.globals.isBarHorizontal&&r.tooltipUtil.hasBars()||!n.config.tooltip.shared?(c=g.x,d=g.y,i=Array.isArray(n.config.stroke.width)?n.config.stroke.width[t]:n.config.stroke.width,h=c):n.globals.comboCharts||n.config.tooltip.shared||(h/=2),isNaN(d)?d=n.globals.svgHeight-r.tooltipRect.ttHeight:d<0&&(d=0);var f=parseInt(s.paths.parentNode.getAttribute("data:realIndex"),10),y=n.globals.isMultipleYAxis?n.config.yaxis[f]&&n.config.yaxis[f].reversed:n.config.yaxis[0].reversed;if(c+r.tooltipRect.ttWidth>n.globals.gridWidth&&!y?c-=r.tooltipRect.ttWidth:c<0&&(c=0),r.w.config.tooltip.followCursor){var w=r.getElGrid().getBoundingClientRect();d=r.e.clientY-w.top}r.tooltip===null&&(r.tooltip=n.globals.dom.baseEl.querySelector(".apexcharts-tooltip")),n.config.tooltip.shared||(n.globals.comboBarCount>0?r.tooltipPosition.moveXCrosshairs(h+i/2):r.tooltipPosition.moveXCrosshairs(h)),!r.fixedTooltip&&(!n.config.tooltip.shared||n.globals.isBarHorizontal&&r.tooltipUtil.hasBars())&&(y&&(c-=r.tooltipRect.ttWidth)<0&&(c=0),!y||n.globals.isBarHorizontal&&r.tooltipUtil.hasBars()||(d=d+p-2*(n.globals.series[t][x]<0?p:0)),r.tooltipRect.ttHeight+d>n.globals.gridHeight?d=n.globals.gridHeight-r.tooltipRect.ttHeight+n.globals.translateY:(d=d+n.globals.translateY-r.tooltipRect.ttHeight/2)<0&&(d=0),o.style.left=c+n.globals.translateX+"px",o.style.top=d+"px")}},{key:"getBarTooltipXY",value:function(e){var t=e.e,i=e.opt,a=this.w,s=null,n=this.ttCtx,r=0,o=0,h=0,c=0,d=0,g=t.target.classList;if(g.contains("apexcharts-bar-area")||g.contains("apexcharts-candlestick-area")||g.contains("apexcharts-boxPlot-area")||g.contains("apexcharts-rangebar-area")){var p=t.target,x=p.getBoundingClientRect(),f=i.elGrid.getBoundingClientRect(),y=x.height;d=x.height;var w=x.width,S=parseInt(p.getAttribute("cx"),10),k=parseInt(p.getAttribute("cy"),10);c=parseFloat(p.getAttribute("barWidth"));var l=t.type==="touchmove"?t.touches[0].clientX:t.clientX;s=parseInt(p.getAttribute("j"),10),r=parseInt(p.parentNode.getAttribute("rel"),10)-1;var u=p.getAttribute("data-range-y1"),m=p.getAttribute("data-range-y2");a.globals.comboCharts&&(r=parseInt(p.parentNode.getAttribute("data:realIndex"),10)),n.tooltipLabels.drawSeriesTexts({ttItems:i.ttItems,i:r,j:s,y1:u?parseInt(u,10):null,y2:m?parseInt(m,10):null,shared:!n.showOnIntersect&&a.config.tooltip.shared,e:t}),a.config.tooltip.followCursor?a.globals.isBarHorizontal?(o=l-f.left+15,h=k-n.dataPointsDividedHeight+y/2-n.tooltipRect.ttHeight/2):(o=a.globals.isXNumeric?S-w/2:S-n.dataPointsDividedWidth+w/2,h=t.clientY-f.top-n.tooltipRect.ttHeight/2-15):a.globals.isBarHorizontal?((o=S)0&&i.setAttribute("width",t.xcrosshairsWidth)}},{key:"handleYCrosshair",value:function(){var e=this.w,t=this.ttCtx;t.ycrosshairs=e.globals.dom.baseEl.querySelector(".apexcharts-ycrosshairs"),t.ycrosshairsHidden=e.globals.dom.baseEl.querySelector(".apexcharts-ycrosshairs-hidden")}},{key:"drawYaxisTooltipText",value:function(e,t,i){var a=this.ttCtx,s=this.w,n=s.globals.yLabelFormatters[e];if(a.yaxisTooltips[e]){var r=a.getElGrid().getBoundingClientRect(),o=(t-r.top)*i.yRatio[e],h=s.globals.maxYArr[e]-s.globals.minYArr[e],c=s.globals.minYArr[e]+(h-o);a.tooltipPosition.moveYCrosshairs(t-r.top),a.yaxisTooltipText[e].innerHTML=n(c),a.tooltipPosition.moveYAxisTooltip(e)}}}]),v}(),et=function(){function v(e){O(this,v),this.ctx=e,this.w=e.w;var t=this.w;this.tConfig=t.config.tooltip,this.tooltipUtil=new Qe(this),this.tooltipLabels=new Oi(this),this.tooltipPosition=new Ke(this),this.marker=new Ni(this),this.intersect=new Wi(this),this.axesTooltip=new Bi(this),this.showOnIntersect=this.tConfig.intersect,this.showTooltipTitle=this.tConfig.x.show,this.fixedTooltip=this.tConfig.fixed.enabled,this.xaxisTooltip=null,this.yaxisTTEls=null,this.isBarShared=!t.globals.isBarHorizontal&&this.tConfig.shared,this.lastHoverTime=Date.now()}return I(v,[{key:"getElTooltip",value:function(e){return e||(e=this),e.w.globals.dom.baseEl?e.w.globals.dom.baseEl.querySelector(".apexcharts-tooltip"):null}},{key:"getElXCrosshairs",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-xcrosshairs")}},{key:"getElGrid",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-grid")}},{key:"drawTooltip",value:function(e){var t=this.w;this.xyRatios=e,this.isXAxisTooltipEnabled=t.config.xaxis.tooltip.enabled&&t.globals.axisCharts,this.yaxisTooltips=t.config.yaxis.map(function(n,r){return!!(n.show&&n.tooltip.enabled&&t.globals.axisCharts)}),this.allTooltipSeriesGroups=[],t.globals.axisCharts||(this.showTooltipTitle=!1);var i=document.createElement("div");if(i.classList.add("apexcharts-tooltip"),t.config.tooltip.cssClass&&i.classList.add(t.config.tooltip.cssClass),i.classList.add("apexcharts-theme-".concat(this.tConfig.theme)),t.globals.dom.elWrap.appendChild(i),t.globals.axisCharts){this.axesTooltip.drawXaxisTooltip(),this.axesTooltip.drawYaxisTooltip(),this.axesTooltip.setXCrosshairWidth(),this.axesTooltip.handleYCrosshair();var a=new Ae(this.ctx);this.xAxisTicksPositions=a.getXAxisTicksPositions()}if(!t.globals.comboCharts&&!this.tConfig.intersect&&t.config.chart.type!=="rangeBar"||this.tConfig.shared||(this.showOnIntersect=!0),t.config.markers.size!==0&&t.globals.markers.largestSize!==0||this.marker.drawDynamicPoints(this),t.globals.collapsedSeries.length!==t.globals.series.length){this.dataPointsDividedHeight=t.globals.gridHeight/t.globals.dataPoints,this.dataPointsDividedWidth=t.globals.gridWidth/t.globals.dataPoints,this.showTooltipTitle&&(this.tooltipTitle=document.createElement("div"),this.tooltipTitle.classList.add("apexcharts-tooltip-title"),this.tooltipTitle.style.fontFamily=this.tConfig.style.fontFamily||t.config.chart.fontFamily,this.tooltipTitle.style.fontSize=this.tConfig.style.fontSize,i.appendChild(this.tooltipTitle));var s=t.globals.series.length;(t.globals.xyCharts||t.globals.comboCharts)&&this.tConfig.shared&&(s=this.showOnIntersect?1:t.globals.series.length),this.legendLabels=t.globals.dom.baseEl.querySelectorAll(".apexcharts-legend-text"),this.ttItems=this.createTTElements(s),this.addSVGEvents()}}},{key:"createTTElements",value:function(e){for(var t=this,i=this.w,a=[],s=this.getElTooltip(),n=function(o){var h=document.createElement("div");h.classList.add("apexcharts-tooltip-series-group"),h.style.order=i.config.tooltip.inverseOrder?e-o:o+1,t.tConfig.shared&&t.tConfig.enabledOnSeries&&Array.isArray(t.tConfig.enabledOnSeries)&&t.tConfig.enabledOnSeries.indexOf(o)<0&&h.classList.add("apexcharts-tooltip-series-group-hidden");var c=document.createElement("span");c.classList.add("apexcharts-tooltip-marker"),c.style.backgroundColor=i.globals.colors[o],h.appendChild(c);var d=document.createElement("div");d.classList.add("apexcharts-tooltip-text"),d.style.fontFamily=t.tConfig.style.fontFamily||i.config.chart.fontFamily,d.style.fontSize=t.tConfig.style.fontSize,["y","goals","z"].forEach(function(g){var p=document.createElement("div");p.classList.add("apexcharts-tooltip-".concat(g,"-group"));var x=document.createElement("span");x.classList.add("apexcharts-tooltip-text-".concat(g,"-label")),p.appendChild(x);var f=document.createElement("span");f.classList.add("apexcharts-tooltip-text-".concat(g,"-value")),p.appendChild(f),d.appendChild(p)}),h.appendChild(d),s.appendChild(h),a.push(h)},r=0;r0&&this.addPathsEventListeners(x,d),this.tooltipUtil.hasBars()&&!this.tConfig.shared&&this.addDatapointEventsListeners(d)}}},{key:"drawFixedTooltipRect",value:function(){var e=this.w,t=this.getElTooltip(),i=t.getBoundingClientRect(),a=i.width+10,s=i.height+10,n=this.tConfig.fixed.offsetX,r=this.tConfig.fixed.offsetY,o=this.tConfig.fixed.position.toLowerCase();return o.indexOf("right")>-1&&(n=n+e.globals.svgWidth-a+10),o.indexOf("bottom")>-1&&(r=r+e.globals.svgHeight-s-10),t.style.left=n+"px",t.style.top=r+"px",{x:n,y:r,ttWidth:a,ttHeight:s}}},{key:"addDatapointEventsListeners",value:function(e){var t=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers .apexcharts-marker, .apexcharts-bar-area, .apexcharts-candlestick-area, .apexcharts-boxPlot-area, .apexcharts-rangebar-area");this.addPathsEventListeners(t,e)}},{key:"addPathsEventListeners",value:function(e,t){for(var i=this,a=function(n){var r={paths:e[n],tooltipEl:t.tooltipEl,tooltipY:t.tooltipY,tooltipX:t.tooltipX,elGrid:t.elGrid,hoverArea:t.hoverArea,ttItems:t.ttItems};["mousemove","mouseup","touchmove","mouseout","touchend"].map(function(o){return e[n].addEventListener(o,i.onSeriesHover.bind(i,r),{capture:!1,passive:!0})})},s=0;s=100?this.seriesHover(e,t):(clearTimeout(this.seriesHoverTimeout),this.seriesHoverTimeout=setTimeout(function(){i.seriesHover(e,t)},100-a))}},{key:"seriesHover",value:function(e,t){var i=this;this.lastHoverTime=Date.now();var a=[],s=this.w;s.config.chart.group&&(a=this.ctx.getGroupedCharts()),s.globals.axisCharts&&(s.globals.minX===-1/0&&s.globals.maxX===1/0||s.globals.dataPoints===0)||(a.length?a.forEach(function(n){var r=i.getElTooltip(n),o={paths:e.paths,tooltipEl:r,tooltipY:e.tooltipY,tooltipX:e.tooltipX,elGrid:e.elGrid,hoverArea:e.hoverArea,ttItems:n.w.globals.tooltip.ttItems};n.w.globals.minX===i.w.globals.minX&&n.w.globals.maxX===i.w.globals.maxX&&n.w.globals.tooltip.seriesHoverByContext({chartCtx:n,ttCtx:n.w.globals.tooltip,opt:o,e:t})}):this.seriesHoverByContext({chartCtx:this.ctx,ttCtx:this.w.globals.tooltip,opt:e,e:t}))}},{key:"seriesHoverByContext",value:function(e){var t=e.chartCtx,i=e.ttCtx,a=e.opt,s=e.e,n=t.w,r=this.getElTooltip();r&&(i.tooltipRect={x:0,y:0,ttWidth:r.getBoundingClientRect().width,ttHeight:r.getBoundingClientRect().height},i.e=s,i.tooltipUtil.hasBars()&&!n.globals.comboCharts&&!i.isBarShared&&this.tConfig.onDatasetHover.highlightDataSeries&&new re(t).toggleSeriesOnHover(s,s.target.parentNode),i.fixedTooltip&&i.drawFixedTooltipRect(),n.globals.axisCharts?i.axisChartsTooltips({e:s,opt:a,tooltipRect:i.tooltipRect}):i.nonAxisChartsTooltips({e:s,opt:a,tooltipRect:i.tooltipRect}))}},{key:"axisChartsTooltips",value:function(e){var t,i,a=e.e,s=e.opt,n=this.w,r=s.elGrid.getBoundingClientRect(),o=a.type==="touchmove"?a.touches[0].clientX:a.clientX,h=a.type==="touchmove"?a.touches[0].clientY:a.clientY;if(this.clientY=h,this.clientX=o,n.globals.capturedSeriesIndex=-1,n.globals.capturedDataPointIndex=-1,hr.top+r.height)this.handleMouseOut(s);else{if(Array.isArray(this.tConfig.enabledOnSeries)&&!n.config.tooltip.shared){var c=parseInt(s.paths.getAttribute("index"),10);if(this.tConfig.enabledOnSeries.indexOf(c)<0)return void this.handleMouseOut(s)}var d=this.getElTooltip(),g=this.getElXCrosshairs(),p=n.globals.xyCharts||n.config.chart.type==="bar"&&!n.globals.isBarHorizontal&&this.tooltipUtil.hasBars()&&this.tConfig.shared||n.globals.comboCharts&&this.tooltipUtil.hasBars();if(a.type==="mousemove"||a.type==="touchmove"||a.type==="mouseup"){if(n.globals.collapsedSeries.length+n.globals.ancillaryCollapsedSeries.length===n.globals.series.length)return;g!==null&&g.classList.add("apexcharts-active");var x=this.yaxisTooltips.filter(function(w){return w===!0});if(this.ycrosshairs!==null&&x.length&&this.ycrosshairs.classList.add("apexcharts-active"),p&&!this.showOnIntersect)this.handleStickyTooltip(a,o,h,s);else if(n.config.chart.type==="heatmap"||n.config.chart.type==="treemap"){var f=this.intersect.handleHeatTreeTooltip({e:a,opt:s,x:t,y:i,type:n.config.chart.type});t=f.x,i=f.y,d.style.left=t+"px",d.style.top=i+"px"}else this.tooltipUtil.hasBars()&&this.intersect.handleBarTooltip({e:a,opt:s}),this.tooltipUtil.hasMarkers()&&this.intersect.handleMarkerTooltip({e:a,opt:s,x:t,y:i});if(this.yaxisTooltips.length)for(var y=0;yh.width?this.handleMouseOut(a):o!==null?this.handleStickyCapturedSeries(e,o,a,r):(this.tooltipUtil.isXoverlap(r)||s.globals.isBarHorizontal)&&this.create(e,this,0,r,a.ttItems)}},{key:"handleStickyCapturedSeries",value:function(e,t,i,a){var s=this.w;if(!this.tConfig.shared&&s.globals.series[t][a]===null)return void this.handleMouseOut(i);s.globals.series[t][a]!==void 0?this.tConfig.shared&&this.tooltipUtil.isXoverlap(a)&&this.tooltipUtil.isInitialSeriesSameLen()?this.create(e,this,t,a,i.ttItems):this.create(e,this,t,a,i.ttItems,!1):this.tooltipUtil.isXoverlap(a)&&this.create(e,this,0,a,i.ttItems)}},{key:"deactivateHoverFilter",value:function(){for(var e=this.w,t=new Y(this.ctx),i=e.globals.dom.Paper.select(".apexcharts-bar-area"),a=0;a5&&arguments[5]!==void 0?arguments[5]:null,b=this.w,A=t;e.type==="mouseup"&&this.markerClick(e,i,a),m===null&&(m=this.tConfig.shared);var P=this.tooltipUtil.hasMarkers(),C=this.tooltipUtil.getElBars();if(b.config.legend.tooltipHoverFormatter){var E=b.config.legend.tooltipHoverFormatter,T=Array.from(this.legendLabels);T.forEach(function(Ee){var Se=Ee.getAttribute("data:default-text");Ee.innerHTML=decodeURIComponent(Se)});for(var R=0;R0?A.marker.enlargePoints(a):A.tooltipPosition.moveDynamicPointsOnHover(a)),this.tooltipUtil.hasBars()&&(this.barSeriesHeight=this.tooltipUtil.getBarsHeight(C),this.barSeriesHeight>0)){var J=new Y(this.ctx),Z=b.globals.dom.Paper.select(".apexcharts-bar-area[j='".concat(a,"']"));this.deactivateHoverFilter(),this.tooltipPosition.moveStickyTooltipOverBars(a);for(var ie=0;ies.globals.gridHeight&&(x=s.globals.gridHeight-S)),{bcx:c,bcy:h,dataLabelsX:t,dataLabelsY:x,totalDataLabelsX:a,totalDataLabelsY:i,totalDataLabelsAnchor:"middle"}}},{key:"calculateBarsDataLabelsPosition",value:function(e){var t=this.w,i=e.x,a=e.i,s=e.j,n=e.realIndex,r=e.bcy,o=e.barHeight,h=e.barWidth,c=e.textRects,d=e.dataLabelsX,g=e.strokeWidth,p=e.dataLabelsConfig,x=e.barDataLabelsConfig,f=e.barTotalDataLabelsConfig,y=e.offX,w=e.offY,S=t.globals.gridHeight/t.globals.dataPoints;h=Math.abs(h);var k,l,u=r-(this.barCtx.isRangeBar?0:S)+o/2+c.height/2+w-3,m="start",b=this.barCtx.series[a][s]<0,A=i;switch(this.barCtx.isReversed&&(A=i+h-(b?2*h:0),i=t.globals.gridWidth-h),x.position){case"center":d=b?A+h/2-y:Math.max(c.width/2,A-h/2)+y;break;case"bottom":d=b?A+h-g-Math.round(c.width/2)-y:A-h+g+Math.round(c.width/2)+y;break;case"top":d=b?A-g+Math.round(c.width/2)-y:A-g-Math.round(c.width/2)+y}if(this.barCtx.lastActiveBarSerieIndex===n&&f.enabled){var P=new Y(this.barCtx.ctx).getTextRects(this.getStackedTotalDataLabel({realIndex:n,j:s}),p.fontSize);b?(k=A-g+Math.round(P.width/2)-y-f.offsetX-15,m="end"):k=A-g-Math.round(P.width/2)+y+f.offsetX+15,l=u+f.offsetY}return t.config.chart.stacked||(d<0?d=d+c.width+g:d+c.width/2>t.globals.gridWidth&&(d=t.globals.gridWidth-c.width-g)),{bcx:i,bcy:r,dataLabelsX:d,dataLabelsY:u,totalDataLabelsX:k,totalDataLabelsY:l,totalDataLabelsAnchor:m}}},{key:"drawCalculatedDataLabels",value:function(e){var t=e.x,i=e.y,a=e.val,s=e.i,n=e.j,r=e.textRects,o=e.barHeight,h=e.barWidth,c=e.dataLabelsConfig,d=this.w,g="rotate(0)";d.config.plotOptions.bar.dataLabels.orientation==="vertical"&&(g="rotate(-90, ".concat(t,", ").concat(i,")"));var p=new xe(this.barCtx.ctx),x=new Y(this.barCtx.ctx),f=c.formatter,y=null,w=d.globals.collapsedSeriesIndices.indexOf(s)>-1;if(c.enabled&&!w){y=x.group({class:"apexcharts-data-labels",transform:g});var S="";a!==void 0&&(S=f(a,z(z({},d),{},{seriesIndex:s,dataPointIndex:n,w:d})));var k=d.globals.series[s][n]<0,l=d.config.plotOptions.bar.dataLabels.position;d.config.plotOptions.bar.dataLabels.orientation==="vertical"&&(l==="top"&&(c.textAnchor=k?"end":"start"),l==="center"&&(c.textAnchor="middle"),l==="bottom"&&(c.textAnchor=k?"end":"start")),this.barCtx.isRangeBar&&this.barCtx.barOptions.dataLabels.hideOverflowingLabels&&hMath.abs(h)&&(S=""):r.height/1.6>Math.abs(o)&&(S=""));var u=z({},c);this.barCtx.isHorizontal&&a<0&&(c.textAnchor==="start"?u.textAnchor="end":c.textAnchor==="end"&&(u.textAnchor="start")),p.plotDataLabelsText({x:t,y:i,text:S,i:s,j:n,parent:y,dataLabelsConfig:u,alwaysDrawDataLabel:!0,offsetCorrection:!0})}return y}},{key:"drawTotalDataLabels",value:function(e){var t,i=e.x,a=e.y,s=e.val,n=e.realIndex,r=e.textAnchor,o=e.barTotalDataLabelsConfig,h=new Y(this.barCtx.ctx);return o.enabled&&i!==void 0&&a!==void 0&&this.barCtx.lastActiveBarSerieIndex===n&&(t=h.drawText({x:i,y:a,foreColor:o.style.color,text:s,textAnchor:r,fontFamily:o.style.fontFamily,fontSize:o.style.fontSize,fontWeight:o.style.fontWeight})),t}}]),v}(),_i=function(){function v(e){O(this,v),this.w=e.w,this.barCtx=e}return I(v,[{key:"initVariables",value:function(e){var t=this.w;this.barCtx.series=e,this.barCtx.totalItems=0,this.barCtx.seriesLen=0,this.barCtx.visibleI=-1,this.barCtx.visibleItems=1;for(var i=0;i0&&(this.barCtx.seriesLen=this.barCtx.seriesLen+1,this.barCtx.totalItems+=e[i].length),t.globals.isXNumeric)for(var a=0;at.globals.minX&&t.globals.seriesX[i][a]0&&(a=h.globals.minXDiff/g),(n=a/this.barCtx.seriesLen*parseInt(this.barCtx.barOptions.columnWidth,10)/100)<1&&(n=1)}r=h.globals.gridHeight-this.barCtx.baseLineY[this.barCtx.yaxisIndex]-(this.barCtx.isReversed?h.globals.gridHeight:0)+(this.barCtx.isReversed?2*this.barCtx.baseLineY[this.barCtx.yaxisIndex]:0),e=h.globals.padHorizontal+(a-n*this.barCtx.seriesLen)/2}return{x:e,y:t,yDivision:i,xDivision:a,barHeight:s,barWidth:n,zeroH:r,zeroW:o}}},{key:"getPathFillColor",value:function(e,t,i,a){var s,n,r,o,h=this.w,c=new ne(this.barCtx.ctx),d=null,g=this.barCtx.barOptions.distributed?i:t;return this.barCtx.barOptions.colors.ranges.length>0&&this.barCtx.barOptions.colors.ranges.map(function(p){e[t][i]>=p.from&&e[t][i]<=p.to&&(d=p.color)}),h.config.series[t].data[i]&&h.config.series[t].data[i].fillColor&&(d=h.config.series[t].data[i].fillColor),c.fillPath({seriesNumber:this.barCtx.barOptions.distributed?g:a,dataPointIndex:i,color:d,value:e[t][i],fillConfig:(s=h.config.series[t].data[i])===null||s===void 0?void 0:s.fill,fillType:(n=h.config.series[t].data[i])!==null&&n!==void 0&&(r=n.fill)!==null&&r!==void 0&&r.type?(o=h.config.series[t].data[i])===null||o===void 0?void 0:o.fill.type:h.config.fill.type})}},{key:"getStrokeWidth",value:function(e,t,i){var a=0,s=this.w;return this.barCtx.series[e][t]===void 0||this.barCtx.series[e][t]===null?this.barCtx.isNullValue=!0:this.barCtx.isNullValue=!1,s.config.stroke.show&&(this.barCtx.isNullValue||(a=Array.isArray(this.barCtx.strokeWidth)?this.barCtx.strokeWidth[i]:this.barCtx.strokeWidth)),a}},{key:"shouldApplyRadius",value:function(e){var t=this.w,i=!1;return t.config.plotOptions.bar.borderRadius>0&&(t.config.chart.stacked&&t.config.plotOptions.bar.borderRadiusWhenStacked==="last"?this.barCtx.lastActiveBarSerieIndex===e&&(i=!0):i=!0),i}},{key:"barBackground",value:function(e){var t=e.j,i=e.i,a=e.x1,s=e.x2,n=e.y1,r=e.y2,o=e.elSeries,h=this.w,c=new Y(this.barCtx.ctx),d=new re(this.barCtx.ctx).getActiveConfigSeriesIndex();if(this.barCtx.barOptions.colors.backgroundBarColors.length>0&&d===i){t>=this.barCtx.barOptions.colors.backgroundBarColors.length&&(t%=this.barCtx.barOptions.colors.backgroundBarColors.length);var g=this.barCtx.barOptions.colors.backgroundBarColors[t],p=c.drawRect(a!==void 0?a:0,n!==void 0?n:0,s!==void 0?s:h.globals.gridWidth,r!==void 0?r:h.globals.gridHeight,this.barCtx.barOptions.colors.backgroundBarRadius,g,this.barCtx.barOptions.colors.backgroundBarOpacity);o.add(p),p.node.classList.add("apexcharts-backgroundBar")}}},{key:"getColumnPaths",value:function(e){var t,i=e.barWidth,a=e.barXPosition,s=e.y1,n=e.y2,r=e.strokeWidth,o=e.realIndex,h=e.i,c=e.j,d=e.w,g=new Y(this.barCtx.ctx);(r=Array.isArray(r)?r[o]:r)||(r=0);var p=i,x=a;(t=d.config.series[o].data[c])!==null&&t!==void 0&&t.columnWidthOffset&&(x=a-d.config.series[o].data[c].columnWidthOffset/2,p=i+d.config.series[o].data[c].columnWidthOffset);var f=x,y=x+p;s+=.001,n+=.001;var w=g.move(f,s),S=g.move(f,s),k=g.line(y-r,s);return d.globals.previousPaths.length>0&&(S=this.barCtx.getPreviousPath(o,c,!1)),w=w+g.line(f,n)+g.line(y-r,n)+g.line(y-r,s)+(d.config.plotOptions.bar.borderRadiusApplication==="around"?" Z":" z"),S=S+g.line(f,s)+k+k+k+k+k+g.line(f,s)+(d.config.plotOptions.bar.borderRadiusApplication==="around"?" Z":" z"),this.shouldApplyRadius(o)&&(w=g.roundPathCorners(w,d.config.plotOptions.bar.borderRadius)),d.config.chart.stacked&&(this.barCtx.yArrj.push(n),this.barCtx.yArrjF.push(Math.abs(s-n)),this.barCtx.yArrjVal.push(this.barCtx.series[h][c])),{pathTo:w,pathFrom:S}}},{key:"getBarpaths",value:function(e){var t,i=e.barYPosition,a=e.barHeight,s=e.x1,n=e.x2,r=e.strokeWidth,o=e.realIndex,h=e.i,c=e.j,d=e.w,g=new Y(this.barCtx.ctx);(r=Array.isArray(r)?r[o]:r)||(r=0);var p=i,x=a;(t=d.config.series[o].data[c])!==null&&t!==void 0&&t.barHeightOffset&&(p=i-d.config.series[o].data[c].barHeightOffset/2,x=a+d.config.series[o].data[c].barHeightOffset);var f=p,y=p+x;s+=.001,n+=.001;var w=g.move(s,f),S=g.move(s,f);d.globals.previousPaths.length>0&&(S=this.barCtx.getPreviousPath(o,c,!1));var k=g.line(s,y-r);return w=w+g.line(n,f)+g.line(n,y-r)+k+(d.config.plotOptions.bar.borderRadiusApplication==="around"?" Z":" z"),S=S+g.line(s,f)+k+k+k+k+k+g.line(s,f)+(d.config.plotOptions.bar.borderRadiusApplication==="around"?" Z":" z"),this.shouldApplyRadius(o)&&(w=g.roundPathCorners(w,d.config.plotOptions.bar.borderRadius)),d.config.chart.stacked&&(this.barCtx.xArrj.push(n),this.barCtx.xArrjF.push(Math.abs(s-n)),this.barCtx.xArrjVal.push(this.barCtx.series[h][c])),{pathTo:w,pathFrom:S}}},{key:"checkZeroSeries",value:function(e){for(var t=e.series,i=this.w,a=0;a=0;r--)this.barCtx.zeroSerieses.indexOf(r)>-1&&r===this.radiusOnSeriesNumber&&(this.barCtx.radiusOnSeriesNumber-=1);for(var o=t.length-1;o>=0;o--)i.globals.collapsedSeriesIndices.indexOf(this.barCtx.radiusOnSeriesNumber)>-1&&(this.barCtx.radiusOnSeriesNumber-=1)}},{key:"getXForValue",value:function(e,t){var i=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],a=i?t:null;return e!=null&&(a=t+e/this.barCtx.invertedYRatio-2*(this.barCtx.isReversed?e/this.barCtx.invertedYRatio:0)),a}},{key:"getYForValue",value:function(e,t){var i=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],a=i?t:null;return e!=null&&(a=t-e/this.barCtx.yRatio[this.barCtx.yaxisIndex]+2*(this.barCtx.isReversed?e/this.barCtx.yRatio[this.barCtx.yaxisIndex]:0)),a}},{key:"getGoalValues",value:function(e,t,i,a,s){var n=this,r=this.w,o=[];return r.globals.seriesGoals[a]&&r.globals.seriesGoals[a][s]&&Array.isArray(r.globals.seriesGoals[a][s])&&r.globals.seriesGoals[a][s].forEach(function(h){var c;o.push((D(c={},e,e==="x"?n.getXForValue(h.value,t,!1):n.getYForValue(h.value,i,!1)),D(c,"attrs",h),c))}),o}},{key:"drawGoalLine",value:function(e){var t=e.barXPosition,i=e.barYPosition,a=e.goalX,s=e.goalY,n=e.barWidth,r=e.barHeight,o=new Y(this.barCtx.ctx),h=o.group({className:"apexcharts-bar-goals-groups"}),c=null;return this.barCtx.isHorizontal?Array.isArray(a)&&a.forEach(function(d){var g=d.attrs.strokeHeight!==void 0?d.attrs.strokeHeight:r/2,p=i+g+r/2;c=o.drawLine(d.x,p-2*g,d.x,p,d.attrs.strokeColor?d.attrs.strokeColor:void 0,d.attrs.strokeDashArray,d.attrs.strokeWidth?d.attrs.strokeWidth:2,d.attrs.strokeLineCap),h.add(c)}):Array.isArray(s)&&s.forEach(function(d){var g=d.attrs.strokeWidth!==void 0?d.attrs.strokeWidth:n/2,p=t+g+n/2;c=o.drawLine(p-2*g,d.y,p,d.y,d.attrs.strokeColor?d.attrs.strokeColor:void 0,d.attrs.strokeDashArray,d.attrs.strokeHeight?d.attrs.strokeHeight:2,d.attrs.strokeLineCap),h.add(c)}),h}}]),v}(),be=function(){function v(e,t){O(this,v),this.ctx=e,this.w=e.w;var i=this.w;this.barOptions=i.config.plotOptions.bar,this.isHorizontal=this.barOptions.horizontal,this.strokeWidth=i.config.stroke.width,this.isNullValue=!1,this.isRangeBar=i.globals.seriesRange.length&&this.isHorizontal,this.xyRatios=t,this.xyRatios!==null&&(this.xRatio=t.xRatio,this.initialXRatio=t.initialXRatio,this.yRatio=t.yRatio,this.invertedXRatio=t.invertedXRatio,this.invertedYRatio=t.invertedYRatio,this.baseLineY=t.baseLineY,this.baseLineInvertedY=t.baseLineInvertedY),this.yaxisIndex=0,this.seriesLen=0;var a=new re(this.ctx);this.lastActiveBarSerieIndex=a.getActiveConfigSeriesIndex("desc",["bar","column"]);var s=a.getBarSeriesIndices(),n=new q(this.ctx);this.stackedSeriesTotals=n.getStackedSeriesTotals(this.w.config.series.map(function(r,o){return s.indexOf(o)===-1?o:-1}).filter(function(r){return r!==-1})),this.barHelpers=new _i(this)}return I(v,[{key:"draw",value:function(e,t){var i=this.w,a=new Y(this.ctx),s=new q(this.ctx,i);e=s.getLogSeries(e),this.series=e,this.yRatio=s.getLogYRatios(this.yRatio),this.barHelpers.initVariables(e);var n=a.group({class:"apexcharts-bar-series apexcharts-plot-series"});i.config.dataLabels.enabled&&this.totalItems>this.barOptions.dataLabels.maxItems&&console.warn("WARNING: DataLabels are enabled but there are too many to display. This may cause performance issue when rendering.");for(var r=0,o=0;r0&&(this.visibleI=this.visibleI+1);var k=0,l=0;this.yRatio.length>1&&(this.yaxisIndex=w),this.isReversed=i.config.yaxis[this.yaxisIndex]&&i.config.yaxis[this.yaxisIndex].reversed;var u=this.barHelpers.initialPositions();x=u.y,k=u.barHeight,c=u.yDivision,g=u.zeroW,p=u.x,l=u.barWidth,h=u.xDivision,d=u.zeroH,this.horizontal||y.push(p+l/2);for(var m=a.group({class:"apexcharts-datalabels","data:realIndex":w}),b=a.group({class:"apexcharts-bar-goals-markers",style:"pointer-events: none"}),A=0;A0&&y.push(p+l/2),f.push(x);var R=this.barHelpers.getPathFillColor(e,r,A,w);this.renderSeries({realIndex:w,pathFill:R,j:A,i:r,pathFrom:C.pathFrom,pathTo:C.pathTo,strokeWidth:P,elSeries:S,x:p,y:x,series:e,barHeight:k,barWidth:l,elDataLabelsWrap:m,elGoalsMarkers:b,visibleSeries:this.visibleI,type:"bar"})}i.globals.seriesXvalues[w]=y,i.globals.seriesYvalues[w]=f,n.add(S)}return n}},{key:"renderSeries",value:function(e){var t=e.realIndex,i=e.pathFill,a=e.lineFill,s=e.j,n=e.i,r=e.pathFrom,o=e.pathTo,h=e.strokeWidth,c=e.elSeries,d=e.x,g=e.y,p=e.y1,x=e.y2,f=e.series,y=e.barHeight,w=e.barWidth,S=e.barYPosition,k=e.elDataLabelsWrap,l=e.elGoalsMarkers,u=e.visibleSeries,m=e.type,b=this.w,A=new Y(this.ctx);a||(a=this.barOptions.distributed?b.globals.stroke.colors[s]:b.globals.stroke.colors[t]),b.config.series[n].data[s]&&b.config.series[n].data[s].strokeColor&&(a=b.config.series[n].data[s].strokeColor),this.isNullValue&&(i="none");var P=s/b.config.chart.animations.animateGradually.delay*(b.config.chart.animations.speed/b.globals.dataPoints)/2.4,C=A.renderPaths({i:n,j:s,realIndex:t,pathFrom:r,pathTo:o,stroke:a,strokeWidth:h,strokeLineCap:b.config.stroke.lineCap,fill:i,animationDelay:P,initialSpeed:b.config.chart.animations.speed,dataChangeSpeed:b.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-".concat(m,"-area")});C.attr("clip-path","url(#gridRectMask".concat(b.globals.cuid,")"));var E=b.config.forecastDataPoints;E.count>0&&s>=b.globals.dataPoints-E.count&&(C.node.setAttribute("stroke-dasharray",E.dashArray),C.node.setAttribute("stroke-width",E.strokeWidth),C.node.setAttribute("fill-opacity",E.fillOpacity)),p!==void 0&&x!==void 0&&(C.attr("data-range-y1",p),C.attr("data-range-y2",x)),new ee(this.ctx).setSelectionFilter(C,t,s),c.add(C);var T=new Gi(this).handleBarDataLabels({x:d,y:g,y1:p,y2:x,i:n,j:s,series:f,realIndex:t,barHeight:y,barWidth:w,barYPosition:S,renderedPath:C,visibleSeries:u});return T.dataLabels!==null&&k.add(T.dataLabels),T.totalDataLabels&&k.add(T.totalDataLabels),c.add(k),l&&c.add(l),c}},{key:"drawBarPaths",value:function(e){var t=e.indexes,i=e.barHeight,a=e.strokeWidth,s=e.zeroW,n=e.x,r=e.y,o=e.yDivision,h=e.elSeries,c=this.w,d=t.i,g=t.j;c.globals.isXNumeric&&(r=(c.globals.seriesX[d][g]-c.globals.minX)/this.invertedXRatio-i);var p=r+i*this.visibleI;n=this.barHelpers.getXForValue(this.series[d][g],s);var x=this.barHelpers.getBarpaths({barYPosition:p,barHeight:i,x1:s,x2:n,strokeWidth:a,series:this.series,realIndex:t.realIndex,i:d,j:g,w:c});return c.globals.isXNumeric||(r+=o),this.barHelpers.barBackground({j:g,i:d,y1:p-i*this.visibleI,y2:i*this.seriesLen,elSeries:h}),{pathTo:x.pathTo,pathFrom:x.pathFrom,x:n,y:r,goalX:this.barHelpers.getGoalValues("x",s,null,d,g),barYPosition:p}}},{key:"drawColumnPaths",value:function(e){var t=e.indexes,i=e.x,a=e.y,s=e.xDivision,n=e.barWidth,r=e.zeroH,o=e.strokeWidth,h=e.elSeries,c=this.w,d=t.realIndex,g=t.i,p=t.j,x=t.bc;if(c.globals.isXNumeric){var f=d;c.globals.seriesX[d].length||(f=c.globals.maxValsInArrayIndex),c.globals.seriesX[f][p]&&(i=(c.globals.seriesX[f][p]-c.globals.minX)/this.xRatio-n*this.seriesLen/2)}var y=i+n*this.visibleI;a=this.barHelpers.getYForValue(this.series[g][p],r);var w=this.barHelpers.getColumnPaths({barXPosition:y,barWidth:n,y1:r,y2:a,strokeWidth:o,series:this.series,realIndex:t.realIndex,i:g,j:p,w:c});return c.globals.isXNumeric||(i+=s),this.barHelpers.barBackground({bc:x,j:p,i:g,x1:y-o/2-n*this.visibleI,x2:n*this.seriesLen+o/2,elSeries:h}),{pathTo:w.pathTo,pathFrom:w.pathFrom,x:i,y:a,goalY:this.barHelpers.getGoalValues("y",null,r,g,p),barXPosition:y}}},{key:"getPreviousPath",value:function(e,t){for(var i,a=this.w,s=0;s0&&parseInt(n.realIndex,10)===parseInt(e,10)&&a.globals.previousPaths[s].paths[t]!==void 0&&(i=a.globals.previousPaths[s].paths[t].d)}return i}}]),v}(),tt=function(v){N(t,v);var e=oe(t);function t(){return O(this,t),e.apply(this,arguments)}return I(t,[{key:"draw",value:function(i,a){var s=this,n=this.w;this.graphics=new Y(this.ctx),this.bar=new be(this.ctx,this.xyRatios);var r=new q(this.ctx,n);i=r.getLogSeries(i),this.yRatio=r.getLogYRatios(this.yRatio),this.barHelpers.initVariables(i),n.config.chart.stackType==="100%"&&(i=n.globals.seriesPercent.slice()),this.series=i,this.totalItems=0,this.prevY=[],this.prevX=[],this.prevYF=[],this.prevXF=[],this.prevYVal=[],this.prevXVal=[],this.xArrj=[],this.xArrjF=[],this.xArrjVal=[],this.yArrj=[],this.yArrjF=[],this.yArrjVal=[];for(var o=0;o0&&(this.totalItems+=i[o].length);for(var h=this.graphics.group({class:"apexcharts-bar-series apexcharts-plot-series"}),c=0,d=0,g=function(f,y){var w=void 0,S=void 0,k=void 0,l=void 0,u=[],m=[],b=n.globals.comboCharts?a[f]:f;s.yRatio.length>1&&(s.yaxisIndex=b),s.isReversed=n.config.yaxis[s.yaxisIndex]&&n.config.yaxis[s.yaxisIndex].reversed;var A=s.graphics.group({class:"apexcharts-series",seriesName:L.escapeString(n.globals.seriesNames[b]),rel:f+1,"data:realIndex":b});s.ctx.series.addCollapsedClassToSeries(A,b);var P=s.graphics.group({class:"apexcharts-datalabels","data:realIndex":b}),C=s.graphics.group({class:"apexcharts-bar-goals-markers",style:"pointer-events: none"}),E=0,T=0,R=s.initialPositions(c,d,w,S,k,l);d=R.y,E=R.barHeight,S=R.yDivision,l=R.zeroW,c=R.x,T=R.barWidth,w=R.xDivision,k=R.zeroH,s.yArrj=[],s.yArrjF=[],s.yArrjVal=[],s.xArrj=[],s.xArrjF=[],s.xArrjVal=[],s.prevY.length===1&&s.prevY[0].every(function(Z){return isNaN(Z)})&&(s.prevY[0]=s.prevY[0].map(function(Z){return k}),s.prevYF[0]=s.prevYF[0].map(function(Z){return 0}));for(var H=0;H1?(s=d.globals.minXDiff/this.xRatio)*parseInt(this.barOptions.columnWidth,10)/100:c*parseInt(d.config.plotOptions.bar.columnWidth,10)/100,r=d.globals.gridHeight-this.baseLineY[this.yaxisIndex]-(this.isReversed?d.globals.gridHeight:0)+(this.isReversed?2*this.baseLineY[this.yaxisIndex]:0),i=d.globals.padHorizontal+(s-c)/2),{x:i,y:a,yDivision:n,xDivision:s,barHeight:h,barWidth:c,zeroH:r,zeroW:o}}},{key:"drawStackedBarPaths",value:function(i){for(var a,s=i.indexes,n=i.barHeight,r=i.strokeWidth,o=i.zeroW,h=i.x,c=i.y,d=i.yDivision,g=i.elSeries,p=this.w,x=c,f=s.i,y=s.j,w=0,S=0;S0){var k=o;this.prevXVal[f-1][y]<0?k=this.series[f][y]>=0?this.prevX[f-1][y]+w-2*(this.isReversed?w:0):this.prevX[f-1][y]:this.prevXVal[f-1][y]>=0&&(k=this.series[f][y]>=0?this.prevX[f-1][y]:this.prevX[f-1][y]-w+2*(this.isReversed?w:0)),a=k}else a=o;h=this.series[f][y]===null?a:a+this.series[f][y]/this.invertedYRatio-2*(this.isReversed?this.series[f][y]/this.invertedYRatio:0);var l=this.barHelpers.getBarpaths({barYPosition:x,barHeight:n,x1:a,x2:h,strokeWidth:r,series:this.series,realIndex:s.realIndex,i:f,j:y,w:p});return this.barHelpers.barBackground({j:y,i:f,y1:x,y2:n,elSeries:g}),c+=d,{pathTo:l.pathTo,pathFrom:l.pathFrom,goalX:this.barHelpers.getGoalValues("x",o,null,f,y),barYPosition:x,x:h,y:c}}},{key:"drawStackedColumnPaths",value:function(i){var a=i.indexes,s=i.x,n=i.y,r=i.xDivision,o=i.barWidth,h=i.zeroH;i.strokeWidth;var c=i.elSeries,d=this.w,g=a.i,p=a.j,x=a.bc;if(d.globals.isXNumeric){var f=d.globals.seriesX[g][p];f||(f=0),s=(f-d.globals.minX)/this.xRatio-o/2}for(var y,w=s,S=0,k=0;k0&&!d.globals.isXNumeric||g>0&&d.globals.isXNumeric&&d.globals.seriesX[g-1][p]===d.globals.seriesX[g][p]){var l,u,m=Math.min(this.yRatio.length+1,g+1);if(this.prevY[g-1]!==void 0){for(var b=1;b=0?u-S+2*(this.isReversed?S:0):u;break}if(this.prevYVal[g-A][p]>=0){l=this.series[g][p]>=0?u:u+S-2*(this.isReversed?S:0);break}}l===void 0&&(l=d.globals.gridHeight),y=this.prevYF[0].every(function(C){return C===0})&&this.prevYF.slice(1,g).every(function(C){return C.every(function(E){return isNaN(E)})})?h:l}else y=h;n=this.series[g][p]?y-this.series[g][p]/this.yRatio[this.yaxisIndex]+2*(this.isReversed?this.series[g][p]/this.yRatio[this.yaxisIndex]:0):y;var P=this.barHelpers.getColumnPaths({barXPosition:w,barWidth:o,y1:y,y2:n,yRatio:this.yRatio[this.yaxisIndex],strokeWidth:this.strokeWidth,series:this.series,realIndex:a.realIndex,i:g,j:p,w:d});return this.barHelpers.barBackground({bc:x,j:p,i:g,x1:w,x2:o,elSeries:c}),s+=r,{pathTo:P.pathTo,pathFrom:P.pathFrom,goalY:this.barHelpers.getGoalValues("y",null,h,g,p),barXPosition:w,x:d.globals.isXNumeric?s-r:s,y:n}}}]),t}(be),De=function(v){N(t,v);var e=oe(t);function t(){return O(this,t),e.apply(this,arguments)}return I(t,[{key:"draw",value:function(i,a){var s=this,n=this.w,r=new Y(this.ctx),o=new ne(this.ctx);this.candlestickOptions=this.w.config.plotOptions.candlestick,this.boxOptions=this.w.config.plotOptions.boxPlot,this.isHorizontal=n.config.plotOptions.bar.horizontal;var h=new q(this.ctx,n);i=h.getLogSeries(i),this.series=i,this.yRatio=h.getLogYRatios(this.yRatio),this.barHelpers.initVariables(i);for(var c=r.group({class:"apexcharts-".concat(n.config.chart.type,"-series apexcharts-plot-series")}),d=function(p){s.isBoxPlot=n.config.chart.type==="boxPlot"||n.config.series[p].type==="boxPlot";var x,f,y,w,S=void 0,k=void 0,l=[],u=[],m=n.globals.comboCharts?a[p]:p,b=r.group({class:"apexcharts-series",seriesName:L.escapeString(n.globals.seriesNames[m]),rel:p+1,"data:realIndex":m});s.ctx.series.addCollapsedClassToSeries(b,m),i[p].length>0&&(s.visibleI=s.visibleI+1);var A,P;s.yRatio.length>1&&(s.yaxisIndex=m);var C=s.barHelpers.initialPositions();k=C.y,A=C.barHeight,f=C.yDivision,w=C.zeroW,S=C.x,P=C.barWidth,x=C.xDivision,y=C.zeroH,u.push(S+P/2);for(var E=r.group({class:"apexcharts-datalabels","data:realIndex":m}),T=function(H){var W=s.barHelpers.getStrokeWidth(p,H,m),B=null,_={indexes:{i:p,j:H,realIndex:m},x:S,y:k,strokeWidth:W,elSeries:b};B=s.isHorizontal?s.drawHorizontalBoxPaths(z(z({},_),{},{yDivision:f,barHeight:A,zeroW:w})):s.drawVerticalBoxPaths(z(z({},_),{},{xDivision:x,barWidth:P,zeroH:y})),k=B.y,S=B.x,H>0&&u.push(S+P/2),l.push(k),B.pathTo.forEach(function(j,J){var Z=!s.isBoxPlot&&s.candlestickOptions.wick.useFillColor?B.color[J]:n.globals.stroke.colors[p],ie=o.fillPath({seriesNumber:m,dataPointIndex:H,color:B.color[J],value:i[p][H]});s.renderSeries({realIndex:m,pathFill:ie,lineFill:Z,j:H,i:p,pathFrom:B.pathFrom,pathTo:j,strokeWidth:W,elSeries:b,x:S,y:k,series:i,barHeight:A,barWidth:P,elDataLabelsWrap:E,visibleSeries:s.visibleI,type:n.config.chart.type})})},R=0;Rl.c&&(x=!1);var b=Math.min(l.o,l.c),A=Math.max(l.o,l.c),P=l.m;c.globals.isXNumeric&&(s=(c.globals.seriesX[k][p]-c.globals.minX)/this.xRatio-r/2);var C=s+r*this.visibleI;this.series[g][p]===void 0||this.series[g][p]===null?(b=o,A=o):(b=o-b/S,A=o-A/S,u=o-l.h/S,m=o-l.l/S,P=o-l.m/S);var E=d.move(C,o),T=d.move(C+r/2,b);return c.globals.previousPaths.length>0&&(T=this.getPreviousPath(k,p,!0)),E=this.isBoxPlot?[d.move(C,b)+d.line(C+r/2,b)+d.line(C+r/2,u)+d.line(C+r/4,u)+d.line(C+r-r/4,u)+d.line(C+r/2,u)+d.line(C+r/2,b)+d.line(C+r,b)+d.line(C+r,P)+d.line(C,P)+d.line(C,b+h/2),d.move(C,P)+d.line(C+r,P)+d.line(C+r,A)+d.line(C+r/2,A)+d.line(C+r/2,m)+d.line(C+r-r/4,m)+d.line(C+r/4,m)+d.line(C+r/2,m)+d.line(C+r/2,A)+d.line(C,A)+d.line(C,P)+"z"]:[d.move(C,A)+d.line(C+r/2,A)+d.line(C+r/2,u)+d.line(C+r/2,A)+d.line(C+r,A)+d.line(C+r,b)+d.line(C+r/2,b)+d.line(C+r/2,m)+d.line(C+r/2,b)+d.line(C,b)+d.line(C,A-h/2)],T+=d.move(C,b),c.globals.isXNumeric||(s+=n),{pathTo:E,pathFrom:T,x:s,y:A,barXPosition:C,color:this.isBoxPlot?w:x?[f]:[y]}}},{key:"drawHorizontalBoxPaths",value:function(i){var a=i.indexes;i.x;var s=i.y,n=i.yDivision,r=i.barHeight,o=i.zeroW,h=i.strokeWidth,c=this.w,d=new Y(this.ctx),g=a.i,p=a.j,x=this.boxOptions.colors.lower;this.isBoxPlot&&(x=[this.boxOptions.colors.lower,this.boxOptions.colors.upper]);var f=this.invertedYRatio,y=a.realIndex,w=this.getOHLCValue(y,p),S=o,k=o,l=Math.min(w.o,w.c),u=Math.max(w.o,w.c),m=w.m;c.globals.isXNumeric&&(s=(c.globals.seriesX[y][p]-c.globals.minX)/this.invertedXRatio-r/2);var b=s+r*this.visibleI;this.series[g][p]===void 0||this.series[g][p]===null?(l=o,u=o):(l=o+l/f,u=o+u/f,S=o+w.h/f,k=o+w.l/f,m=o+w.m/f);var A=d.move(o,b),P=d.move(l,b+r/2);return c.globals.previousPaths.length>0&&(P=this.getPreviousPath(y,p,!0)),A=[d.move(l,b)+d.line(l,b+r/2)+d.line(S,b+r/2)+d.line(S,b+r/2-r/4)+d.line(S,b+r/2+r/4)+d.line(S,b+r/2)+d.line(l,b+r/2)+d.line(l,b+r)+d.line(m,b+r)+d.line(m,b)+d.line(l+h/2,b),d.move(m,b)+d.line(m,b+r)+d.line(u,b+r)+d.line(u,b+r/2)+d.line(k,b+r/2)+d.line(k,b+r-r/4)+d.line(k,b+r/4)+d.line(k,b+r/2)+d.line(u,b+r/2)+d.line(u,b)+d.line(m,b)+"z"],P+=d.move(l,b),c.globals.isXNumeric||(s+=n),{pathTo:A,pathFrom:P,x:u,y:s,barYPosition:b,color:x}}},{key:"getOHLCValue",value:function(i,a){var s=this.w;return{o:this.isBoxPlot?s.globals.seriesCandleH[i][a]:s.globals.seriesCandleO[i][a],h:this.isBoxPlot?s.globals.seriesCandleO[i][a]:s.globals.seriesCandleH[i][a],m:s.globals.seriesCandleM[i][a],l:this.isBoxPlot?s.globals.seriesCandleC[i][a]:s.globals.seriesCandleL[i][a],c:this.isBoxPlot?s.globals.seriesCandleL[i][a]:s.globals.seriesCandleC[i][a]}}}]),t}(be),it=function(){function v(e){O(this,v),this.ctx=e,this.w=e.w}return I(v,[{key:"checkColorRange",value:function(){var e=this.w,t=!1,i=e.config.plotOptions[e.config.chart.type];return i.colorScale.ranges.length>0&&i.colorScale.ranges.map(function(a,s){a.from<=0&&(t=!0)}),t}},{key:"getShadeColor",value:function(e,t,i,a){var s=this.w,n=1,r=s.config.plotOptions[e].shadeIntensity,o=this.determineColor(e,t,i);s.globals.hasNegs||a?n=s.config.plotOptions[e].reverseNegativeShade?o.percent<0?o.percent/100*(1.25*r):(1-o.percent/100)*(1.25*r):o.percent<=0?1-(1+o.percent/100)*r:(1-o.percent/100)*r:(n=1-o.percent/100,e==="treemap"&&(n=(1-o.percent/100)*(1.25*r)));var h=o.color,c=new L;return s.config.plotOptions[e].enableShades&&(h=this.w.config.theme.mode==="dark"?L.hexToRgba(c.shadeColor(-1*n,o.color),s.config.fill.opacity):L.hexToRgba(c.shadeColor(n,o.color),s.config.fill.opacity)),{color:h,colorProps:o}}},{key:"determineColor",value:function(e,t,i){var a=this.w,s=a.globals.series[t][i],n=a.config.plotOptions[e],r=n.colorScale.inverse?i:t;n.distributed&&a.config.chart.type==="treemap"&&(r=i);var o=a.globals.colors[r],h=null,c=Math.min.apply(Math,$(a.globals.series[t])),d=Math.max.apply(Math,$(a.globals.series[t]));n.distributed||e!=="heatmap"||(c=a.globals.minY,d=a.globals.maxY),n.colorScale.min!==void 0&&(c=n.colorScale.mina.globals.maxY?n.colorScale.max:a.globals.maxY);var g=Math.abs(d)+Math.abs(c),p=100*s/(g===0?g-1e-6:g);return n.colorScale.ranges.length>0&&n.colorScale.ranges.map(function(x,f){if(s>=x.from&&s<=x.to){o=x.color,h=x.foreColor?x.foreColor:null,c=x.from,d=x.to;var y=Math.abs(d)+Math.abs(c);p=100*s/(y===0?y-1e-6:y)}}),{color:o,foreColor:h,percent:p}}},{key:"calculateDataLabels",value:function(e){var t=e.text,i=e.x,a=e.y,s=e.i,n=e.j,r=e.colorProps,o=e.fontSize,h=this.w.config.dataLabels,c=new Y(this.ctx),d=new xe(this.ctx),g=null;if(h.enabled){g=c.group({class:"apexcharts-data-labels"});var p=h.offsetX,x=h.offsetY,f=i+p,y=a+parseFloat(h.style.fontSize)/3+x;d.plotDataLabelsText({x:f,y,text:t,i:s,j:n,color:r.foreColor,parent:g,fontSize:o,dataLabelsConfig:h})}return g}},{key:"addListeners",value:function(e){var t=new Y(this.ctx);e.node.addEventListener("mouseenter",t.pathMouseEnter.bind(this,e)),e.node.addEventListener("mouseleave",t.pathMouseLeave.bind(this,e)),e.node.addEventListener("mousedown",t.pathMouseDown.bind(this,e))}}]),v}(),Vi=function(){function v(e,t){O(this,v),this.ctx=e,this.w=e.w,this.xRatio=t.xRatio,this.yRatio=t.yRatio,this.dynamicAnim=this.w.config.chart.animations.dynamicAnimation,this.helpers=new it(e),this.rectRadius=this.w.config.plotOptions.heatmap.radius,this.strokeWidth=this.w.config.stroke.show?this.w.config.stroke.width:0}return I(v,[{key:"draw",value:function(e){var t=this.w,i=new Y(this.ctx),a=i.group({class:"apexcharts-heatmap"});a.attr("clip-path","url(#gridRectMask".concat(t.globals.cuid,")"));var s=t.globals.gridWidth/t.globals.dataPoints,n=t.globals.gridHeight/t.globals.series.length,r=0,o=!1;this.negRange=this.helpers.checkColorRange();var h=e.slice();t.config.yaxis[0].reversed&&(o=!0,h.reverse());for(var c=o?0:h.length-1;o?c=0;o?c++:c--){var d=i.group({class:"apexcharts-series apexcharts-heatmap-series",seriesName:L.escapeString(t.globals.seriesNames[c]),rel:c+1,"data:realIndex":c});if(this.ctx.series.addCollapsedClassToSeries(d,c),t.config.chart.dropShadow.enabled){var g=t.config.chart.dropShadow;new ee(this.ctx).dropShadow(d,g,c)}for(var p=0,x=t.config.plotOptions.heatmap.shadeIntensity,f=0;f-1&&this.pieClicked(g),i.config.dataLabels.enabled){var u=k.x,m=k.y,b=100*x/this.fullAngle+"%";if(x!==0&&i.config.plotOptions.pie.dataLabels.minAngleToShowLabelthis.fullAngle?t.endAngle=t.endAngle-(a+r):a+r=this.fullAngle+this.w.config.plotOptions.pie.startAngle%this.fullAngle&&(o=this.fullAngle+this.w.config.plotOptions.pie.startAngle%this.fullAngle-.01),Math.ceil(o)>this.fullAngle&&(o-=this.fullAngle);var h=Math.PI*(o-90)/180,c=t.centerX+s*Math.cos(r),d=t.centerY+s*Math.sin(r),g=t.centerX+s*Math.cos(h),p=t.centerY+s*Math.sin(h),x=L.polarToCartesian(t.centerX,t.centerY,t.donutSize,o),f=L.polarToCartesian(t.centerX,t.centerY,t.donutSize,n),y=a>180?1:0,w=["M",c,d,"A",s,s,0,y,1,g,p];return t.chartType==="donut"?[].concat(w,["L",x.x,x.y,"A",t.donutSize,t.donutSize,0,y,0,f.x,f.y,"L",c,d,"z"]).join(" "):t.chartType==="pie"||t.chartType==="polarArea"?[].concat(w,["L",t.centerX,t.centerY,"L",c,d]).join(" "):[].concat(w).join(" ")}},{key:"drawPolarElements",value:function(e){var t=this.w,i=new me(this.ctx),a=new Y(this.ctx),s=new at(this.ctx),n=a.group(),r=a.group(),o=i.niceScale(0,Math.ceil(this.maxY),t.config.yaxis[0].tickAmount,0,!0),h=o.result.reverse(),c=o.result.length;this.maxY=o.niceMax;for(var d=t.globals.radialSize,g=d/(c-1),p=0;p1&&e.total.show&&(s=e.total.color);var r=n.globals.dom.baseEl.querySelector(".apexcharts-datalabel-label"),o=n.globals.dom.baseEl.querySelector(".apexcharts-datalabel-value");i=(0,e.value.formatter)(i,n),a||typeof e.total.formatter!="function"||(i=e.total.formatter(n));var h=t===e.total.label;t=e.name.formatter(t,h,n),r!==null&&(r.textContent=t),o!==null&&(o.textContent=i),r!==null&&(r.style.fill=s)}},{key:"printDataLabelsInner",value:function(e,t){var i=this.w,a=e.getAttribute("data:value"),s=i.globals.seriesNames[parseInt(e.parentNode.getAttribute("rel"),10)-1];i.globals.series.length>1&&this.printInnerLabels(t,s,a,e);var n=i.globals.dom.baseEl.querySelector(".apexcharts-datalabels-group");n!==null&&(n.style.opacity=1)}},{key:"drawSpokes",value:function(e){var t=this,i=this.w,a=new Y(this.ctx),s=i.config.plotOptions.polarArea.spokes;if(s.strokeWidth!==0){for(var n=[],r=360/i.globals.series.length,o=0;o1)r&&!t.total.showAlways?h({makeSliceOut:!1,printLabel:!0}):this.printInnerLabels(t,t.total.label,t.total.formatter(s));else if(h({makeSliceOut:!1,printLabel:!0}),!r)if(s.globals.selectedDataPoints.length&&s.globals.series.length>1)if(s.globals.selectedDataPoints[0].length>0){var c=s.globals.selectedDataPoints[0],d=s.globals.dom.baseEl.querySelector(".apexcharts-".concat(this.chartType.toLowerCase(),"-slice-").concat(c));this.printDataLabelsInner(d,t)}else n&&s.globals.selectedDataPoints.length&&s.globals.selectedDataPoints[0].length===0&&(n.style.opacity=0);else n&&s.globals.series.length>1&&(n.style.opacity=0)}}]),v}(),ji=function(){function v(e){O(this,v),this.ctx=e,this.w=e.w,this.chartType=this.w.config.chart.type,this.initialAnim=this.w.config.chart.animations.enabled,this.dynamicAnim=this.initialAnim&&this.w.config.chart.animations.dynamicAnimation.enabled,this.animDur=0;var t=this.w;this.graphics=new Y(this.ctx),this.lineColorArr=t.globals.stroke.colors!==void 0?t.globals.stroke.colors:t.globals.colors,this.defaultSize=t.globals.svgHeight0&&(m=t.getPreviousPath(w));for(var b=0;b=10?e.x>0?(i="start",a+=10):e.x<0&&(i="end",a-=10):i="middle",Math.abs(e.y)>=t-10&&(e.y<0?s-=10:e.y>0&&(s+=10)),{textAnchor:i,newX:a,newY:s}}},{key:"getPreviousPath",value:function(e){for(var t=this.w,i=null,a=0;a0&&parseInt(s.realIndex,10)===parseInt(e,10)&&t.globals.previousPaths[a].paths[0]!==void 0&&(i=t.globals.previousPaths[a].paths[0].d)}return i}},{key:"getDataPointsPos",value:function(e,t){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.dataPointsLen;e=e||[],t=t||[];for(var a=[],s=0;s=360&&(f=360-Math.abs(this.startAngle)-.1);var y=s.drawPath({d:"",stroke:p,strokeWidth:h*parseInt(g.strokeWidth,10)/100,fill:"none",strokeOpacity:g.opacity,classes:"apexcharts-radialbar-area"});if(g.dropShadow.enabled){var w=g.dropShadow;r.dropShadow(y,w)}d.add(y),y.attr("id","apexcharts-radialbarTrack-"+c),this.animatePaths(y,{centerX:i.centerX,centerY:i.centerY,endAngle:f,startAngle:x,size:i.size,i:c,totalItems:2,animBeginArr:0,dur:0,isTrack:!0,easing:a.globals.easing})}return n}},{key:"drawArcs",value:function(i){var a=this.w,s=new Y(this.ctx),n=new ne(this.ctx),r=new ee(this.ctx),o=s.group(),h=this.getStrokeWidth(i);i.size=i.size-h/2;var c=a.config.plotOptions.radialBar.hollow.background,d=i.size-h*i.series.length-this.margin*i.series.length-h*parseInt(a.config.plotOptions.radialBar.track.strokeWidth,10)/100/2,g=d-a.config.plotOptions.radialBar.hollow.margin;a.config.plotOptions.radialBar.hollow.image!==void 0&&(c=this.drawHollowImage(i,o,d,c));var p=this.drawHollow({size:g,centerX:i.centerX,centerY:i.centerY,fill:c||"transparent"});if(a.config.plotOptions.radialBar.hollow.dropShadow.enabled){var x=a.config.plotOptions.radialBar.hollow.dropShadow;r.dropShadow(p,x)}var f=1;!this.radialDataLabels.total.show&&a.globals.series.length>1&&(f=0);var y=null;this.radialDataLabels.show&&(y=this.renderInnerDataLabels(this.radialDataLabels,{hollowSize:d,centerX:i.centerX,centerY:i.centerY,opacity:f})),a.config.plotOptions.radialBar.hollow.position==="back"&&(o.add(p),y&&o.add(y));var w=!1;a.config.plotOptions.radialBar.inverseOrder&&(w=!0);for(var S=w?i.series.length-1:0;w?S>=0:S100?100:i.series[S])/100,A=Math.round(this.totalAngle*b)+this.startAngle,P=void 0;a.globals.dataChanged&&(m=this.startAngle,P=Math.round(this.totalAngle*L.negToZero(a.globals.previousPaths[S])/100)+m),Math.abs(A)+Math.abs(u)>=360&&(A-=.01),Math.abs(P)+Math.abs(m)>=360&&(P-=.01);var C=A-u,E=Array.isArray(a.config.stroke.dashArray)?a.config.stroke.dashArray[S]:a.config.stroke.dashArray,T=s.drawPath({d:"",stroke:l,strokeWidth:h,fill:"none",fillOpacity:a.config.fill.opacity,classes:"apexcharts-radialbar-area apexcharts-radialbar-slice-"+S,strokeDashArray:E});if(Y.setAttrs(T.node,{"data:angle":C,"data:value":i.series[S]}),a.config.chart.dropShadow.enabled){var R=a.config.chart.dropShadow;r.dropShadow(T,R,S)}r.setSelectionFilter(T,0,S),this.addListeners(T,this.radialDataLabels),k.add(T),T.attr({index:0,j:S});var H=0;!this.initialAnim||a.globals.resized||a.globals.dataChanged||(H=a.config.chart.animations.speed),a.globals.dataChanged&&(H=a.config.chart.animations.dynamicAnimation.speed),this.animDur=H/(1.2*i.series.length)+this.animDur,this.animBeginArr.push(this.animDur),this.animatePaths(T,{centerX:i.centerX,centerY:i.centerY,endAngle:A,startAngle:u,prevEndAngle:P,prevStartAngle:m,size:i.size,i:S,totalItems:2,animBeginArr:this.animBeginArr,dur:H,shouldSetPrevPaths:!0,easing:a.globals.easing})}return{g:o,elHollow:p,dataLabels:y}}},{key:"drawHollow",value:function(i){var a=new Y(this.ctx).drawCircle(2*i.size);return a.attr({class:"apexcharts-radialbar-hollow",cx:i.centerX,cy:i.centerY,r:i.size,fill:i.fill}),a}},{key:"drawHollowImage",value:function(i,a,s,n){var r=this.w,o=new ne(this.ctx),h=L.randomId(),c=r.config.plotOptions.radialBar.hollow.image;if(r.config.plotOptions.radialBar.hollow.imageClipped)o.clippedImgArea({width:s,height:s,image:c,patternID:"pattern".concat(r.globals.cuid).concat(h)}),n="url(#pattern".concat(r.globals.cuid).concat(h,")");else{var d=r.config.plotOptions.radialBar.hollow.imageWidth,g=r.config.plotOptions.radialBar.hollow.imageHeight;if(d===void 0&&g===void 0){var p=r.globals.dom.Paper.image(c).loaded(function(f){this.move(i.centerX-f.width/2+r.config.plotOptions.radialBar.hollow.imageOffsetX,i.centerY-f.height/2+r.config.plotOptions.radialBar.hollow.imageOffsetY)});a.add(p)}else{var x=r.globals.dom.Paper.image(c).loaded(function(f){this.move(i.centerX-d/2+r.config.plotOptions.radialBar.hollow.imageOffsetX,i.centerY-g/2+r.config.plotOptions.radialBar.hollow.imageOffsetY),this.size(d,g)});a.add(x)}}return n}},{key:"getStrokeWidth",value:function(i){var a=this.w;return i.size*(100-parseInt(a.config.plotOptions.radialBar.hollow.size,10))/100/(i.series.length+1)-this.margin}}]),t}(st),$i=function(v){N(t,v);var e=oe(t);function t(){return O(this,t),e.apply(this,arguments)}return I(t,[{key:"draw",value:function(i,a){var s=this.w,n=new Y(this.ctx);this.rangeBarOptions=this.w.config.plotOptions.rangeBar,this.series=i,this.seriesRangeStart=s.globals.seriesRangeStart,this.seriesRangeEnd=s.globals.seriesRangeEnd,this.barHelpers.initVariables(i);for(var r=n.group({class:"apexcharts-rangebar-series apexcharts-plot-series"}),o=0;o0&&(this.visibleI=this.visibleI+1);var w=0,S=0;this.yRatio.length>1&&(this.yaxisIndex=f);var k=this.barHelpers.initialPositions();p=k.y,d=k.zeroW,g=k.x,S=k.barWidth,h=k.xDivision,c=k.zeroH;for(var l=n.group({class:"apexcharts-datalabels","data:realIndex":f}),u=n.group({class:"apexcharts-rangebar-goals-markers",style:"pointer-events: none"}),m=0;m0});return n=d.config.plotOptions.bar.rangeBarGroupRows?r+h*f:r+o*this.visibleI+h*f,y>-1&&!d.config.plotOptions.bar.rangeBarOverlap&&(g=d.globals.seriesRange[a][y].overlaps).indexOf(p)>-1&&(n=(o=c.barHeight/g.length)*this.visibleI+h*(100-parseInt(this.barOptions.barHeight,10))/100/2+o*(this.visibleI+g.indexOf(p))+h*f),{barYPosition:n,barHeight:o}}},{key:"drawRangeColumnPaths",value:function(i){var a=i.indexes,s=i.x;i.strokeWidth;var n=i.xDivision,r=i.barWidth,o=i.zeroH,h=this.w,c=a.i,d=a.j,g=this.yRatio[this.yaxisIndex],p=a.realIndex,x=this.getRangeValue(p,d),f=Math.min(x.start,x.end),y=Math.max(x.start,x.end);h.globals.isXNumeric&&(s=(h.globals.seriesX[c][d]-h.globals.minX)/this.xRatio-r/2);var w=s+r*this.visibleI;this.series[c][d]===void 0||this.series[c][d]===null?f=o:(f=o-f/g,y=o-y/g);var S=Math.abs(y-f),k=this.barHelpers.getColumnPaths({barXPosition:w,barWidth:r,y1:f,y2:y,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,realIndex:a.realIndex,i:p,j:d,w:h});return h.globals.isXNumeric||(s+=n),{pathTo:k.pathTo,pathFrom:k.pathFrom,barHeight:S,x:s,y,goalY:this.barHelpers.getGoalValues("y",null,o,c,d),barXPosition:w}}},{key:"drawRangeBarPaths",value:function(i){var a=i.indexes,s=i.y,n=i.y1,r=i.y2,o=i.yDivision,h=i.barHeight,c=i.barYPosition,d=i.zeroW,g=this.w,p=d+n/this.invertedYRatio,x=d+r/this.invertedYRatio,f=Math.abs(x-p),y=this.barHelpers.getBarpaths({barYPosition:c,barHeight:h,x1:p,x2:x,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,i:a.realIndex,realIndex:a.realIndex,j:a.j,w:g});return g.globals.isXNumeric||(s+=o),{pathTo:y.pathTo,pathFrom:y.pathFrom,barWidth:f,x,goalX:this.barHelpers.getGoalValues("x",d,null,a.realIndex,a.j),y:s}}},{key:"getRangeValue",value:function(i,a){var s=this.w;return{start:s.globals.seriesRangeStart[i][a],end:s.globals.seriesRangeEnd[i][a]}}}]),t}(be),qi=function(){function v(e){O(this,v),this.w=e.w,this.lineCtx=e}return I(v,[{key:"sameValueSeriesFix",value:function(e,t){var i=this.w;if((i.config.fill.type==="gradient"||i.config.fill.type[e]==="gradient")&&new q(this.lineCtx.ctx,i).seriesHaveSameValues(e)){var a=t[e].slice();a[a.length-1]=a[a.length-1]+1e-6,t[e]=a}return t}},{key:"calculatePoints",value:function(e){var t=e.series,i=e.realIndex,a=e.x,s=e.y,n=e.i,r=e.j,o=e.prevY,h=this.w,c=[],d=[];if(r===0){var g=this.lineCtx.categoryAxisCorrection+h.config.markers.offsetX;h.globals.isXNumeric&&(g=(h.globals.seriesX[i][0]-h.globals.minX)/this.lineCtx.xRatio+h.config.markers.offsetX),c.push(g),d.push(L.isNumber(t[n][0])?o+h.config.markers.offsetY:null),c.push(a+h.config.markers.offsetX),d.push(L.isNumber(t[n][r+1])?s+h.config.markers.offsetY:null)}else c.push(a+h.config.markers.offsetX),d.push(L.isNumber(t[n][r+1])?s+h.config.markers.offsetY:null);return{x:c,y:d}}},{key:"checkPreviousPaths",value:function(e){for(var t=e.pathFromLine,i=e.pathFromArea,a=e.realIndex,s=this.w,n=0;n0&&parseInt(r.realIndex,10)===parseInt(a,10)&&(r.type==="line"?(this.lineCtx.appendPathFrom=!1,t=s.globals.previousPaths[n].paths[0].d):r.type==="area"&&(this.lineCtx.appendPathFrom=!1,i=s.globals.previousPaths[n].paths[0].d,s.config.stroke.show&&s.globals.previousPaths[n].paths[1]&&(t=s.globals.previousPaths[n].paths[1].d)))}return{pathFromLine:t,pathFromArea:i}}},{key:"determineFirstPrevY",value:function(e){var t,i=e.i,a=e.series,s=e.prevY,n=e.lineYPosition,r=this.w;if(((t=a[i])===null||t===void 0?void 0:t[0])!==void 0)s=(n=r.config.chart.stacked&&i>0?this.lineCtx.prevSeriesY[i-1][0]:this.lineCtx.zeroY)-a[i][0]/this.lineCtx.yRatio[this.lineCtx.yaxisIndex]+2*(this.lineCtx.isReversed?a[i][0]/this.lineCtx.yRatio[this.lineCtx.yaxisIndex]:0);else if(r.config.chart.stacked&&i>0&&a[i][0]===void 0){for(var o=i-1;o>=0;o--)if(a[o][0]!==null&&a[o][0]!==void 0){s=n=this.lineCtx.prevSeriesY[o][0];break}}return{prevY:s,lineYPosition:n}}}]),v}(),He=function(){function v(e,t,i){O(this,v),this.ctx=e,this.w=e.w,this.xyRatios=t,this.pointsChart=!(this.w.config.chart.type!=="bubble"&&this.w.config.chart.type!=="scatter")||i,this.scatter=new Ue(this.ctx),this.noNegatives=this.w.globals.minX===Number.MAX_VALUE,this.lineHelpers=new qi(this),this.markers=new ke(this.ctx),this.prevSeriesY=[],this.categoryAxisCorrection=0,this.yaxisIndex=0}return I(v,[{key:"draw",value:function(e,t,i,a){var s=this.w,n=new Y(this.ctx),r=s.globals.comboCharts?t:s.config.chart.type,o=n.group({class:"apexcharts-".concat(r,"-series apexcharts-plot-series")}),h=new q(this.ctx,s);this.yRatio=this.xyRatios.yRatio,this.zRatio=this.xyRatios.zRatio,this.xRatio=this.xyRatios.xRatio,this.baseLineY=this.xyRatios.baseLineY,e=h.getLogSeries(e),this.yRatio=h.getLogYRatios(this.yRatio);for(var c=[],d=0;d0&&(f=(s.globals.seriesX[g][0]-s.globals.minX)/this.xRatio),x.push(f);var y,w=f,S=void 0,k=w,l=this.zeroY,u=this.zeroY;l=this.lineHelpers.determineFirstPrevY({i:d,series:e,prevY:l,lineYPosition:0}).prevY,p.push(l),y=l,r==="rangeArea"&&(S=u=this.lineHelpers.determineFirstPrevY({i:d,series:a,prevY:u,lineYPosition:0}).prevY);var m={type:r,series:e,realIndex:g,i:d,x:f,y:1,pX:w,pY:y,pathsFrom:this._calculatePathsFrom({type:r,series:e,i:d,realIndex:g,prevX:k,prevY:l,prevY2:u}),linePaths:[],areaPaths:[],seriesIndex:i,lineYPosition:0,xArrj:x,yArrj:p,seriesRangeEnd:a},b=this._iterateOverDataPoints(z(z({},m),{},{iterations:r==="rangeArea"?e[d].length-1:void 0,isRangeStart:!0}));if(r==="rangeArea"){var A=this._calculatePathsFrom({series:a,i:d,realIndex:g,prevX:k,prevY:u}),P=this._iterateOverDataPoints(z(z({},m),{},{series:a,pY:S,pathsFrom:A,iterations:a[d].length-1,isRangeStart:!1}));b.linePaths[0]=P.linePath+b.linePath,b.pathFromLine=P.pathFromLine+b.pathFromLine}this._handlePaths({type:r,realIndex:g,i:d,paths:b}),this.elSeries.add(this.elPointsMain),this.elSeries.add(this.elDataLabelsWrap),c.push(this.elSeries)}if(s.config.chart.stacked)for(var C=c.length;C>0;C--)o.add(c[C-1]);else for(var E=0;E1&&(this.yaxisIndex=i),this.isReversed=a.config.yaxis[this.yaxisIndex]&&a.config.yaxis[this.yaxisIndex].reversed,this.zeroY=a.globals.gridHeight-this.baseLineY[this.yaxisIndex]-(this.isReversed?a.globals.gridHeight:0)+(this.isReversed?2*this.baseLineY[this.yaxisIndex]:0),this.areaBottomY=this.zeroY,(this.zeroY>a.globals.gridHeight||a.config.plotOptions.area.fillTo==="end")&&(this.areaBottomY=a.globals.gridHeight),this.categoryAxisCorrection=this.xDivision/2,this.elSeries=s.group({class:"apexcharts-series",seriesName:L.escapeString(a.globals.seriesNames[i])}),this.elPointsMain=s.group({class:"apexcharts-series-markers-wrap","data:realIndex":i}),this.elDataLabelsWrap=s.group({class:"apexcharts-datalabels","data:realIndex":i});var n=e[t].length===a.globals.dataPoints;this.elSeries.attr({"data:longestSeries":n,rel:t+1,"data:realIndex":i}),this.appendPathFrom=!0}},{key:"_calculatePathsFrom",value:function(e){var t,i,a,s,n=e.type,r=e.series,o=e.i,h=e.realIndex,c=e.prevX,d=e.prevY,g=e.prevY2,p=this.w,x=new Y(this.ctx);if(r[o][0]===null){for(var f=0;f0){var y=this.lineHelpers.checkPreviousPaths({pathFromLine:a,pathFromArea:s,realIndex:h});a=y.pathFromLine,s=y.pathFromArea}return{prevX:c,prevY:d,linePath:t,areaPath:i,pathFromLine:a,pathFromArea:s}}},{key:"_handlePaths",value:function(e){var t=e.type,i=e.realIndex,a=e.i,s=e.paths,n=this.w,r=new Y(this.ctx),o=new ne(this.ctx);this.prevSeriesY.push(s.yArrj),n.globals.seriesXvalues[i]=s.xArrj,n.globals.seriesYvalues[i]=s.yArrj;var h=n.config.forecastDataPoints;if(h.count>0&&t!=="rangeArea"){var c=n.globals.seriesXvalues[i][n.globals.seriesXvalues[i].length-h.count-1],d=r.drawRect(c,0,n.globals.gridWidth,n.globals.gridHeight,0);n.globals.dom.elForecastMask.appendChild(d.node);var g=r.drawRect(0,0,c,n.globals.gridHeight,0);n.globals.dom.elNonForecastMask.appendChild(g.node)}this.pointsChart||n.globals.delayedElements.push({el:this.elPointsMain.node,index:i});var p={i:a,realIndex:i,animationDelay:a,initialSpeed:n.config.chart.animations.speed,dataChangeSpeed:n.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-".concat(t)};if(t==="area")for(var x=o.fillPath({seriesNumber:i}),f=0;f0&&t!=="rangeArea"){var b=r.renderPaths(u);b.node.setAttribute("stroke-dasharray",h.dashArray),h.strokeWidth&&b.node.setAttribute("stroke-width",h.strokeWidth),this.elSeries.add(b),b.attr("clip-path","url(#forecastMask".concat(n.globals.cuid,")")),m.attr("clip-path","url(#nonForecastMask".concat(n.globals.cuid,")"))}}}}},{key:"_iterateOverDataPoints",value:function(e){var t=e.type,i=e.series,a=e.iterations,s=e.realIndex,n=e.i,r=e.x,o=e.y,h=e.pX,c=e.pY,d=e.pathsFrom,g=e.linePaths,p=e.areaPaths,x=e.seriesIndex,f=e.lineYPosition,y=e.xArrj,w=e.yArrj,S=e.isRangeStart,k=e.seriesRangeEnd,l=this.w,u=new Y(this.ctx),m=this.yRatio,b=d.prevY,A=d.linePath,P=d.areaPath,C=d.pathFromLine,E=d.pathFromArea,T=L.isNumber(l.globals.minYArr[s])?l.globals.minYArr[s]:l.globals.minY;a||(a=l.globals.dataPoints>1?l.globals.dataPoints-1:l.globals.dataPoints);for(var R=o,H=0;H0&&l.globals.collapsedSeries.length-1){Z--;break}return Z>=0?Z:0}(n-1)][H+1]:f=this.zeroY:f=this.zeroY,W?o=f-T/m[this.yaxisIndex]+2*(this.isReversed?T/m[this.yaxisIndex]:0):(o=f-i[n][H+1]/m[this.yaxisIndex]+2*(this.isReversed?i[n][H+1]/m[this.yaxisIndex]:0),t==="rangeArea"&&(R=f-k[n][H+1]/m[this.yaxisIndex]+2*(this.isReversed?k[n][H+1]/m[this.yaxisIndex]:0))),y.push(r),w.push(o);var _=this.lineHelpers.calculatePoints({series:i,x:r,y:o,realIndex:s,i:n,j:H,prevY:b}),j=this._createPaths({type:t,series:i,i:n,realIndex:s,j:H,x:r,y:o,y2:R,pX:h,pY:c,linePath:A,areaPath:P,linePaths:g,areaPaths:p,seriesIndex:x,isRangeStart:S});p=j.areaPaths,g=j.linePaths,h=j.pX,c=j.pY,P=j.areaPath,A=j.linePath,this.appendPathFrom&&(C+=u.line(r,this.zeroY),E+=u.line(r,this.zeroY)),this.handleNullDataPoints(i,_,n,H,s),this._handleMarkersAndLabels({type:t,pointsPos:_,i:n,j:H,realIndex:s,isRangeStart:S})}return{yArrj:w,xArrj:y,pathFromArea:E,areaPaths:p,pathFromLine:C,linePaths:g,linePath:A,areaPath:P}}},{key:"_handleMarkersAndLabels",value:function(e){var t=e.type,i=e.pointsPos,a=e.isRangeStart,s=e.i,n=e.j,r=e.realIndex,o=this.w,h=new xe(this.ctx);if(this.pointsChart)this.scatter.draw(this.elSeries,n,{realIndex:r,pointsPos:i,zRatio:this.zRatio,elParent:this.elPointsMain});else{o.globals.series[s].length>1&&this.elPointsMain.node.classList.add("apexcharts-element-hidden");var c=this.markers.plotChartMarkers(i,r,n+1);c!==null&&this.elPointsMain.add(c)}var d=h.drawDataLabel({type:t,isRangeStart:a,pos:i,i:r,j:n+1});d!==null&&this.elDataLabelsWrap.add(d)}},{key:"_createPaths",value:function(e){var t=e.type,i=e.series,a=e.i,s=e.realIndex,n=e.j,r=e.x,o=e.y,h=e.y2,c=e.pX,d=e.pY,g=e.linePath,p=e.areaPath,x=e.linePaths,f=e.areaPaths,y=e.seriesIndex,w=e.isRangeStart,S=this.w,k=new Y(this.ctx),l=S.config.stroke.curve,u=this.areaBottomY;if(Array.isArray(S.config.stroke.curve)&&(l=Array.isArray(y)?S.config.stroke.curve[y[a]]:S.config.stroke.curve[a]),l==="smooth"){var m=.35*(r-c);S.globals.hasNullValues?(i[a][n]!==null&&(i[a][n+1]!==null?(g=k.move(c,d)+k.curve(c+m,d,r-m,o,r+1,o),p=k.move(c+1,d)+k.curve(c+m,d,r-m,o,r+1,o)+k.line(r,u)+k.line(c,u)+"z"):(g=k.move(c,d),p=k.move(c,d)+"z")),x.push(g),f.push(p)):(g+=k.curve(c+m,d,r-m,o,r,o),p+=k.curve(c+m,d,r-m,o,r,o)),c=r,d=o,n===i[a].length-2&&(p=p+k.curve(c,d,r,o,r,u)+k.move(r,o)+"z",t==="rangeArea"&&w?g=g+k.curve(c,d,r,o,r,h)+k.move(r,h)+"z":S.globals.hasNullValues||(x.push(g),f.push(p)))}else{if(i[a][n+1]===null){g+=k.move(r,o);var b=S.globals.isXNumeric?(S.globals.seriesX[s][n]-S.globals.minX)/this.xRatio:r-this.xDivision;p=p+k.line(b,u)+k.move(r,o)+"z"}i[a][n]===null&&(g+=k.move(r,o),p+=k.move(r,u)),l==="stepline"?(g=g+k.line(r,null,"H")+k.line(null,o,"V"),p=p+k.line(r,null,"H")+k.line(null,o,"V")):l==="straight"&&(g+=k.line(r,o),p+=k.line(r,o)),n===i[a].length-2&&(p=p+k.line(r,u)+k.move(r,o)+"z",t==="rangeArea"&&w?g=g+k.line(r,h)+k.move(r,h)+"z":(x.push(g),f.push(p)))}return{linePaths:x,areaPaths:f,pX:c,pY:d,linePath:g,areaPath:p}}},{key:"handleNullDataPoints",value:function(e,t,i,a,s){var n=this.w;if(e[i][a]===null&&n.config.markers.showNullDataPoints||e[i].length===1){var r=this.markers.plotChartMarkers(t,s,a+1,this.strokeWidth-n.config.markers.strokeWidth/2,!0);r!==null&&this.elPointsMain.add(r)}}}]),v}();window.TreemapSquared={},window.TreemapSquared.generate=function(){function v(r,o,h,c){this.xoffset=r,this.yoffset=o,this.height=c,this.width=h,this.shortestEdge=function(){return Math.min(this.height,this.width)},this.getCoordinates=function(d){var g,p=[],x=this.xoffset,f=this.yoffset,y=s(d)/this.height,w=s(d)/this.width;if(this.width>=this.height)for(g=0;g=this.height){var p=d/this.height,x=this.width-p;g=new v(this.xoffset+p,this.yoffset,x,this.height)}else{var f=d/this.width,y=this.height-f;g=new v(this.xoffset,this.yoffset+f,this.width,y)}return g}}function e(r,o,h,c,d){c=c===void 0?0:c,d=d===void 0?0:d;var g=t(function(p,x){var f,y=[],w=x/s(p);for(f=0;f=k}(o,g=r[0],d)?(o.push(g),t(r.slice(1),o,h,c)):(p=h.cutArea(s(o),c),c.push(h.getCoordinates(o)),t(r,[],p,c)),c;c.push(h.getCoordinates(o))}function i(r,o){var h=Math.min.apply(Math,r),c=Math.max.apply(Math,r),d=s(r);return Math.max(Math.pow(o,2)*c/Math.pow(d,2),Math.pow(d,2)/(Math.pow(o,2)*h))}function a(r){return r&&r.constructor===Array}function s(r){var o,h=0;for(o=0;on-a&&h.width<=r-s){var c=o.rotateAroundCenter(e.node);e.node.setAttribute("transform","rotate(-90 ".concat(c.x," ").concat(c.y,")"))}}},{key:"animateTreemap",value:function(e,t,i,a){var s=new fe(this.ctx);s.animateRect(e,{x:t.x,y:t.y,width:t.width,height:t.height},{x:i.x,y:i.y,width:i.width,height:i.height},a,function(){s.animationCompleted(e)})}}]),v}(),Ji=86400,Qi=function(){function v(e){O(this,v),this.ctx=e,this.w=e.w,this.timeScaleArray=[],this.utc=this.w.config.xaxis.labels.datetimeUTC}return I(v,[{key:"calculateTimeScaleTicks",value:function(e,t){var i=this,a=this.w;if(a.globals.allSeriesCollapsed)return a.globals.labels=[],a.globals.timescaleLabels=[],[];var s=new Q(this.ctx),n=(t-e)/864e5;this.determineInterval(n),a.globals.disableZoomIn=!1,a.globals.disableZoomOut=!1,n<.00011574074074074075?a.globals.disableZoomIn=!0:n>5e4&&(a.globals.disableZoomOut=!0);var r=s.getTimeUnitsfromTimestamp(e,t,this.utc),o=a.globals.gridWidth/n,h=o/24,c=h/60,d=c/60,g=Math.floor(24*n),p=Math.floor(1440*n),x=Math.floor(n*Ji),f=Math.floor(n),y=Math.floor(n/30),w=Math.floor(n/365),S={minMillisecond:r.minMillisecond,minSecond:r.minSecond,minMinute:r.minMinute,minHour:r.minHour,minDate:r.minDate,minMonth:r.minMonth,minYear:r.minYear},k={firstVal:S,currentMillisecond:S.minMillisecond,currentSecond:S.minSecond,currentMinute:S.minMinute,currentHour:S.minHour,currentMonthDate:S.minDate,currentDate:S.minDate,currentMonth:S.minMonth,currentYear:S.minYear,daysWidthOnXAxis:o,hoursWidthOnXAxis:h,minutesWidthOnXAxis:c,secondsWidthOnXAxis:d,numberOfSeconds:x,numberOfMinutes:p,numberOfHours:g,numberOfDays:f,numberOfMonths:y,numberOfYears:w};switch(this.tickInterval){case"years":this.generateYearScale(k);break;case"months":case"half_year":this.generateMonthScale(k);break;case"months_days":case"months_fortnight":case"days":case"week_days":this.generateDayScale(k);break;case"hours":this.generateHourScale(k);break;case"minutes_fives":case"minutes":this.generateMinuteScale(k);break;case"seconds_tens":case"seconds_fives":case"seconds":this.generateSecondScale(k)}var l=this.timeScaleArray.map(function(u){var m={position:u.position,unit:u.unit,year:u.year,day:u.day?u.day:1,hour:u.hour?u.hour:0,month:u.month+1};return u.unit==="month"?z(z({},m),{},{day:1,value:u.value+1}):u.unit==="day"||u.unit==="hour"?z(z({},m),{},{value:u.value}):u.unit==="minute"?z(z({},m),{},{value:u.value,minute:u.value}):u.unit==="second"?z(z({},m),{},{value:u.value,minute:u.minute,second:u.second}):u});return l.filter(function(u){var m=1,b=Math.ceil(a.globals.gridWidth/120),A=u.value;a.config.xaxis.tickAmount!==void 0&&(b=a.config.xaxis.tickAmount),l.length>b&&(m=Math.floor(l.length/b));var P=!1,C=!1;switch(i.tickInterval){case"years":u.unit==="year"&&(P=!0);break;case"half_year":m=7,u.unit==="year"&&(P=!0);break;case"months":m=1,u.unit==="year"&&(P=!0);break;case"months_fortnight":m=15,u.unit!=="year"&&u.unit!=="month"||(P=!0),A===30&&(C=!0);break;case"months_days":m=10,u.unit==="month"&&(P=!0),A===30&&(C=!0);break;case"week_days":m=8,u.unit==="month"&&(P=!0);break;case"days":m=1,u.unit==="month"&&(P=!0);break;case"hours":u.unit==="day"&&(P=!0);break;case"minutes_fives":case"seconds_fives":A%5!=0&&(C=!0);break;case"seconds_tens":A%10!=0&&(C=!0)}if(i.tickInterval==="hours"||i.tickInterval==="minutes_fives"||i.tickInterval==="seconds_tens"||i.tickInterval==="seconds_fives"){if(!C)return!0}else if((A%m==0||P)&&!C)return!0})}},{key:"recalcDimensionsBasedOnFormat",value:function(e,t){var i=this.w,a=this.formatDates(e),s=this.removeOverlappingTS(a);i.globals.timescaleLabels=s.slice(),new Me(this.ctx).plotCoords()}},{key:"determineInterval",value:function(e){var t=24*e,i=60*t;switch(!0){case e/365>5:this.tickInterval="years";break;case e>800:this.tickInterval="half_year";break;case e>180:this.tickInterval="months";break;case e>90:this.tickInterval="months_fortnight";break;case e>60:this.tickInterval="months_days";break;case e>30:this.tickInterval="week_days";break;case e>2:this.tickInterval="days";break;case t>2.4:this.tickInterval="hours";break;case i>15:this.tickInterval="minutes_fives";break;case i>5:this.tickInterval="minutes";break;case i>1:this.tickInterval="seconds_tens";break;case 60*i>20:this.tickInterval="seconds_fives";break;default:this.tickInterval="seconds"}}},{key:"generateYearScale",value:function(e){var t=e.firstVal,i=e.currentMonth,a=e.currentYear,s=e.daysWidthOnXAxis,n=e.numberOfYears,r=t.minYear,o=0,h=new Q(this.ctx),c="year";if(t.minDate>1||t.minMonth>0){var d=h.determineRemainingDaysOfYear(t.minYear,t.minMonth,t.minDate);o=(h.determineDaysOfYear(t.minYear)-d+1)*s,r=t.minYear+1,this.timeScaleArray.push({position:o,value:r,unit:c,year:r,month:L.monthMod(i+1)})}else t.minDate===1&&t.minMonth===0&&this.timeScaleArray.push({position:o,value:r,unit:c,year:a,month:L.monthMod(i+1)});for(var g=r,p=o,x=0;x1){h=(c.determineDaysOfMonths(a+1,t.minYear)-i+1)*n,o=L.monthMod(a+1);var p=s+g,x=L.monthMod(o),f=o;o===0&&(d="year",f=p,x=1,p+=g+=1),this.timeScaleArray.push({position:h,value:f,unit:d,year:p,month:x})}else this.timeScaleArray.push({position:h,value:o,unit:d,year:s,month:L.monthMod(a)});for(var y=o+1,w=h,S=0,k=1;Sr.determineDaysOfMonths(l+1,u)&&(c=1,o="month",p=l+=1),l},g=(24-t.minHour)*s,p=h,x=d(c,i,a);t.minHour===0&&t.minDate===1?(g=0,p=L.monthMod(t.minMonth),o="month",c=t.minDate,n++):t.minDate!==1&&t.minHour===0&&t.minMinute===0&&(g=0,h=t.minDate,p=h,x=d(c=h,i,a)),this.timeScaleArray.push({position:g,value:p,unit:o,year:this._getYear(a,x,0),month:L.monthMod(x),day:c});for(var f=g,y=0;yo.determineDaysOfMonths(b+1,s)&&(y=1,b+=1),{month:b,date:y}},d=function(m,b){return m>o.determineDaysOfMonths(b+1,s)?b+=1:b},g=60-(t.minMinute+t.minSecond/60),p=g*n,x=t.minHour+1,f=x+1;g===60&&(p=0,f=(x=t.minHour)+1);var y=i,w=d(y,a);this.timeScaleArray.push({position:p,value:x,unit:h,day:y,hour:f,year:s,month:L.monthMod(w)});for(var S=p,k=0;k=24&&(f=0,h="day",w=c(y+=1,w).month,w=d(y,w));var l=this._getYear(s,w,0);S=60*n+S;var u=f===0?y:f;this.timeScaleArray.push({position:S,value:u,unit:h,hour:f,day:y,year:l,month:L.monthMod(w)}),f++}}},{key:"generateMinuteScale",value:function(e){for(var t=e.currentMillisecond,i=e.currentSecond,a=e.currentMinute,s=e.currentHour,n=e.currentDate,r=e.currentMonth,o=e.currentYear,h=e.minutesWidthOnXAxis,c=e.secondsWidthOnXAxis,d=e.numberOfMinutes,g=a+1,p=n,x=r,f=o,y=s,w=(60-i-t/1e3)*c,S=0;S=60&&(g=0,(y+=1)===24&&(y=0)),this.timeScaleArray.push({position:w,value:g,unit:"minute",hour:y,minute:g,day:p,year:this._getYear(f,x,0),month:L.monthMod(x)}),w+=h,g++}},{key:"generateSecondScale",value:function(e){for(var t=e.currentMillisecond,i=e.currentSecond,a=e.currentMinute,s=e.currentHour,n=e.currentDate,r=e.currentMonth,o=e.currentYear,h=e.secondsWidthOnXAxis,c=e.numberOfSeconds,d=i+1,g=a,p=n,x=r,f=o,y=s,w=(1e3-t)/1e3*h,S=0;S=60&&(d=0,++g>=60&&(g=0,++y===24&&(y=0))),this.timeScaleArray.push({position:w,value:d,unit:"second",hour:y,minute:g,second:d,day:p,year:this._getYear(f,x,0),month:L.monthMod(x)}),w+=h,d++}},{key:"createRawDateString",value:function(e,t){var i=e.year;return e.month===0&&(e.month=1),i+="-"+("0"+e.month.toString()).slice(-2),e.unit==="day"?i+=e.unit==="day"?"-"+("0"+t).slice(-2):"-01":i+="-"+("0"+(e.day?e.day:"1")).slice(-2),e.unit==="hour"?i+=e.unit==="hour"?"T"+("0"+t).slice(-2):"T00":i+="T"+("0"+(e.hour?e.hour:"0")).slice(-2),e.unit==="minute"?i+=":"+("0"+t).slice(-2):i+=":"+(e.minute?("0"+e.minute).slice(-2):"00"),e.unit==="second"?i+=":"+("0"+t).slice(-2):i+=":00",this.utc&&(i+=".000Z"),i}},{key:"formatDates",value:function(e){var t=this,i=this.w;return e.map(function(a){var s=a.value.toString(),n=new Q(t.ctx),r=t.createRawDateString(a,s),o=n.getDate(n.parseDate(r));if(t.utc||(o=n.getDate(n.parseDateWithTimezone(r))),i.config.xaxis.labels.format===void 0){var h="dd MMM",c=i.config.xaxis.labels.datetimeFormatter;a.unit==="year"&&(h=c.year),a.unit==="month"&&(h=c.month),a.unit==="day"&&(h=c.day),a.unit==="hour"&&(h=c.hour),a.unit==="minute"&&(h=c.minute),a.unit==="second"&&(h=c.second),s=n.formatDate(o,h)}else s=n.formatDate(o,i.config.xaxis.labels.format);return{dateString:r,position:a.position,value:s,unit:a.unit,year:a.year,month:a.month}})}},{key:"removeOverlappingTS",value:function(e){var t,i=this,a=new Y(this.ctx),s=!1;e.length>0&&e[0].value&&e.every(function(o){return o.value.length===e[0].value.length})&&(s=!0,t=a.getTextRects(e[0].value).width);var n=0,r=e.map(function(o,h){if(h>0&&i.w.config.xaxis.labels.hideOverlappingLabels){var c=s?t:a.getTextRects(e[n].value).width,d=e[n].position;return o.position>d+c+10?(n=h,o):null}return o});return r=r.filter(function(o){return o!==null})}},{key:"_getYear",value:function(e,t,i){return e+Math.floor(t/12)+i}}]),v}(),Ki=function(){function v(e,t){O(this,v),this.ctx=t,this.w=t.w,this.el=e}return I(v,[{key:"setupElements",value:function(){var e=this.w.globals,t=this.w.config,i=t.chart.type;e.axisCharts=["line","area","bar","rangeBar","rangeArea","candlestick","boxPlot","scatter","bubble","radar","heatmap","treemap"].indexOf(i)>-1,e.xyCharts=["line","area","bar","rangeBar","rangeArea","candlestick","boxPlot","scatter","bubble"].indexOf(i)>-1,e.isBarHorizontal=(t.chart.type==="bar"||t.chart.type==="rangeBar"||t.chart.type==="boxPlot")&&t.plotOptions.bar.horizontal,e.chartClass=".apexcharts"+e.chartID,e.dom.baseEl=this.el,e.dom.elWrap=document.createElement("div"),Y.setAttrs(e.dom.elWrap,{id:e.chartClass.substring(1),class:"apexcharts-canvas "+e.chartClass.substring(1)}),this.el.appendChild(e.dom.elWrap),e.dom.Paper=new window.SVG.Doc(e.dom.elWrap),e.dom.Paper.attr({class:"apexcharts-svg","xmlns:data":"ApexChartsNS",transform:"translate(".concat(t.chart.offsetX,", ").concat(t.chart.offsetY,")")}),e.dom.Paper.node.style.background=t.chart.background,this.setSVGDimensions(),e.dom.elGraphical=e.dom.Paper.group().attr({class:"apexcharts-inner apexcharts-graphical"}),e.dom.elAnnotations=e.dom.Paper.group().attr({class:"apexcharts-annotations"}),e.dom.elDefs=e.dom.Paper.defs(),e.dom.elLegendWrap=document.createElement("div"),e.dom.elLegendWrap.classList.add("apexcharts-legend"),e.dom.elWrap.appendChild(e.dom.elLegendWrap),e.dom.Paper.add(e.dom.elGraphical),e.dom.elGraphical.add(e.dom.elDefs)}},{key:"plotChartType",value:function(e,t){var i=this.w,a=i.config,s=i.globals,n={series:[],i:[]},r={series:[],i:[]},o={series:[],i:[]},h={series:[],i:[]},c={series:[],i:[]},d={series:[],i:[]},g={series:[],i:[]},p={series:[],i:[]},x={series:[],seriesRangeEnd:[],i:[]};s.series.map(function(b,A){var P=0;e[A].type!==void 0?(e[A].type==="column"||e[A].type==="bar"?(s.series.length>1&&a.plotOptions.bar.horizontal&&console.warn("Horizontal bars are not supported in a mixed/combo chart. Please turn off `plotOptions.bar.horizontal`"),c.series.push(b),c.i.push(A),P++,i.globals.columnSeries=c.series):e[A].type==="area"?(r.series.push(b),r.i.push(A),P++):e[A].type==="line"?(n.series.push(b),n.i.push(A),P++):e[A].type==="scatter"?(o.series.push(b),o.i.push(A)):e[A].type==="bubble"?(h.series.push(b),h.i.push(A),P++):e[A].type==="candlestick"?(d.series.push(b),d.i.push(A),P++):e[A].type==="boxPlot"?(g.series.push(b),g.i.push(A),P++):e[A].type==="rangeBar"?(p.series.push(b),p.i.push(A),P++):e[A].type==="rangeArea"?(x.series.push(s.seriesRangeStart[A]),x.seriesRangeEnd.push(s.seriesRangeEnd[A]),x.i.push(A),P++):console.warn("You have specified an unrecognized chart type. Available types for this property are line/area/column/bar/scatter/bubble"),P>1&&(s.comboCharts=!0)):(n.series.push(b),n.i.push(A))});var f=new He(this.ctx,t),y=new De(this.ctx,t);this.ctx.pie=new st(this.ctx);var w=new Ui(this.ctx);this.ctx.rangeBar=new $i(this.ctx,t);var S=new ji(this.ctx),k=[];if(s.comboCharts){if(r.series.length>0&&k.push(f.draw(r.series,"area",r.i)),c.series.length>0)if(i.config.chart.stacked){var l=new tt(this.ctx,t);k.push(l.draw(c.series,c.i))}else this.ctx.bar=new be(this.ctx,t),k.push(this.ctx.bar.draw(c.series,c.i));if(x.series.length>0&&k.push(f.draw(x.series,"rangeArea",x.i,x.seriesRangeEnd)),n.series.length>0&&k.push(f.draw(n.series,"line",n.i)),d.series.length>0&&k.push(y.draw(d.series,d.i)),g.series.length>0&&k.push(y.draw(g.series,g.i)),p.series.length>0&&k.push(this.ctx.rangeBar.draw(p.series,p.i)),o.series.length>0){var u=new He(this.ctx,t,!0);k.push(u.draw(o.series,"scatter",o.i))}if(h.series.length>0){var m=new He(this.ctx,t,!0);k.push(m.draw(h.series,"bubble",h.i))}}else switch(a.chart.type){case"line":k=f.draw(s.series,"line");break;case"area":k=f.draw(s.series,"area");break;case"bar":a.chart.stacked?k=new tt(this.ctx,t).draw(s.series):(this.ctx.bar=new be(this.ctx,t),k=this.ctx.bar.draw(s.series));break;case"candlestick":k=new De(this.ctx,t).draw(s.series);break;case"boxPlot":k=new De(this.ctx,t).draw(s.series);break;case"rangeBar":k=this.ctx.rangeBar.draw(s.series);break;case"rangeArea":k=f.draw(s.seriesRangeStart,"rangeArea",void 0,s.seriesRangeEnd);break;case"heatmap":k=new Vi(this.ctx,t).draw(s.series);break;case"treemap":k=new Zi(this.ctx,t).draw(s.series);break;case"pie":case"donut":case"polarArea":k=this.ctx.pie.draw(s.series);break;case"radialBar":k=w.draw(s.series);break;case"radar":k=S.draw(s.series);break;default:k=f.draw(s.series)}return k}},{key:"setSVGDimensions",value:function(){var e=this.w.globals,t=this.w.config;e.svgWidth=t.chart.width,e.svgHeight=t.chart.height;var i=L.getDimensions(this.el),a=t.chart.width.toString().split(/[0-9]+/g).pop();a==="%"?L.isNumber(i[0])&&(i[0].width===0&&(i=L.getDimensions(this.el.parentNode)),e.svgWidth=i[0]*parseInt(t.chart.width,10)/100):a!=="px"&&a!==""||(e.svgWidth=parseInt(t.chart.width,10));var s=t.chart.height.toString().split(/[0-9]+/g).pop();if(e.svgHeight!=="auto"&&e.svgHeight!=="")if(s==="%"){var n=L.getDimensions(this.el.parentNode);e.svgHeight=n[1]*parseInt(t.chart.height,10)/100}else e.svgHeight=parseInt(t.chart.height,10);else e.axisCharts?e.svgHeight=e.svgWidth/1.61:e.svgHeight=e.svgWidth/1.2;if(e.svgWidth<0&&(e.svgWidth=0),e.svgHeight<0&&(e.svgHeight=0),Y.setAttrs(e.dom.Paper.node,{width:e.svgWidth,height:e.svgHeight}),s!=="%"){var r=t.chart.sparkline.enabled?0:e.axisCharts?t.chart.parentHeightOffset:0;e.dom.Paper.node.parentNode.parentNode.style.minHeight=e.svgHeight+r+"px"}e.dom.elWrap.style.width=e.svgWidth+"px",e.dom.elWrap.style.height=e.svgHeight+"px"}},{key:"shiftGraphPosition",value:function(){var e=this.w.globals,t=e.translateY,i={transform:"translate("+e.translateX+", "+t+")"};Y.setAttrs(e.dom.elGraphical.node,i)}},{key:"resizeNonAxisCharts",value:function(){var e=this.w,t=e.globals,i=0,a=e.config.chart.sparkline.enabled?1:15;a+=e.config.grid.padding.bottom,e.config.legend.position!=="top"&&e.config.legend.position!=="bottom"||!e.config.legend.show||e.config.legend.floating||(i=new Ze(this.ctx).legendHelpers.getLegendBBox().clwh+10);var s=e.globals.dom.baseEl.querySelector(".apexcharts-radialbar, .apexcharts-pie"),n=2.05*e.globals.radialSize;if(s&&!e.config.chart.sparkline.enabled&&e.config.plotOptions.radialBar.startAngle!==0){var r=L.getBoundingClientRect(s);n=r.bottom;var o=r.bottom-r.top;n=Math.max(2.05*e.globals.radialSize,o)}var h=n+t.translateY+i+a;t.dom.elLegendForeign&&t.dom.elLegendForeign.setAttribute("height",h),e.config.chart.height&&String(e.config.chart.height).indexOf("%")>0||(t.dom.elWrap.style.height=h+"px",Y.setAttrs(t.dom.Paper.node,{height:h}),t.dom.Paper.node.parentNode.parentNode.style.minHeight=h+"px")}},{key:"coreCalculations",value:function(){new Ye(this.ctx).init()}},{key:"resetGlobals",value:function(){var e=this,t=function(){return e.w.config.series.map(function(s){return[]})},i=new je,a=this.w.globals;i.initGlobalVars(a),a.seriesXvalues=t(),a.seriesYvalues=t()}},{key:"isMultipleY",value:function(){if(this.w.config.yaxis.constructor===Array&&this.w.config.yaxis.length>1)return this.w.globals.isMultipleYAxis=!0,!0}},{key:"xySettings",value:function(){var e=null,t=this.w;if(t.globals.axisCharts){if(t.config.xaxis.crosshairs.position==="back"&&new Re(this.ctx).drawXCrosshairs(),t.config.yaxis[0].crosshairs.position==="back"&&new Re(this.ctx).drawYCrosshairs(),t.config.xaxis.type==="datetime"&&t.config.xaxis.labels.formatter===void 0){this.ctx.timeScale=new Qi(this.ctx);var i=[];isFinite(t.globals.minX)&&isFinite(t.globals.maxX)&&!t.globals.isBarHorizontal?i=this.ctx.timeScale.calculateTimeScaleTicks(t.globals.minX,t.globals.maxX):t.globals.isBarHorizontal&&(i=this.ctx.timeScale.calculateTimeScaleTicks(t.globals.minY,t.globals.maxY)),this.ctx.timeScale.recalcDimensionsBasedOnFormat(i)}e=new q(this.ctx).getCalculatedRatios()}return e}},{key:"updateSourceChart",value:function(e){this.ctx.w.globals.selection=void 0,this.ctx.updateHelpers._updateOptions({chart:{selection:{xaxis:{min:e.w.globals.minX,max:e.w.globals.maxX}}}},!1,!1)}},{key:"setupBrushHandler",value:function(){var e=this,t=this.w;if(t.config.chart.brush.enabled&&typeof t.config.chart.events.selection!="function"){var i=t.config.chart.brush.targets||[t.config.chart.brush.target];i.forEach(function(a){var s=ApexCharts.getChartByID(a);s.w.globals.brushSource=e.ctx,typeof s.w.config.chart.events.zoomed!="function"&&(s.w.config.chart.events.zoomed=function(){e.updateSourceChart(s)}),typeof s.w.config.chart.events.scrolled!="function"&&(s.w.config.chart.events.scrolled=function(){e.updateSourceChart(s)})}),t.config.chart.events.selection=function(a,s){i.forEach(function(n){var r=ApexCharts.getChartByID(n),o=L.clone(t.config.yaxis);if(t.config.chart.brush.autoScaleYaxis&&r.w.globals.series.length===1){var h=new me(r);o=h.autoScaleY(r,o,s)}var c=r.w.config.yaxis.reduce(function(d,g,p){return[].concat($(d),[z(z({},r.w.config.yaxis[p]),{},{min:o[0].min,max:o[0].max})])},[]);r.ctx.updateHelpers._updateOptions({xaxis:{min:s.xaxis.min,max:s.xaxis.max},yaxis:c},!1,!1,!1,!1)})}}}}]),v}(),ea=function(){function v(e){O(this,v),this.ctx=e,this.w=e.w}return I(v,[{key:"_updateOptions",value:function(e){var t=this,i=arguments.length>1&&arguments[1]!==void 0&&arguments[1],a=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],s=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3],n=arguments.length>4&&arguments[4]!==void 0&&arguments[4];return new Promise(function(r){var o=[t.ctx];s&&(o=t.ctx.getSyncedCharts()),t.ctx.w.globals.isExecCalled&&(o=[t.ctx],t.ctx.w.globals.isExecCalled=!1),o.forEach(function(h,c){var d=h.w;if(d.globals.shouldAnimate=a,i||(d.globals.resized=!0,d.globals.dataChanged=!0,a&&h.series.getPreviousPaths()),e&&G(e)==="object"&&(h.config=new we(e),e=q.extendArrayProps(h.config,e,d),h.w.globals.chartID!==t.ctx.w.globals.chartID&&delete e.series,d.config=L.extend(d.config,e),n&&(d.globals.lastXAxis=e.xaxis?L.clone(e.xaxis):[],d.globals.lastYAxis=e.yaxis?L.clone(e.yaxis):[],d.globals.initialConfig=L.extend({},d.config),d.globals.initialSeries=L.clone(d.config.series),e.series))){for(var g=0;g2&&arguments[2]!==void 0&&arguments[2];return new Promise(function(s){var n,r=i.w;return r.globals.shouldAnimate=t,r.globals.dataChanged=!0,t&&i.ctx.series.getPreviousPaths(),r.globals.axisCharts?((n=e.map(function(o,h){return i._extendSeries(o,h)})).length===0&&(n=[{data:[]}]),r.config.series=n):r.config.series=e.slice(),a&&(r.globals.initialConfig.series=L.clone(r.config.series),r.globals.initialSeries=L.clone(r.config.series)),i.ctx.update().then(function(){s(i.ctx)})})}},{key:"_extendSeries",value:function(e,t){var i=this.w,a=i.config.series[t];return z(z({},i.config.series[t]),{},{name:e.name?e.name:a&&a.name,color:e.color?e.color:a&&a.color,type:e.type?e.type:a&&a.type,data:e.data?e.data:a&&a.data})}},{key:"toggleDataPointSelection",value:function(e,t){var i=this.w,a=null,s=".apexcharts-series[data\\:realIndex='".concat(e,"']");return i.globals.axisCharts?a=i.globals.dom.Paper.select("".concat(s," path[j='").concat(t,"'], ").concat(s," circle[j='").concat(t,"'], ").concat(s," rect[j='").concat(t,"']")).members[0]:t===void 0&&(a=i.globals.dom.Paper.select("".concat(s," path[j='").concat(e,"']")).members[0],i.config.chart.type!=="pie"&&i.config.chart.type!=="polarArea"&&i.config.chart.type!=="donut"||this.ctx.pie.pieClicked(e)),a?(new Y(this.ctx).pathMouseDown(a,null),a.node?a.node:null):(console.warn("toggleDataPointSelection: Element not found"),null)}},{key:"forceXAxisUpdate",value:function(e){var t=this.w;if(["min","max"].forEach(function(a){e.xaxis[a]!==void 0&&(t.config.xaxis[a]=e.xaxis[a],t.globals.lastXAxis[a]=e.xaxis[a])}),e.xaxis.categories&&e.xaxis.categories.length&&(t.config.xaxis.categories=e.xaxis.categories),t.config.xaxis.convertedCatToNumeric){var i=new ye(e);e=i.convertCatToNumericXaxis(e,this.ctx)}return e}},{key:"forceYAxisUpdate",value:function(e){return e.chart&&e.chart.stacked&&e.chart.stackType==="100%"&&(Array.isArray(e.yaxis)?e.yaxis.forEach(function(t,i){e.yaxis[i].min=0,e.yaxis[i].max=100}):(e.yaxis.min=0,e.yaxis.max=100)),e}},{key:"revertDefaultAxisMinMax",value:function(e){var t=this,i=this.w,a=i.globals.lastXAxis,s=i.globals.lastYAxis;e&&e.xaxis&&(a=e.xaxis),e&&e.yaxis&&(s=e.yaxis),i.config.xaxis.min=a.min,i.config.xaxis.max=a.max;var n=function(r){s[r]!==void 0&&(i.config.yaxis[r].min=s[r].min,i.config.yaxis[r].max=s[r].max)};i.config.yaxis.map(function(r,o){i.globals.zoomed||s[o]!==void 0?n(o):t.ctx.opts.yaxis[o]!==void 0&&(r.min=t.ctx.opts.yaxis[o].min,r.max=t.ctx.opts.yaxis[o].max)})}}]),v}();ue=typeof window<"u"?window:void 0,Te=function(v,e){var t=(this!==void 0?this:v).SVG=function(l){if(t.supported)return l=new t.Doc(l),t.parser.draw||t.prepare(),l};if(t.ns="http://www.w3.org/2000/svg",t.xmlns="http://www.w3.org/2000/xmlns/",t.xlink="http://www.w3.org/1999/xlink",t.svgjs="http://svgjs.dev",t.supported=!0,!t.supported)return!1;t.did=1e3,t.eid=function(l){return"Svgjs"+c(l)+t.did++},t.create=function(l){var u=e.createElementNS(this.ns,l);return u.setAttribute("id",this.eid(l)),u},t.extend=function(){var l,u;u=(l=[].slice.call(arguments)).pop();for(var m=l.length-1;m>=0;m--)if(l[m])for(var b in u)l[m].prototype[b]=u[b];t.Set&&t.Set.inherit&&t.Set.inherit()},t.invent=function(l){var u=typeof l.create=="function"?l.create:function(){this.constructor.call(this,t.create(l.create))};return l.inherit&&(u.prototype=new l.inherit),l.extend&&t.extend(u,l.extend),l.construct&&t.extend(l.parent||t.Container,l.construct),u},t.adopt=function(l){return l?l.instance?l.instance:((u=l.nodeName=="svg"?l.parentNode instanceof v.SVGElement?new t.Nested:new t.Doc:l.nodeName=="linearGradient"?new t.Gradient("linear"):l.nodeName=="radialGradient"?new t.Gradient("radial"):t[c(l.nodeName)]?new t[c(l.nodeName)]:new t.Element(l)).type=l.nodeName,u.node=l,l.instance=u,u instanceof t.Doc&&u.namespace().defs(),u.setData(JSON.parse(l.getAttribute("svgjs:data"))||{}),u):null;var u},t.prepare=function(){var l=e.getElementsByTagName("body")[0],u=(l?new t.Doc(l):t.adopt(e.documentElement).nested()).size(2,0);t.parser={body:l||e.documentElement,draw:u.style("opacity:0;position:absolute;left:-100%;top:-100%;overflow:hidden").node,poly:u.polyline().node,path:u.path().node,native:t.create("svg")}},t.parser={native:t.create("svg")},e.addEventListener("DOMContentLoaded",function(){t.parser.draw||t.prepare()},!1),t.regex={numberAndUnit:/^([+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?)([a-z%]*)$/i,hex:/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,rgb:/rgb\((\d+),(\d+),(\d+)\)/,reference:/#([a-z0-9\-_]+)/i,transforms:/\)\s*,?\s*/,whitespace:/\s/g,isHex:/^#[a-f0-9]{3,6}$/i,isRgb:/^rgb\(/,isCss:/[^:]+:[^;]+;?/,isBlank:/^(\s+)?$/,isNumber:/^[+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,isPercent:/^-?[\d\.]+%$/,isImage:/\.(jpg|jpeg|png|gif|svg)(\?[^=]+.*)?/i,delimiter:/[\s,]+/,hyphen:/([^e])\-/gi,pathLetters:/[MLHVCSQTAZ]/gi,isPathLetter:/[MLHVCSQTAZ]/i,numbersWithDots:/((\d?\.\d+(?:e[+-]?\d+)?)((?:\.\d+(?:e[+-]?\d+)?)+))+/gi,dots:/\./g},t.utils={map:function(l,u){for(var m=l.length,b=[],A=0;A1?1:l,new t.Color({r:~~(this.r+(this.destination.r-this.r)*l),g:~~(this.g+(this.destination.g-this.g)*l),b:~~(this.b+(this.destination.b-this.b)*l)})):this}}),t.Color.test=function(l){return l+="",t.regex.isHex.test(l)||t.regex.isRgb.test(l)},t.Color.isRgb=function(l){return l&&typeof l.r=="number"&&typeof l.g=="number"&&typeof l.b=="number"},t.Color.isColor=function(l){return t.Color.isRgb(l)||t.Color.test(l)},t.Array=function(l,u){(l=(l||[]).valueOf()).length==0&&u&&(l=u.valueOf()),this.value=this.parse(l)},t.extend(t.Array,{toString:function(){return this.value.join(" ")},valueOf:function(){return this.value},parse:function(l){return l=l.valueOf(),Array.isArray(l)?l:this.split(l)}}),t.PointArray=function(l,u){t.Array.call(this,l,u||[[0,0]])},t.PointArray.prototype=new t.Array,t.PointArray.prototype.constructor=t.PointArray;for(var i={M:function(l,u,m){return u.x=m.x=l[0],u.y=m.y=l[1],["M",u.x,u.y]},L:function(l,u){return u.x=l[0],u.y=l[1],["L",l[0],l[1]]},H:function(l,u){return u.x=l[0],["H",l[0]]},V:function(l,u){return u.y=l[0],["V",l[0]]},C:function(l,u){return u.x=l[4],u.y=l[5],["C",l[0],l[1],l[2],l[3],l[4],l[5]]},Q:function(l,u){return u.x=l[2],u.y=l[3],["Q",l[0],l[1],l[2],l[3]]},Z:function(l,u,m){return u.x=m.x,u.y=m.y,["Z"]}},a="mlhvqtcsaz".split(""),s=0,n=a.length;sC);return b},bbox:function(){return t.parser.draw||t.prepare(),t.parser.path.setAttribute("d",this.toString()),t.parser.path.getBBox()}}),t.Number=t.invent({create:function(l,u){this.value=0,this.unit=u||"",typeof l=="number"?this.value=isNaN(l)?0:isFinite(l)?l:l<0?-34e37:34e37:typeof l=="string"?(u=l.match(t.regex.numberAndUnit))&&(this.value=parseFloat(u[1]),u[5]=="%"?this.value/=100:u[5]=="s"&&(this.value*=1e3),this.unit=u[5]):l instanceof t.Number&&(this.value=l.valueOf(),this.unit=l.unit)},extend:{toString:function(){return(this.unit=="%"?~~(1e8*this.value)/1e6:this.unit=="s"?this.value/1e3:this.value)+this.unit},toJSON:function(){return this.toString()},valueOf:function(){return this.value},plus:function(l){return l=new t.Number(l),new t.Number(this+l,this.unit||l.unit)},minus:function(l){return l=new t.Number(l),new t.Number(this-l,this.unit||l.unit)},times:function(l){return l=new t.Number(l),new t.Number(this*l,this.unit||l.unit)},divide:function(l){return l=new t.Number(l),new t.Number(this/l,this.unit||l.unit)},to:function(l){var u=new t.Number(this);return typeof l=="string"&&(u.unit=l),u},morph:function(l){return this.destination=new t.Number(l),l.relative&&(this.destination.value+=this.value),this},at:function(l){return this.destination?new t.Number(this.destination).minus(this).times(l).plus(this):this}}}),t.Element=t.invent({create:function(l){this._stroke=t.defaults.attrs.stroke,this._event=null,this.dom={},(this.node=l)&&(this.type=l.nodeName,this.node.instance=this,this._stroke=l.getAttribute("stroke")||this._stroke)},extend:{x:function(l){return this.attr("x",l)},y:function(l){return this.attr("y",l)},cx:function(l){return l==null?this.x()+this.width()/2:this.x(l-this.width()/2)},cy:function(l){return l==null?this.y()+this.height()/2:this.y(l-this.height()/2)},move:function(l,u){return this.x(l).y(u)},center:function(l,u){return this.cx(l).cy(u)},width:function(l){return this.attr("width",l)},height:function(l){return this.attr("height",l)},size:function(l,u){var m=g(this,l,u);return this.width(new t.Number(m.width)).height(new t.Number(m.height))},clone:function(l){this.writeDataToDom();var u=f(this.node.cloneNode(!0));return l?l.add(u):this.after(u),u},remove:function(){return this.parent()&&this.parent().removeElement(this),this},replace:function(l){return this.after(l).remove(),l},addTo:function(l){return l.put(this)},putIn:function(l){return l.add(this)},id:function(l){return this.attr("id",l)},show:function(){return this.style("display","")},hide:function(){return this.style("display","none")},visible:function(){return this.style("display")!="none"},toString:function(){return this.attr("id")},classes:function(){var l=this.attr("class");return l==null?[]:l.trim().split(t.regex.delimiter)},hasClass:function(l){return this.classes().indexOf(l)!=-1},addClass:function(l){if(!this.hasClass(l)){var u=this.classes();u.push(l),this.attr("class",u.join(" "))}return this},removeClass:function(l){return this.hasClass(l)&&this.attr("class",this.classes().filter(function(u){return u!=l}).join(" ")),this},toggleClass:function(l){return this.hasClass(l)?this.removeClass(l):this.addClass(l)},reference:function(l){return t.get(this.attr(l))},parent:function(l){var u=this;if(!u.node.parentNode)return null;if(u=t.adopt(u.node.parentNode),!l)return u;for(;u&&u.node instanceof v.SVGElement;){if(typeof l=="string"?u.matches(l):u instanceof l)return u;if(!u.node.parentNode||u.node.parentNode.nodeName=="#document")return null;u=t.adopt(u.node.parentNode)}},doc:function(){return this instanceof t.Doc?this:this.parent(t.Doc)},parents:function(l){var u=[],m=this;do{if(!(m=m.parent(l))||!m.node)break;u.push(m)}while(m.parent);return u},matches:function(l){return function(u,m){return(u.matches||u.matchesSelector||u.msMatchesSelector||u.mozMatchesSelector||u.webkitMatchesSelector||u.oMatchesSelector).call(u,m)}(this.node,l)},native:function(){return this.node},svg:function(l){var u=e.createElement("svg");if(!(l&&this instanceof t.Parent))return u.appendChild(l=e.createElement("svg")),this.writeDataToDom(),l.appendChild(this.node.cloneNode(!0)),u.innerHTML.replace(/^/,"").replace(/<\/svg>$/,"");u.innerHTML=""+l.replace(/\n/,"").replace(/<([\w:-]+)([^<]+?)\/>/g,"<$1$2>")+"";for(var m=0,b=u.firstChild.childNodes.length;m":function(l){return-Math.cos(l*Math.PI)/2+.5},">":function(l){return Math.sin(l*Math.PI/2)},"<":function(l){return 1-Math.cos(l*Math.PI/2)}},t.morph=function(l){return function(u,m){return new t.MorphObj(u,m).at(l)}},t.Situation=t.invent({create:function(l){this.init=!1,this.reversed=!1,this.reversing=!1,this.duration=new t.Number(l.duration).valueOf(),this.delay=new t.Number(l.delay).valueOf(),this.start=+new Date+this.delay,this.finish=this.start+this.duration,this.ease=l.ease,this.loop=0,this.loops=!1,this.animations={},this.attrs={},this.styles={},this.transforms=[],this.once={}}}),t.FX=t.invent({create:function(l){this._target=l,this.situations=[],this.active=!1,this.situation=null,this.paused=!1,this.lastPos=0,this.pos=0,this.absPos=0,this._speed=1},extend:{animate:function(l,u,m){G(l)==="object"&&(u=l.ease,m=l.delay,l=l.duration);var b=new t.Situation({duration:l||1e3,delay:m||0,ease:t.easing[u||"-"]||u});return this.queue(b),this},target:function(l){return l&&l instanceof t.Element?(this._target=l,this):this._target},timeToAbsPos:function(l){return(l-this.situation.start)/(this.situation.duration/this._speed)},absPosToTime:function(l){return this.situation.duration/this._speed*l+this.situation.start},startAnimFrame:function(){this.stopAnimFrame(),this.animationFrame=v.requestAnimationFrame((function(){this.step()}).bind(this))},stopAnimFrame:function(){v.cancelAnimationFrame(this.animationFrame)},start:function(){return!this.active&&this.situation&&(this.active=!0,this.startCurrent()),this},startCurrent:function(){return this.situation.start=+new Date+this.situation.delay/this._speed,this.situation.finish=this.situation.start+this.situation.duration/this._speed,this.initAnimations().step()},queue:function(l){return(typeof l=="function"||l instanceof t.Situation)&&this.situations.push(l),this.situation||(this.situation=this.situations.shift()),this},dequeue:function(){return this.stop(),this.situation=this.situations.shift(),this.situation&&(this.situation instanceof t.Situation?this.start():this.situation.call(this)),this},initAnimations:function(){var l,u=this.situation;if(u.init)return this;for(var m in u.animations){l=this.target()[m](),Array.isArray(l)||(l=[l]),Array.isArray(u.animations[m])||(u.animations[m]=[u.animations[m]]);for(var b=l.length;b--;)u.animations[m][b]instanceof t.Number&&(l[b]=new t.Number(l[b])),u.animations[m][b]=l[b].morph(u.animations[m][b])}for(var m in u.attrs)u.attrs[m]=new t.MorphObj(this.target().attr(m),u.attrs[m]);for(var m in u.styles)u.styles[m]=new t.MorphObj(this.target().style(m),u.styles[m]);return u.initialTransformation=this.target().matrixify(),u.init=!0,this},clearQueue:function(){return this.situations=[],this},clearCurrent:function(){return this.situation=null,this},stop:function(l,u){var m=this.active;return this.active=!1,u&&this.clearQueue(),l&&this.situation&&(!m&&this.startCurrent(),this.atEnd()),this.stopAnimFrame(),this.clearCurrent()},after:function(l){var u=this.last();return this.target().on("finished.fx",function m(b){b.detail.situation==u&&(l.call(this,u),this.off("finished.fx",m))}),this._callStart()},during:function(l){var u=this.last(),m=function(b){b.detail.situation==u&&l.call(this,b.detail.pos,t.morph(b.detail.pos),b.detail.eased,u)};return this.target().off("during.fx",m).on("during.fx",m),this.after(function(){this.off("during.fx",m)}),this._callStart()},afterAll:function(l){var u=function m(b){l.call(this),this.off("allfinished.fx",m)};return this.target().off("allfinished.fx",u).on("allfinished.fx",u),this._callStart()},last:function(){return this.situations.length?this.situations[this.situations.length-1]:this.situation},add:function(l,u,m){return this.last()[m||"animations"][l]=u,this._callStart()},step:function(l){var u,m,b;l||(this.absPos=this.timeToAbsPos(+new Date)),this.situation.loops!==!1?(u=Math.max(this.absPos,0),m=Math.floor(u),this.situation.loops===!0||mthis.lastPos&&P<=A&&(this.situation.once[P].call(this.target(),this.pos,A),delete this.situation.once[P]);return this.active&&this.target().fire("during",{pos:this.pos,eased:A,fx:this,situation:this.situation}),this.situation?(this.eachAt(),this.pos==1&&!this.situation.reversed||this.situation.reversed&&this.pos==0?(this.stopAnimFrame(),this.target().fire("finished",{fx:this,situation:this.situation}),this.situations.length||(this.target().fire("allfinished"),this.situations.length||(this.target().off(".fx"),this.active=!1)),this.active?this.dequeue():this.clearCurrent()):!this.paused&&this.active&&this.startAnimFrame(),this.lastPos=A,this):this},eachAt:function(){var l,u=this,m=this.target(),b=this.situation;for(var A in b.animations)l=[].concat(b.animations[A]).map(function(E){return typeof E!="string"&&E.at?E.at(b.ease(u.pos),u.pos):E}),m[A].apply(m,l);for(var A in b.attrs)l=[A].concat(b.attrs[A]).map(function(T){return typeof T!="string"&&T.at?T.at(b.ease(u.pos),u.pos):T}),m.attr.apply(m,l);for(var A in b.styles)l=[A].concat(b.styles[A]).map(function(T){return typeof T!="string"&&T.at?T.at(b.ease(u.pos),u.pos):T}),m.style.apply(m,l);if(b.transforms.length){l=b.initialTransformation,A=0;for(var P=b.transforms.length;A=0;--m)this[S[m]]=l[S[m]]!=null?l[S[m]]:u[S[m]]},extend:{extract:function(){var l=p(this,0,1);p(this,1,0);var u=180/Math.PI*Math.atan2(l.y,l.x)-90;return{x:this.e,y:this.f,transformedX:(this.e*Math.cos(u*Math.PI/180)+this.f*Math.sin(u*Math.PI/180))/Math.sqrt(this.a*this.a+this.b*this.b),transformedY:(this.f*Math.cos(u*Math.PI/180)+this.e*Math.sin(-u*Math.PI/180))/Math.sqrt(this.c*this.c+this.d*this.d),rotation:u,a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f,matrix:new t.Matrix(this)}},clone:function(){return new t.Matrix(this)},morph:function(l){return this.destination=new t.Matrix(l),this},multiply:function(l){return new t.Matrix(this.native().multiply(function(u){return u instanceof t.Matrix||(u=new t.Matrix(u)),u}(l).native()))},inverse:function(){return new t.Matrix(this.native().inverse())},translate:function(l,u){return new t.Matrix(this.native().translate(l||0,u||0))},native:function(){for(var l=t.parser.native.createSVGMatrix(),u=S.length-1;u>=0;u--)l[S[u]]=this[S[u]];return l},toString:function(){return"matrix("+w(this.a)+","+w(this.b)+","+w(this.c)+","+w(this.d)+","+w(this.e)+","+w(this.f)+")"}},parent:t.Element,construct:{ctm:function(){return new t.Matrix(this.node.getCTM())},screenCTM:function(){if(this instanceof t.Nested){var l=this.rect(1,1),u=l.node.getScreenCTM();return l.remove(),new t.Matrix(u)}return new t.Matrix(this.node.getScreenCTM())}}}),t.Point=t.invent({create:function(l,u){var m;m=Array.isArray(l)?{x:l[0],y:l[1]}:G(l)==="object"?{x:l.x,y:l.y}:l!=null?{x:l,y:u??l}:{x:0,y:0},this.x=m.x,this.y=m.y},extend:{clone:function(){return new t.Point(this)},morph:function(l,u){return this.destination=new t.Point(l,u),this}}}),t.extend(t.Element,{point:function(l,u){return new t.Point(l,u).transform(this.screenCTM().inverse())}}),t.extend(t.Element,{attr:function(l,u,m){if(l==null){for(l={},m=(u=this.node.attributes).length-1;m>=0;m--)l[u[m].nodeName]=t.regex.isNumber.test(u[m].nodeValue)?parseFloat(u[m].nodeValue):u[m].nodeValue;return l}if(G(l)==="object")for(var b in l)this.attr(b,l[b]);else if(u===null)this.node.removeAttribute(l);else{if(u==null)return(u=this.node.getAttribute(l))==null?t.defaults.attrs[l]:t.regex.isNumber.test(u)?parseFloat(u):u;l=="stroke-width"?this.attr("stroke",parseFloat(u)>0?this._stroke:null):l=="stroke"&&(this._stroke=u),l!="fill"&&l!="stroke"||(t.regex.isImage.test(u)&&(u=this.doc().defs().image(u,0,0)),u instanceof t.Image&&(u=this.doc().defs().pattern(0,0,function(){this.add(u)}))),typeof u=="number"?u=new t.Number(u):t.Color.isColor(u)?u=new t.Color(u):Array.isArray(u)&&(u=new t.Array(u)),l=="leading"?this.leading&&this.leading(u):typeof m=="string"?this.node.setAttributeNS(m,l,u.toString()):this.node.setAttribute(l,u.toString()),!this.rebuild||l!="font-size"&&l!="x"||this.rebuild(l,u)}return this}}),t.extend(t.Element,{transform:function(l,u){var m;return G(l)!=="object"?(m=new t.Matrix(this).extract(),typeof l=="string"?m[l]:m):(m=new t.Matrix(this),u=!!u||!!l.relative,l.a!=null&&(m=u?m.multiply(new t.Matrix(l)):new t.Matrix(l)),this.attr("transform",m))}}),t.extend(t.Element,{untransform:function(){return this.attr("transform",null)},matrixify:function(){return(this.attr("transform")||"").split(t.regex.transforms).slice(0,-1).map(function(l){var u=l.trim().split("(");return[u[0],u[1].split(t.regex.delimiter).map(function(m){return parseFloat(m)})]}).reduce(function(l,u){return u[0]=="matrix"?l.multiply(x(u[1])):l[u[0]].apply(l,u[1])},new t.Matrix)},toParent:function(l){if(this==l)return this;var u=this.screenCTM(),m=l.screenCTM().inverse();return this.addTo(l).untransform().transform(m.multiply(u)),this},toDoc:function(){return this.toParent(this.doc())}}),t.Transformation=t.invent({create:function(l,u){if(arguments.length>1&&typeof u!="boolean")return this.constructor.call(this,[].slice.call(arguments));if(Array.isArray(l))for(var m=0,b=this.arguments.length;m=0},index:function(l){return[].slice.call(this.node.childNodes).indexOf(l.node)},get:function(l){return t.adopt(this.node.childNodes[l])},first:function(){return this.get(0)},last:function(){return this.get(this.node.childNodes.length-1)},each:function(l,u){for(var m=this.children(),b=0,A=m.length;b`),this.t.download&&n.push({el:this.elMenuIcon,icon:typeof this.t.download=="string"?this.t.download:'',title:this.localeValues.menu,class:"apexcharts-menu-icon"});for(var h=0;h0&&a.height>0&&this.slDraggableRect.selectize({points:"l, r",pointSize:8,pointType:"rect"}).resize({constraint:{minX:0,minY:0,maxX:i.globals.gridWidth,maxY:i.globals.gridHeight}}).on("resizing",this.selectionDragging.bind(this,"resizing"))}}},{key:"preselectedSelection",value:function(){var i=this.w,a=this.xyRatios;if(!i.globals.zoomEnabled){if(i.globals.selection!==void 0&&i.globals.selection!==null)this.drawSelectionRect(i.globals.selection);else if(i.config.chart.selection.xaxis.min!==void 0&&i.config.chart.selection.xaxis.max!==void 0){var s=(i.config.chart.selection.xaxis.min-i.globals.minX)/a.xRatio,n={x:s,y:0,width:i.globals.gridWidth-(i.globals.maxX-i.config.chart.selection.xaxis.max)/a.xRatio-s,height:i.globals.gridHeight,translateX:0,translateY:0,selectionEnabled:!0};this.drawSelectionRect(n),this.makeSelectionRectDraggable(),typeof i.config.chart.events.selection=="function"&&i.config.chart.events.selection(this.ctx,{xaxis:{min:i.config.chart.selection.xaxis.min,max:i.config.chart.selection.xaxis.max},yaxis:{}})}}}},{key:"drawSelectionRect",value:function(i){var a=i.x,s=i.y,n=i.width,r=i.height,o=i.translateX,h=o===void 0?0:o,c=i.translateY,d=c===void 0?0:c,g=this.w,p=this.zoomRect,x=this.selectionRect;if(this.dragged||g.globals.selection!==null){var f={transform:"translate("+h+", "+d+")"};g.globals.zoomEnabled&&this.dragged&&(n<0&&(n=1),p.attr({x:a,y:s,width:n,height:r,fill:g.config.chart.zoom.zoomedArea.fill.color,"fill-opacity":g.config.chart.zoom.zoomedArea.fill.opacity,stroke:g.config.chart.zoom.zoomedArea.stroke.color,"stroke-width":g.config.chart.zoom.zoomedArea.stroke.width,"stroke-opacity":g.config.chart.zoom.zoomedArea.stroke.opacity}),Y.setAttrs(p.node,f)),g.globals.selectionEnabled&&(x.attr({x:a,y:s,width:n>0?n:0,height:r>0?r:0,fill:g.config.chart.selection.fill.color,"fill-opacity":g.config.chart.selection.fill.opacity,stroke:g.config.chart.selection.stroke.color,"stroke-width":g.config.chart.selection.stroke.width,"stroke-dasharray":g.config.chart.selection.stroke.dashArray,"stroke-opacity":g.config.chart.selection.stroke.opacity}),Y.setAttrs(x.node,f))}}},{key:"hideSelectionRect",value:function(i){i&&i.attr({x:0,y:0,width:0,height:0})}},{key:"selectionDrawing",value:function(i){var a=i.context,s=i.zoomtype,n=this.w,r=a,o=this.gridRect.getBoundingClientRect(),h=r.startX-1,c=r.startY,d=!1,g=!1,p=r.clientX-o.left-h,x=r.clientY-o.top-c,f={};return Math.abs(p+h)>n.globals.gridWidth?p=n.globals.gridWidth-h:r.clientX-o.left<0&&(p=h),h>r.clientX-o.left&&(d=!0,p=Math.abs(p)),c>r.clientY-o.top&&(g=!0,x=Math.abs(x)),f=s==="x"?{x:d?h-p:h,y:0,width:p,height:n.globals.gridHeight}:s==="y"?{x:0,y:g?c-x:c,width:n.globals.gridWidth,height:x}:{x:d?h-p:h,y:g?c-x:c,width:p,height:x},r.drawSelectionRect(f),r.selectionDragging("resizing"),f}},{key:"selectionDragging",value:function(i,a){var s=this,n=this.w,r=this.xyRatios,o=this.selectionRect,h=0;i==="resizing"&&(h=30);var c=function(g){return parseFloat(o.node.getAttribute(g))},d={x:c("x"),y:c("y"),width:c("width"),height:c("height")};n.globals.selection=d,typeof n.config.chart.events.selection=="function"&&n.globals.selectionEnabled&&(clearTimeout(this.w.globals.selectionResizeTimer),this.w.globals.selectionResizeTimer=window.setTimeout(function(){var g=s.gridRect.getBoundingClientRect(),p=o.node.getBoundingClientRect(),x={xaxis:{min:n.globals.xAxisScale.niceMin+(p.left-g.left)*r.xRatio,max:n.globals.xAxisScale.niceMin+(p.right-g.left)*r.xRatio},yaxis:{min:n.globals.yAxisScale[0].niceMin+(g.bottom-p.bottom)*r.yRatio[0],max:n.globals.yAxisScale[0].niceMax-(p.top-g.top)*r.yRatio[0]}};n.config.chart.events.selection(s.ctx,x),n.config.chart.brush.enabled&&n.config.chart.events.brushScrolled!==void 0&&n.config.chart.events.brushScrolled(s.ctx,x)},h))}},{key:"selectionDrawn",value:function(i){var a=i.context,s=i.zoomtype,n=this.w,r=a,o=this.xyRatios,h=this.ctx.toolbar;if(r.startX>r.endX){var c=r.startX;r.startX=r.endX,r.endX=c}if(r.startY>r.endY){var d=r.startY;r.startY=r.endY,r.endY=d}var g=void 0,p=void 0;n.globals.isRangeBar?(g=n.globals.yAxisScale[0].niceMin+r.startX*o.invertedYRatio,p=n.globals.yAxisScale[0].niceMin+r.endX*o.invertedYRatio):(g=n.globals.xAxisScale.niceMin+r.startX*o.xRatio,p=n.globals.xAxisScale.niceMin+r.endX*o.xRatio);var x=[],f=[];if(n.config.yaxis.forEach(function(b,A){x.push(n.globals.yAxisScale[A].niceMax-o.yRatio[A]*r.startY),f.push(n.globals.yAxisScale[A].niceMax-o.yRatio[A]*r.endY)}),r.dragged&&(r.dragX>10||r.dragY>10)&&g!==p){if(n.globals.zoomEnabled){var y=L.clone(n.globals.initialConfig.yaxis),w=L.clone(n.globals.initialConfig.xaxis);if(n.globals.zoomed=!0,n.config.xaxis.convertedCatToNumeric&&(g=Math.floor(g),p=Math.floor(p),g<1&&(g=1,p=n.globals.dataPoints),p-g<2&&(p=g+1)),s!=="xy"&&s!=="x"||(w={min:g,max:p}),s!=="xy"&&s!=="y"||y.forEach(function(b,A){y[A].min=f[A],y[A].max=x[A]}),n.config.chart.zoom.autoScaleYaxis){var S=new xe(r.ctx);y=S.autoScaleY(r.ctx,y,{xaxis:w})}if(h){var k=h.getBeforeZoomRange(w,y);k&&(w=k.xaxis?k.xaxis:w,y=k.yaxis?k.yaxis:y)}var l={xaxis:w};n.config.chart.group||(l.yaxis=y),r.ctx.updateHelpers._updateOptions(l,!1,r.w.config.chart.animations.dynamicAnimation.enabled),typeof n.config.chart.events.zoomed=="function"&&h.zoomCallback(w,y)}else if(n.globals.selectionEnabled){var u,m=null;u={min:g,max:p},s!=="xy"&&s!=="y"||(m=L.clone(n.config.yaxis)).forEach(function(b,A){m[A].min=f[A],m[A].max=x[A]}),n.globals.selection=r.selection,typeof n.config.chart.events.selection=="function"&&n.config.chart.events.selection(r.ctx,{xaxis:u,yaxis:m})}}}},{key:"panDragging",value:function(i){var a=i.context,s=this.w,n=a;if(s.globals.lastClientPosition.x!==void 0){var r=s.globals.lastClientPosition.x-n.clientX,o=s.globals.lastClientPosition.y-n.clientY;Math.abs(r)>Math.abs(o)&&r>0?this.moveDirection="left":Math.abs(r)>Math.abs(o)&&r<0?this.moveDirection="right":Math.abs(o)>Math.abs(r)&&o>0?this.moveDirection="up":Math.abs(o)>Math.abs(r)&&o<0&&(this.moveDirection="down")}s.globals.lastClientPosition={x:n.clientX,y:n.clientY};var h=s.globals.isRangeBar?s.globals.minY:s.globals.minX,c=s.globals.isRangeBar?s.globals.maxY:s.globals.maxX;s.config.xaxis.convertedCatToNumeric||n.panScrolled(h,c)}},{key:"delayedPanScrolled",value:function(){var i=this.w,a=i.globals.minX,s=i.globals.maxX,n=(i.globals.maxX-i.globals.minX)/2;this.moveDirection==="left"?(a=i.globals.minX+n,s=i.globals.maxX+n):this.moveDirection==="right"&&(a=i.globals.minX-n,s=i.globals.maxX-n),a=Math.floor(a),s=Math.floor(s),this.updateScrolledChart({xaxis:{min:a,max:s}},a,s)}},{key:"panScrolled",value:function(i,a){var s=this.w,n=this.xyRatios,r=L.clone(s.globals.initialConfig.yaxis),o=n.xRatio,h=s.globals.minX,c=s.globals.maxX;s.globals.isRangeBar&&(o=n.invertedYRatio,h=s.globals.minY,c=s.globals.maxY),this.moveDirection==="left"?(i=h+s.globals.gridWidth/15*o,a=c+s.globals.gridWidth/15*o):this.moveDirection==="right"&&(i=h-s.globals.gridWidth/15*o,a=c-s.globals.gridWidth/15*o),s.globals.isRangeBar||(is.globals.initialMaxX)&&(i=h,a=c);var d={min:i,max:a};s.config.chart.zoom.autoScaleYaxis&&(r=new xe(this.ctx).autoScaleY(this.ctx,r,{xaxis:d}));var g={xaxis:{min:i,max:a}};s.config.chart.group||(g.yaxis=r),this.updateScrolledChart(g,i,a)}},{key:"updateScrolledChart",value:function(i,a,s){var n=this.w;this.ctx.updateHelpers._updateOptions(i,!1,!1),typeof n.config.chart.events.scrolled=="function"&&n.config.chart.events.scrolled(this.ctx,{xaxis:{min:a,max:s}})}}]),t}(Je),Qe=function(){function v(e){O(this,v),this.w=e.w,this.ttCtx=e,this.ctx=e.ctx}return E(v,[{key:"getNearestValues",value:function(e){var t=e.hoverArea,i=e.elGrid,a=e.clientX,s=e.clientY,n=this.w,r=i.getBoundingClientRect(),o=r.width,h=r.height,c=o/(n.globals.dataPoints-1),d=h/n.globals.dataPoints,g=this.hasBars();!n.globals.comboCharts&&!g||n.config.xaxis.convertedCatToNumeric||(c=o/n.globals.dataPoints);var p=a-r.left-n.globals.barPadForNumericAxis,x=s-r.top;p<0||x<0||p>o||x>h?(t.classList.remove("hovering-zoom"),t.classList.remove("hovering-pan")):n.globals.zoomEnabled?(t.classList.remove("hovering-pan"),t.classList.add("hovering-zoom")):n.globals.panEnabled&&(t.classList.remove("hovering-zoom"),t.classList.add("hovering-pan"));var f=Math.round(p/c),y=Math.floor(x/d);g&&!n.config.xaxis.convertedCatToNumeric&&(f=Math.ceil(p/c),f-=1);var w=null,S=null,k=[],l=[];if(n.globals.seriesXvalues.forEach(function(A){k.push([A[0]+1e-6].concat(A))}),n.globals.seriesYvalues.forEach(function(A){l.push([A[0]+1e-6].concat(A))}),k=k.map(function(A){return A.filter(function(P){return L.isNumber(P)})}),l=l.map(function(A){return A.filter(function(P){return L.isNumber(P)})}),n.globals.isXNumeric){var u=this.ttCtx.getElGrid().getBoundingClientRect(),m=p*(u.width/o),b=x*(u.height/h);w=(S=this.closestInMultiArray(m,b,k,l)).index,f=S.j,w!==null&&(k=n.globals.seriesXvalues[w],f=(S=this.closestInArray(m,k)).index)}return n.globals.capturedSeriesIndex=w===null?-1:w,(!f||f<1)&&(f=0),n.globals.isBarHorizontal?n.globals.capturedDataPointIndex=y:n.globals.capturedDataPointIndex=f,{capturedSeries:w,j:n.globals.isBarHorizontal?y:f,hoverX:p,hoverY:x}}},{key:"closestInMultiArray",value:function(e,t,i,a){var s=this.w,n=0,r=null,o=-1;s.globals.series.length>1?n=this.getFirstActiveXArray(i):r=0;var h=i[n][0],c=Math.abs(e-h);if(i.forEach(function(p){p.forEach(function(x,f){var y=Math.abs(e-x);y0?r:-1}),s=0;s0)for(var a=0;as?-1:0});var t=[];return e.forEach(function(i){t.push(i.querySelector(".apexcharts-marker"))}),t}},{key:"hasMarkers",value:function(){return this.getElMarkers().length>0}},{key:"getElBars",value:function(){return this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-bar-series, .apexcharts-candlestick-series, .apexcharts-boxPlot-series, .apexcharts-rangebar-series")}},{key:"hasBars",value:function(){return this.getElBars().length>0}},{key:"getHoverMarkerSize",value:function(e){var t=this.w,i=t.config.markers.hover.size;return i===void 0&&(i=t.globals.markers.size[e]+t.config.markers.hover.sizeOffset),i}},{key:"toggleAllTooltipSeriesGroups",value:function(e){var t=this.w,i=this.ttCtx;i.allTooltipSeriesGroups.length===0&&(i.allTooltipSeriesGroups=t.globals.dom.baseEl.querySelectorAll(".apexcharts-tooltip-series-group"));for(var a=i.allTooltipSeriesGroups,s=0;s ').concat(A.attrs.name,""),b+="
".concat(A.val,"
")}),k.innerHTML=m+"",l.innerHTML=b+""};r?h.globals.seriesGoals[t][i]&&Array.isArray(h.globals.seriesGoals[t][i])?u():(k.innerHTML="",l.innerHTML=""):u()}else k.innerHTML="",l.innerHTML="";f!==null&&(a[t].querySelector(".apexcharts-tooltip-text-z-label").innerHTML=h.config.tooltip.z.title,a[t].querySelector(".apexcharts-tooltip-text-z-value").innerHTML=f!==void 0?f:""),r&&y[0]&&(d==null||h.globals.ancillaryCollapsedSeriesIndices.indexOf(t)>-1||h.globals.collapsedSeriesIndices.indexOf(t)>-1?y[0].parentNode.style.display="none":y[0].parentNode.style.display=h.config.tooltip.items.display)}},{key:"toggleActiveInactiveSeries",value:function(e){var t=this.w;if(e)this.tooltipUtil.toggleAllTooltipSeriesGroups("enable");else{this.tooltipUtil.toggleAllTooltipSeriesGroups("disable");var i=t.globals.dom.baseEl.querySelector(".apexcharts-tooltip-series-group");i&&(i.classList.add("apexcharts-active"),i.style.display=t.config.tooltip.items.display)}}},{key:"getValuesToPrint",value:function(e){var t=e.i,i=e.j,a=this.w,s=this.ctx.series.filteredSeriesX(),n="",r="",o=null,h=null,c={series:a.globals.series,seriesIndex:t,dataPointIndex:i,w:a},d=a.globals.ttZFormatter;i===null?h=a.globals.series[t]:a.globals.isXNumeric&&a.config.chart.type!=="treemap"?(n=s[t][i],s[t].length===0&&(n=s[this.tooltipUtil.getFirstActiveXArray(s)][i])):n=a.globals.labels[i]!==void 0?a.globals.labels[i]:"";var g=n;return a.globals.isXNumeric&&a.config.xaxis.type==="datetime"?n=new ve(this.ctx).xLabelFormat(a.globals.ttKeyFormatter,g,g,{i:void 0,dateFormatter:new J(this.ctx).formatDate,w:this.w}):n=a.globals.isBarHorizontal?a.globals.yLabelFormatters[0](g,c):a.globals.xLabelFormatter(g,c),a.config.tooltip.x.formatter!==void 0&&(n=a.globals.ttKeyFormatter(g,c)),a.globals.seriesZ.length>0&&a.globals.seriesZ[t].length>0&&(o=d(a.globals.seriesZ[t][i],a)),r=typeof a.config.xaxis.tooltip.formatter=="function"?a.globals.xaxisTooltipFormatter(g,c):n,{val:Array.isArray(h)?h.join(" "):h,xVal:Array.isArray(n)?n.join(" "):n,xAxisTTVal:Array.isArray(r)?r.join(" "):r,zVal:o}}},{key:"handleCustomTooltip",value:function(e){var t=e.i,i=e.j,a=e.y1,s=e.y2,n=e.w,r=this.ttCtx.getElTooltip(),o=n.config.tooltip.custom;Array.isArray(o)&&o[t]&&(o=o[t]),r.innerHTML=o({ctx:this.ctx,series:n.globals.series,seriesIndex:t,dataPointIndex:i,y1:a,y2:s,w:n})}}]),v}(),Ke=function(){function v(e){O(this,v),this.ttCtx=e,this.ctx=e.ctx,this.w=e.w}return E(v,[{key:"moveXCrosshairs",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,i=this.ttCtx,a=this.w,s=i.getElXCrosshairs(),n=e-i.xcrosshairsWidth/2,r=a.globals.labels.slice().length;if(t!==null&&(n=a.globals.gridWidth/r*t),s===null||a.globals.isBarHorizontal||(s.setAttribute("x",n),s.setAttribute("x1",n),s.setAttribute("x2",n),s.setAttribute("y2",a.globals.gridHeight),s.classList.add("apexcharts-active")),n<0&&(n=0),n>a.globals.gridWidth&&(n=a.globals.gridWidth),i.isXAxisTooltipEnabled){var o=n;a.config.xaxis.crosshairs.width!=="tickWidth"&&a.config.xaxis.crosshairs.width!=="barWidth"||(o=n+i.xcrosshairsWidth/2),this.moveXAxisTooltip(o)}}},{key:"moveYCrosshairs",value:function(e){var t=this.ttCtx;t.ycrosshairs!==null&&Y.setAttrs(t.ycrosshairs,{y1:e,y2:e}),t.ycrosshairsHidden!==null&&Y.setAttrs(t.ycrosshairsHidden,{y1:e,y2:e})}},{key:"moveXAxisTooltip",value:function(e){var t=this.w,i=this.ttCtx;if(i.xaxisTooltip!==null&&i.xcrosshairsWidth!==0){i.xaxisTooltip.classList.add("apexcharts-active");var a=i.xaxisOffY+t.config.xaxis.tooltip.offsetY+t.globals.translateY+1+t.config.xaxis.offsetY;if(e-=i.xaxisTooltip.getBoundingClientRect().width/2,!isNaN(e)){e+=t.globals.translateX;var s;s=new Y(this.ctx).getTextRects(i.xaxisTooltipText.innerHTML),i.xaxisTooltipText.style.minWidth=s.width+"px",i.xaxisTooltip.style.left=e+"px",i.xaxisTooltip.style.top=a+"px"}}}},{key:"moveYAxisTooltip",value:function(e){var t=this.w,i=this.ttCtx;i.yaxisTTEls===null&&(i.yaxisTTEls=t.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxistooltip"));var a=parseInt(i.ycrosshairsHidden.getAttribute("y1"),10),s=t.globals.translateY+a,n=i.yaxisTTEls[e].getBoundingClientRect().height,r=t.globals.translateYAxisX[e]-2;t.config.yaxis[e].opposite&&(r-=26),s-=n/2,t.globals.ignoreYAxisIndexes.indexOf(e)===-1?(i.yaxisTTEls[e].classList.add("apexcharts-active"),i.yaxisTTEls[e].style.top=s+"px",i.yaxisTTEls[e].style.left=r+t.config.yaxis[e].tooltip.offsetX+"px"):i.yaxisTTEls[e].classList.remove("apexcharts-active")}},{key:"moveTooltip",value:function(e,t){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,a=this.w,s=this.ttCtx,n=s.getElTooltip(),r=s.tooltipRect,o=i!==null?parseFloat(i):1,h=parseFloat(e)+o+5,c=parseFloat(t)+o/2;if(h>a.globals.gridWidth/2&&(h=h-r.ttWidth-o-10),h>a.globals.gridWidth-r.ttWidth-10&&(h=a.globals.gridWidth-r.ttWidth),h<-20&&(h=-20),a.config.tooltip.followCursor){var d=s.getElGrid(),g=d.getBoundingClientRect();c=s.e.clientY+a.globals.translateY-g.top-r.ttHeight/2}else a.globals.isBarHorizontal||(r.ttHeight/2+c>a.globals.gridHeight&&(c=a.globals.gridHeight-r.ttHeight+a.globals.translateY),c<0&&(c=0));isNaN(h)||(h+=a.globals.translateX,n.style.left=h+"px",n.style.top=c+"px")}},{key:"moveMarkers",value:function(e,t){var i=this.w,a=this.ttCtx;if(i.globals.markers.size[e]>0)for(var s=i.globals.dom.baseEl.querySelectorAll(" .apexcharts-series[data\\:realIndex='".concat(e,"'] .apexcharts-marker")),n=0;n0&&(c.setAttribute("r",o),c.setAttribute("cx",i),c.setAttribute("cy",a)),this.moveXCrosshairs(i),n.fixedTooltip||this.moveTooltip(i,a,o)}}},{key:"moveDynamicPointsOnHover",value:function(e){var t,i=this.ttCtx,a=i.w,s=0,n=0,r=a.globals.pointsArray;t=new re(this.ctx).getActiveConfigSeriesIndex("asc",["line","area","scatter","bubble"]);var o=i.tooltipUtil.getHoverMarkerSize(t);r[t]&&(s=r[t][e][0],n=r[t][e][1]);var h=i.tooltipUtil.getAllMarkers();if(h!==null)for(var c=0;c0?(h[c]&&h[c].setAttribute("r",o),h[c]&&h[c].setAttribute("cy",g)):h[c]&&h[c].setAttribute("r",0)}}if(this.moveXCrosshairs(s),!i.fixedTooltip){var f=n||a.globals.gridHeight;this.moveTooltip(s,f,o)}}},{key:"moveStickyTooltipOverBars",value:function(e){var t=this.w,i=this.ttCtx,a=t.globals.columnSeries?t.globals.columnSeries.length:t.globals.series.length,s=a>=2&&a%2==0?Math.floor(a/2):Math.floor(a/2)+1;t.globals.isBarHorizontal&&(s=new re(this.ctx).getActiveConfigSeriesIndex("desc")+1);var n=t.globals.dom.baseEl.querySelector(".apexcharts-bar-series .apexcharts-series[rel='".concat(s,"'] path[j='").concat(e,"'], .apexcharts-candlestick-series .apexcharts-series[rel='").concat(s,"'] path[j='").concat(e,"'], .apexcharts-boxPlot-series .apexcharts-series[rel='").concat(s,"'] path[j='").concat(e,"'], .apexcharts-rangebar-series .apexcharts-series[rel='").concat(s,"'] path[j='").concat(e,"']")),r=n?parseFloat(n.getAttribute("cx")):0,o=n?parseFloat(n.getAttribute("cy")):0,h=n?parseFloat(n.getAttribute("barWidth")):0,c=n?parseFloat(n.getAttribute("barHeight")):0,d=i.getElGrid().getBoundingClientRect(),g=n.classList.contains("apexcharts-candlestick-area")||n.classList.contains("apexcharts-boxPlot-area");if(t.globals.isXNumeric?(n&&!g&&(r-=a%2!=0?h/2:0),n&&g&&t.globals.comboCharts&&(r-=h/2)):t.globals.isBarHorizontal||(r=i.xAxisTicksPositions[e-1]+i.dataPointsDividedWidth/2,isNaN(r)&&(r=i.xAxisTicksPositions[e]-i.dataPointsDividedWidth/2)),t.globals.isBarHorizontal?(o>t.globals.gridHeight/2&&(o-=i.tooltipRect.ttHeight),(o=o+t.config.grid.padding.top+c/3)+c>t.globals.gridHeight&&(o=t.globals.gridHeight-c)):t.config.tooltip.followCursor?o=i.e.clientY-d.top-i.tooltipRect.ttHeight/2:o+i.tooltipRect.ttHeight+15>t.globals.gridHeight&&(o=t.globals.gridHeight),o<-10&&(o=-10),t.globals.isBarHorizontal||this.moveXCrosshairs(r),!i.fixedTooltip){var p=o||t.globals.gridHeight;this.moveTooltip(r,p)}}}]),v}(),Ni=function(){function v(e){O(this,v),this.w=e.w,this.ttCtx=e,this.ctx=e.ctx,this.tooltipPosition=new Ke(e)}return E(v,[{key:"drawDynamicPoints",value:function(){var e=this.w,t=new Y(this.ctx),i=new ke(this.ctx),a=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series");a=j(a),e.config.chart.stacked&&a.sort(function(d,g){return parseFloat(d.getAttribute("data:realIndex"))-parseFloat(g.getAttribute("data:realIndex"))});for(var s=0;s2&&arguments[2]!==void 0?arguments[2]:null,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,s=this.w;s.config.chart.type!=="bubble"&&this.newPointSize(e,t);var n=t.getAttribute("cx"),r=t.getAttribute("cy");if(i!==null&&a!==null&&(n=i,r=a),this.tooltipPosition.moveXCrosshairs(n),!this.fixedTooltip){if(s.config.chart.type==="radar"){var o=this.ttCtx.getElGrid(),h=o.getBoundingClientRect();n=this.ttCtx.e.clientX-h.left}this.tooltipPosition.moveTooltip(n,r,s.config.markers.hover.size)}}},{key:"enlargePoints",value:function(e){for(var t=this.w,i=this,a=this.ttCtx,s=e,n=t.globals.dom.baseEl.querySelectorAll(".apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker"),r=t.config.markers.hover.size,o=0;o=0?e[t].setAttribute("r",i):e[t].setAttribute("r",0)}}}]),v}(),Wi=function(){function v(e){O(this,v),this.w=e.w,this.ttCtx=e}return E(v,[{key:"getAttr",value:function(e,t){return parseFloat(e.target.getAttribute(t))}},{key:"handleHeatTreeTooltip",value:function(e){var t=e.e,i=e.opt,a=e.x,s=e.y,n=e.type,r=this.ttCtx,o=this.w;if(t.target.classList.contains("apexcharts-".concat(n,"-rect"))){var h=this.getAttr(t,"i"),c=this.getAttr(t,"j"),d=this.getAttr(t,"cx"),g=this.getAttr(t,"cy"),p=this.getAttr(t,"width"),x=this.getAttr(t,"height");if(r.tooltipLabels.drawSeriesTexts({ttItems:i.ttItems,i:h,j:c,shared:!1,e:t}),o.globals.capturedSeriesIndex=h,o.globals.capturedDataPointIndex=c,a=d+r.tooltipRect.ttWidth/2+p,s=g+r.tooltipRect.ttHeight/2-x/2,r.tooltipPosition.moveXCrosshairs(d+p/2),a>o.globals.gridWidth/2&&(a=d-r.tooltipRect.ttWidth/2+p),r.w.config.tooltip.followCursor){var f=o.globals.dom.elWrap.getBoundingClientRect();a=o.globals.clientX-f.left-(a>o.globals.gridWidth/2?r.tooltipRect.ttWidth:0),s=o.globals.clientY-f.top-(s>o.globals.gridHeight/2?r.tooltipRect.ttHeight:0)}}return{x:a,y:s}}},{key:"handleMarkerTooltip",value:function(e){var t,i,a=e.e,s=e.opt,n=e.x,r=e.y,o=this.w,h=this.ttCtx;if(a.target.classList.contains("apexcharts-marker")){var c=parseInt(s.paths.getAttribute("cx"),10),d=parseInt(s.paths.getAttribute("cy"),10),g=parseFloat(s.paths.getAttribute("val"));if(i=parseInt(s.paths.getAttribute("rel"),10),t=parseInt(s.paths.parentNode.parentNode.parentNode.getAttribute("rel"),10)-1,h.intersect){var p=L.findAncestor(s.paths,"apexcharts-series");p&&(t=parseInt(p.getAttribute("data:realIndex"),10))}if(h.tooltipLabels.drawSeriesTexts({ttItems:s.ttItems,i:t,j:i,shared:!h.showOnIntersect&&o.config.tooltip.shared,e:a}),a.type==="mouseup"&&h.markerClick(a,t,i),o.globals.capturedSeriesIndex=t,o.globals.capturedDataPointIndex=i,n=c,r=d+o.globals.translateY-1.4*h.tooltipRect.ttHeight,h.w.config.tooltip.followCursor){var x=h.getElGrid().getBoundingClientRect();r=h.e.clientY+o.globals.translateY-x.top}g<0&&(r=d),h.marker.enlargeCurrentPoint(i,s.paths,n,r)}return{x:n,y:r}}},{key:"handleBarTooltip",value:function(e){var t,i,a=e.e,s=e.opt,n=this.w,r=this.ttCtx,o=r.getElTooltip(),h=0,c=0,d=0,g=this.getBarTooltipXY({e:a,opt:s});t=g.i;var p=g.barHeight,x=g.j;n.globals.capturedSeriesIndex=t,n.globals.capturedDataPointIndex=x,n.globals.isBarHorizontal&&r.tooltipUtil.hasBars()||!n.config.tooltip.shared?(c=g.x,d=g.y,i=Array.isArray(n.config.stroke.width)?n.config.stroke.width[t]:n.config.stroke.width,h=c):n.globals.comboCharts||n.config.tooltip.shared||(h/=2),isNaN(d)?d=n.globals.svgHeight-r.tooltipRect.ttHeight:d<0&&(d=0);var f=parseInt(s.paths.parentNode.getAttribute("data:realIndex"),10),y=n.globals.isMultipleYAxis?n.config.yaxis[f]&&n.config.yaxis[f].reversed:n.config.yaxis[0].reversed;if(c+r.tooltipRect.ttWidth>n.globals.gridWidth&&!y?c-=r.tooltipRect.ttWidth:c<0&&(c=0),r.w.config.tooltip.followCursor){var w=r.getElGrid().getBoundingClientRect();d=r.e.clientY-w.top}r.tooltip===null&&(r.tooltip=n.globals.dom.baseEl.querySelector(".apexcharts-tooltip")),n.config.tooltip.shared||(n.globals.comboBarCount>0?r.tooltipPosition.moveXCrosshairs(h+i/2):r.tooltipPosition.moveXCrosshairs(h)),!r.fixedTooltip&&(!n.config.tooltip.shared||n.globals.isBarHorizontal&&r.tooltipUtil.hasBars())&&(y&&(c-=r.tooltipRect.ttWidth)<0&&(c=0),!y||n.globals.isBarHorizontal&&r.tooltipUtil.hasBars()||(d=d+p-2*(n.globals.series[t][x]<0?p:0)),r.tooltipRect.ttHeight+d>n.globals.gridHeight?d=n.globals.gridHeight-r.tooltipRect.ttHeight+n.globals.translateY:(d=d+n.globals.translateY-r.tooltipRect.ttHeight/2)<0&&(d=0),o.style.left=c+n.globals.translateX+"px",o.style.top=d+"px")}},{key:"getBarTooltipXY",value:function(e){var t=e.e,i=e.opt,a=this.w,s=null,n=this.ttCtx,r=0,o=0,h=0,c=0,d=0,g=t.target.classList;if(g.contains("apexcharts-bar-area")||g.contains("apexcharts-candlestick-area")||g.contains("apexcharts-boxPlot-area")||g.contains("apexcharts-rangebar-area")){var p=t.target,x=p.getBoundingClientRect(),f=i.elGrid.getBoundingClientRect(),y=x.height;d=x.height;var w=x.width,S=parseInt(p.getAttribute("cx"),10),k=parseInt(p.getAttribute("cy"),10);c=parseFloat(p.getAttribute("barWidth"));var l=t.type==="touchmove"?t.touches[0].clientX:t.clientX;s=parseInt(p.getAttribute("j"),10),r=parseInt(p.parentNode.getAttribute("rel"),10)-1;var u=p.getAttribute("data-range-y1"),m=p.getAttribute("data-range-y2");a.globals.comboCharts&&(r=parseInt(p.parentNode.getAttribute("data:realIndex"),10)),n.tooltipLabels.drawSeriesTexts({ttItems:i.ttItems,i:r,j:s,y1:u?parseInt(u,10):null,y2:m?parseInt(m,10):null,shared:!n.showOnIntersect&&a.config.tooltip.shared,e:t}),a.config.tooltip.followCursor?a.globals.isBarHorizontal?(o=l-f.left+15,h=k-n.dataPointsDividedHeight+y/2-n.tooltipRect.ttHeight/2):(o=a.globals.isXNumeric?S-w/2:S-n.dataPointsDividedWidth+w/2,h=t.clientY-f.top-n.tooltipRect.ttHeight/2-15):a.globals.isBarHorizontal?((o=S)0&&i.setAttribute("width",t.xcrosshairsWidth)}},{key:"handleYCrosshair",value:function(){var e=this.w,t=this.ttCtx;t.ycrosshairs=e.globals.dom.baseEl.querySelector(".apexcharts-ycrosshairs"),t.ycrosshairsHidden=e.globals.dom.baseEl.querySelector(".apexcharts-ycrosshairs-hidden")}},{key:"drawYaxisTooltipText",value:function(e,t,i){var a=this.ttCtx,s=this.w,n=s.globals.yLabelFormatters[e];if(a.yaxisTooltips[e]){var r=a.getElGrid().getBoundingClientRect(),o=(t-r.top)*i.yRatio[e],h=s.globals.maxYArr[e]-s.globals.minYArr[e],c=s.globals.minYArr[e]+(h-o);a.tooltipPosition.moveYCrosshairs(t-r.top),a.yaxisTooltipText[e].innerHTML=n(c),a.tooltipPosition.moveYAxisTooltip(e)}}}]),v}(),et=function(){function v(e){O(this,v),this.ctx=e,this.w=e.w;var t=this.w;this.tConfig=t.config.tooltip,this.tooltipUtil=new Qe(this),this.tooltipLabels=new Oi(this),this.tooltipPosition=new Ke(this),this.marker=new Ni(this),this.intersect=new Wi(this),this.axesTooltip=new Bi(this),this.showOnIntersect=this.tConfig.intersect,this.showTooltipTitle=this.tConfig.x.show,this.fixedTooltip=this.tConfig.fixed.enabled,this.xaxisTooltip=null,this.yaxisTTEls=null,this.isBarShared=!t.globals.isBarHorizontal&&this.tConfig.shared,this.lastHoverTime=Date.now()}return E(v,[{key:"getElTooltip",value:function(e){return e||(e=this),e.w.globals.dom.baseEl?e.w.globals.dom.baseEl.querySelector(".apexcharts-tooltip"):null}},{key:"getElXCrosshairs",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-xcrosshairs")}},{key:"getElGrid",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-grid")}},{key:"drawTooltip",value:function(e){var t=this.w;this.xyRatios=e,this.isXAxisTooltipEnabled=t.config.xaxis.tooltip.enabled&&t.globals.axisCharts,this.yaxisTooltips=t.config.yaxis.map(function(n,r){return!!(n.show&&n.tooltip.enabled&&t.globals.axisCharts)}),this.allTooltipSeriesGroups=[],t.globals.axisCharts||(this.showTooltipTitle=!1);var i=document.createElement("div");if(i.classList.add("apexcharts-tooltip"),t.config.tooltip.cssClass&&i.classList.add(t.config.tooltip.cssClass),i.classList.add("apexcharts-theme-".concat(this.tConfig.theme)),t.globals.dom.elWrap.appendChild(i),t.globals.axisCharts){this.axesTooltip.drawXaxisTooltip(),this.axesTooltip.drawYaxisTooltip(),this.axesTooltip.setXCrosshairWidth(),this.axesTooltip.handleYCrosshair();var a=new Ae(this.ctx);this.xAxisTicksPositions=a.getXAxisTicksPositions()}if(!t.globals.comboCharts&&!this.tConfig.intersect&&t.config.chart.type!=="rangeBar"||this.tConfig.shared||(this.showOnIntersect=!0),t.config.markers.size!==0&&t.globals.markers.largestSize!==0||this.marker.drawDynamicPoints(this),t.globals.collapsedSeries.length!==t.globals.series.length){this.dataPointsDividedHeight=t.globals.gridHeight/t.globals.dataPoints,this.dataPointsDividedWidth=t.globals.gridWidth/t.globals.dataPoints,this.showTooltipTitle&&(this.tooltipTitle=document.createElement("div"),this.tooltipTitle.classList.add("apexcharts-tooltip-title"),this.tooltipTitle.style.fontFamily=this.tConfig.style.fontFamily||t.config.chart.fontFamily,this.tooltipTitle.style.fontSize=this.tConfig.style.fontSize,i.appendChild(this.tooltipTitle));var s=t.globals.series.length;(t.globals.xyCharts||t.globals.comboCharts)&&this.tConfig.shared&&(s=this.showOnIntersect?1:t.globals.series.length),this.legendLabels=t.globals.dom.baseEl.querySelectorAll(".apexcharts-legend-text"),this.ttItems=this.createTTElements(s),this.addSVGEvents()}}},{key:"createTTElements",value:function(e){for(var t=this,i=this.w,a=[],s=this.getElTooltip(),n=function(o){var h=document.createElement("div");h.classList.add("apexcharts-tooltip-series-group"),h.style.order=i.config.tooltip.inverseOrder?e-o:o+1,t.tConfig.shared&&t.tConfig.enabledOnSeries&&Array.isArray(t.tConfig.enabledOnSeries)&&t.tConfig.enabledOnSeries.indexOf(o)<0&&h.classList.add("apexcharts-tooltip-series-group-hidden");var c=document.createElement("span");c.classList.add("apexcharts-tooltip-marker"),c.style.backgroundColor=i.globals.colors[o],h.appendChild(c);var d=document.createElement("div");d.classList.add("apexcharts-tooltip-text"),d.style.fontFamily=t.tConfig.style.fontFamily||i.config.chart.fontFamily,d.style.fontSize=t.tConfig.style.fontSize,["y","goals","z"].forEach(function(g){var p=document.createElement("div");p.classList.add("apexcharts-tooltip-".concat(g,"-group"));var x=document.createElement("span");x.classList.add("apexcharts-tooltip-text-".concat(g,"-label")),p.appendChild(x);var f=document.createElement("span");f.classList.add("apexcharts-tooltip-text-".concat(g,"-value")),p.appendChild(f),d.appendChild(p)}),h.appendChild(d),s.appendChild(h),a.push(h)},r=0;r0&&this.addPathsEventListeners(x,d),this.tooltipUtil.hasBars()&&!this.tConfig.shared&&this.addDatapointEventsListeners(d)}}},{key:"drawFixedTooltipRect",value:function(){var e=this.w,t=this.getElTooltip(),i=t.getBoundingClientRect(),a=i.width+10,s=i.height+10,n=this.tConfig.fixed.offsetX,r=this.tConfig.fixed.offsetY,o=this.tConfig.fixed.position.toLowerCase();return o.indexOf("right")>-1&&(n=n+e.globals.svgWidth-a+10),o.indexOf("bottom")>-1&&(r=r+e.globals.svgHeight-s-10),t.style.left=n+"px",t.style.top=r+"px",{x:n,y:r,ttWidth:a,ttHeight:s}}},{key:"addDatapointEventsListeners",value:function(e){var t=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers .apexcharts-marker, .apexcharts-bar-area, .apexcharts-candlestick-area, .apexcharts-boxPlot-area, .apexcharts-rangebar-area");this.addPathsEventListeners(t,e)}},{key:"addPathsEventListeners",value:function(e,t){for(var i=this,a=function(n){var r={paths:e[n],tooltipEl:t.tooltipEl,tooltipY:t.tooltipY,tooltipX:t.tooltipX,elGrid:t.elGrid,hoverArea:t.hoverArea,ttItems:t.ttItems};["mousemove","mouseup","touchmove","mouseout","touchend"].map(function(o){return e[n].addEventListener(o,i.onSeriesHover.bind(i,r),{capture:!1,passive:!0})})},s=0;s=100?this.seriesHover(e,t):(clearTimeout(this.seriesHoverTimeout),this.seriesHoverTimeout=setTimeout(function(){i.seriesHover(e,t)},100-a))}},{key:"seriesHover",value:function(e,t){var i=this;this.lastHoverTime=Date.now();var a=[],s=this.w;s.config.chart.group&&(a=this.ctx.getGroupedCharts()),s.globals.axisCharts&&(s.globals.minX===-1/0&&s.globals.maxX===1/0||s.globals.dataPoints===0)||(a.length?a.forEach(function(n){var r=i.getElTooltip(n),o={paths:e.paths,tooltipEl:r,tooltipY:e.tooltipY,tooltipX:e.tooltipX,elGrid:e.elGrid,hoverArea:e.hoverArea,ttItems:n.w.globals.tooltip.ttItems};n.w.globals.minX===i.w.globals.minX&&n.w.globals.maxX===i.w.globals.maxX&&n.w.globals.tooltip.seriesHoverByContext({chartCtx:n,ttCtx:n.w.globals.tooltip,opt:o,e:t})}):this.seriesHoverByContext({chartCtx:this.ctx,ttCtx:this.w.globals.tooltip,opt:e,e:t}))}},{key:"seriesHoverByContext",value:function(e){var t=e.chartCtx,i=e.ttCtx,a=e.opt,s=e.e,n=t.w,r=this.getElTooltip();r&&(i.tooltipRect={x:0,y:0,ttWidth:r.getBoundingClientRect().width,ttHeight:r.getBoundingClientRect().height},i.e=s,i.tooltipUtil.hasBars()&&!n.globals.comboCharts&&!i.isBarShared&&this.tConfig.onDatasetHover.highlightDataSeries&&new re(t).toggleSeriesOnHover(s,s.target.parentNode),i.fixedTooltip&&i.drawFixedTooltipRect(),n.globals.axisCharts?i.axisChartsTooltips({e:s,opt:a,tooltipRect:i.tooltipRect}):i.nonAxisChartsTooltips({e:s,opt:a,tooltipRect:i.tooltipRect}))}},{key:"axisChartsTooltips",value:function(e){var t,i,a=e.e,s=e.opt,n=this.w,r=s.elGrid.getBoundingClientRect(),o=a.type==="touchmove"?a.touches[0].clientX:a.clientX,h=a.type==="touchmove"?a.touches[0].clientY:a.clientY;if(this.clientY=h,this.clientX=o,n.globals.capturedSeriesIndex=-1,n.globals.capturedDataPointIndex=-1,hr.top+r.height)this.handleMouseOut(s);else{if(Array.isArray(this.tConfig.enabledOnSeries)&&!n.config.tooltip.shared){var c=parseInt(s.paths.getAttribute("index"),10);if(this.tConfig.enabledOnSeries.indexOf(c)<0)return void this.handleMouseOut(s)}var d=this.getElTooltip(),g=this.getElXCrosshairs(),p=n.globals.xyCharts||n.config.chart.type==="bar"&&!n.globals.isBarHorizontal&&this.tooltipUtil.hasBars()&&this.tConfig.shared||n.globals.comboCharts&&this.tooltipUtil.hasBars();if(a.type==="mousemove"||a.type==="touchmove"||a.type==="mouseup"){if(n.globals.collapsedSeries.length+n.globals.ancillaryCollapsedSeries.length===n.globals.series.length)return;g!==null&&g.classList.add("apexcharts-active");var x=this.yaxisTooltips.filter(function(w){return w===!0});if(this.ycrosshairs!==null&&x.length&&this.ycrosshairs.classList.add("apexcharts-active"),p&&!this.showOnIntersect)this.handleStickyTooltip(a,o,h,s);else if(n.config.chart.type==="heatmap"||n.config.chart.type==="treemap"){var f=this.intersect.handleHeatTreeTooltip({e:a,opt:s,x:t,y:i,type:n.config.chart.type});t=f.x,i=f.y,d.style.left=t+"px",d.style.top=i+"px"}else this.tooltipUtil.hasBars()&&this.intersect.handleBarTooltip({e:a,opt:s}),this.tooltipUtil.hasMarkers()&&this.intersect.handleMarkerTooltip({e:a,opt:s,x:t,y:i});if(this.yaxisTooltips.length)for(var y=0;yh.width?this.handleMouseOut(a):o!==null?this.handleStickyCapturedSeries(e,o,a,r):(this.tooltipUtil.isXoverlap(r)||s.globals.isBarHorizontal)&&this.create(e,this,0,r,a.ttItems)}},{key:"handleStickyCapturedSeries",value:function(e,t,i,a){var s=this.w;if(!this.tConfig.shared&&s.globals.series[t][a]===null)return void this.handleMouseOut(i);s.globals.series[t][a]!==void 0?this.tConfig.shared&&this.tooltipUtil.isXoverlap(a)&&this.tooltipUtil.isInitialSeriesSameLen()?this.create(e,this,t,a,i.ttItems):this.create(e,this,t,a,i.ttItems,!1):this.tooltipUtil.isXoverlap(a)&&this.create(e,this,0,a,i.ttItems)}},{key:"deactivateHoverFilter",value:function(){for(var e=this.w,t=new Y(this.ctx),i=e.globals.dom.Paper.select(".apexcharts-bar-area"),a=0;a5&&arguments[5]!==void 0?arguments[5]:null,b=this.w,A=t;e.type==="mouseup"&&this.markerClick(e,i,a),m===null&&(m=this.tConfig.shared);var P=this.tooltipUtil.hasMarkers(),C=this.tooltipUtil.getElBars();if(b.config.legend.tooltipHoverFormatter){var I=b.config.legend.tooltipHoverFormatter,T=Array.from(this.legendLabels);T.forEach(function(Ie){var Se=Ie.getAttribute("data:default-text");Ie.innerHTML=decodeURIComponent(Se)});for(var D=0;D0?A.marker.enlargePoints(a):A.tooltipPosition.moveDynamicPointsOnHover(a)),this.tooltipUtil.hasBars()&&(this.barSeriesHeight=this.tooltipUtil.getBarsHeight(C),this.barSeriesHeight>0)){var $=new Y(this.ctx),q=b.globals.dom.Paper.select(".apexcharts-bar-area[j='".concat(a,"']"));this.deactivateHoverFilter(),this.tooltipPosition.moveStickyTooltipOverBars(a);for(var te=0;tes.globals.gridHeight&&(x=s.globals.gridHeight-S)),{bcx:c,bcy:h,dataLabelsX:t,dataLabelsY:x,totalDataLabelsX:a,totalDataLabelsY:i,totalDataLabelsAnchor:"middle"}}},{key:"calculateBarsDataLabelsPosition",value:function(e){var t=this.w,i=e.x,a=e.i,s=e.j,n=e.realIndex,r=e.bcy,o=e.barHeight,h=e.barWidth,c=e.textRects,d=e.dataLabelsX,g=e.strokeWidth,p=e.dataLabelsConfig,x=e.barDataLabelsConfig,f=e.barTotalDataLabelsConfig,y=e.offX,w=e.offY,S=t.globals.gridHeight/t.globals.dataPoints;h=Math.abs(h);var k,l,u=r-(this.barCtx.isRangeBar?0:S)+o/2+c.height/2+w-3,m="start",b=this.barCtx.series[a][s]<0,A=i;switch(this.barCtx.isReversed&&(A=i+h-(b?2*h:0),i=t.globals.gridWidth-h),x.position){case"center":d=b?A+h/2-y:Math.max(c.width/2,A-h/2)+y;break;case"bottom":d=b?A+h-g-Math.round(c.width/2)-y:A-h+g+Math.round(c.width/2)+y;break;case"top":d=b?A-g+Math.round(c.width/2)-y:A-g-Math.round(c.width/2)+y}if(this.barCtx.lastActiveBarSerieIndex===n&&f.enabled){var P=new Y(this.barCtx.ctx).getTextRects(this.getStackedTotalDataLabel({realIndex:n,j:s}),p.fontSize);b?(k=A-g+Math.round(P.width/2)-y-f.offsetX-15,m="end"):k=A-g-Math.round(P.width/2)+y+f.offsetX+15,l=u+f.offsetY}return t.config.chart.stacked||(d<0?d=d+c.width+g:d+c.width/2>t.globals.gridWidth&&(d=t.globals.gridWidth-c.width-g)),{bcx:i,bcy:r,dataLabelsX:d,dataLabelsY:u,totalDataLabelsX:k,totalDataLabelsY:l,totalDataLabelsAnchor:m}}},{key:"drawCalculatedDataLabels",value:function(e){var t=e.x,i=e.y,a=e.val,s=e.i,n=e.j,r=e.textRects,o=e.barHeight,h=e.barWidth,c=e.dataLabelsConfig,d=this.w,g="rotate(0)";d.config.plotOptions.bar.dataLabels.orientation==="vertical"&&(g="rotate(-90, ".concat(t,", ").concat(i,")"));var p=new fe(this.barCtx.ctx),x=new Y(this.barCtx.ctx),f=c.formatter,y=null,w=d.globals.collapsedSeriesIndices.indexOf(s)>-1;if(c.enabled&&!w){y=x.group({class:"apexcharts-data-labels",transform:g});var S="";a!==void 0&&(S=f(a,z(z({},d),{},{seriesIndex:s,dataPointIndex:n,w:d})));var k=d.globals.series[s][n]<0,l=d.config.plotOptions.bar.dataLabels.position;d.config.plotOptions.bar.dataLabels.orientation==="vertical"&&(l==="top"&&(c.textAnchor=k?"end":"start"),l==="center"&&(c.textAnchor="middle"),l==="bottom"&&(c.textAnchor=k?"end":"start")),this.barCtx.isRangeBar&&this.barCtx.barOptions.dataLabels.hideOverflowingLabels&&hMath.abs(h)&&(S=""):r.height/1.6>Math.abs(o)&&(S=""));var u=z({},c);this.barCtx.isHorizontal&&a<0&&(c.textAnchor==="start"?u.textAnchor="end":c.textAnchor==="end"&&(u.textAnchor="start")),p.plotDataLabelsText({x:t,y:i,text:S,i:s,j:n,parent:y,dataLabelsConfig:u,alwaysDrawDataLabel:!0,offsetCorrection:!0})}return y}},{key:"drawTotalDataLabels",value:function(e){var t,i=e.x,a=e.y,s=e.val,n=e.realIndex,r=e.textAnchor,o=e.barTotalDataLabelsConfig,h=new Y(this.barCtx.ctx);return o.enabled&&i!==void 0&&a!==void 0&&this.barCtx.lastActiveBarSerieIndex===n&&(t=h.drawText({x:i,y:a,foreColor:o.style.color,text:s,textAnchor:r,fontFamily:o.style.fontFamily,fontSize:o.style.fontSize,fontWeight:o.style.fontWeight})),t}}]),v}(),_i=function(){function v(e){O(this,v),this.w=e.w,this.barCtx=e}return E(v,[{key:"initVariables",value:function(e){var t=this.w;this.barCtx.series=e,this.barCtx.totalItems=0,this.barCtx.seriesLen=0,this.barCtx.visibleI=-1,this.barCtx.visibleItems=1;for(var i=0;i0&&(this.barCtx.seriesLen=this.barCtx.seriesLen+1,this.barCtx.totalItems+=e[i].length),t.globals.isXNumeric)for(var a=0;at.globals.minX&&t.globals.seriesX[i][a]0&&(a=h.globals.minXDiff/g),(n=a/this.barCtx.seriesLen*parseInt(this.barCtx.barOptions.columnWidth,10)/100)<1&&(n=1)}r=h.globals.gridHeight-this.barCtx.baseLineY[this.barCtx.yaxisIndex]-(this.barCtx.isReversed?h.globals.gridHeight:0)+(this.barCtx.isReversed?2*this.barCtx.baseLineY[this.barCtx.yaxisIndex]:0),e=h.globals.padHorizontal+(a-n*this.barCtx.seriesLen)/2}return{x:e,y:t,yDivision:i,xDivision:a,barHeight:s,barWidth:n,zeroH:r,zeroW:o}}},{key:"getPathFillColor",value:function(e,t,i,a){var s,n,r,o,h=this.w,c=new ne(this.barCtx.ctx),d=null,g=this.barCtx.barOptions.distributed?i:t;return this.barCtx.barOptions.colors.ranges.length>0&&this.barCtx.barOptions.colors.ranges.map(function(p){e[t][i]>=p.from&&e[t][i]<=p.to&&(d=p.color)}),h.config.series[t].data[i]&&h.config.series[t].data[i].fillColor&&(d=h.config.series[t].data[i].fillColor),c.fillPath({seriesNumber:this.barCtx.barOptions.distributed?g:a,dataPointIndex:i,color:d,value:e[t][i],fillConfig:(s=h.config.series[t].data[i])===null||s===void 0?void 0:s.fill,fillType:(n=h.config.series[t].data[i])!==null&&n!==void 0&&(r=n.fill)!==null&&r!==void 0&&r.type?(o=h.config.series[t].data[i])===null||o===void 0?void 0:o.fill.type:h.config.fill.type})}},{key:"getStrokeWidth",value:function(e,t,i){var a=0,s=this.w;return this.barCtx.series[e][t]===void 0||this.barCtx.series[e][t]===null?this.barCtx.isNullValue=!0:this.barCtx.isNullValue=!1,s.config.stroke.show&&(this.barCtx.isNullValue||(a=Array.isArray(this.barCtx.strokeWidth)?this.barCtx.strokeWidth[i]:this.barCtx.strokeWidth)),a}},{key:"shouldApplyRadius",value:function(e){var t=this.w,i=!1;return t.config.plotOptions.bar.borderRadius>0&&(t.config.chart.stacked&&t.config.plotOptions.bar.borderRadiusWhenStacked==="last"?this.barCtx.lastActiveBarSerieIndex===e&&(i=!0):i=!0),i}},{key:"barBackground",value:function(e){var t=e.j,i=e.i,a=e.x1,s=e.x2,n=e.y1,r=e.y2,o=e.elSeries,h=this.w,c=new Y(this.barCtx.ctx),d=new re(this.barCtx.ctx).getActiveConfigSeriesIndex();if(this.barCtx.barOptions.colors.backgroundBarColors.length>0&&d===i){t>=this.barCtx.barOptions.colors.backgroundBarColors.length&&(t%=this.barCtx.barOptions.colors.backgroundBarColors.length);var g=this.barCtx.barOptions.colors.backgroundBarColors[t],p=c.drawRect(a!==void 0?a:0,n!==void 0?n:0,s!==void 0?s:h.globals.gridWidth,r!==void 0?r:h.globals.gridHeight,this.barCtx.barOptions.colors.backgroundBarRadius,g,this.barCtx.barOptions.colors.backgroundBarOpacity);o.add(p),p.node.classList.add("apexcharts-backgroundBar")}}},{key:"getColumnPaths",value:function(e){var t,i=e.barWidth,a=e.barXPosition,s=e.y1,n=e.y2,r=e.strokeWidth,o=e.realIndex,h=e.i,c=e.j,d=e.w,g=new Y(this.barCtx.ctx);(r=Array.isArray(r)?r[o]:r)||(r=0);var p=i,x=a;(t=d.config.series[o].data[c])!==null&&t!==void 0&&t.columnWidthOffset&&(x=a-d.config.series[o].data[c].columnWidthOffset/2,p=i+d.config.series[o].data[c].columnWidthOffset);var f=x,y=x+p;s+=.001,n+=.001;var w=g.move(f,s),S=g.move(f,s),k=g.line(y-r,s);return d.globals.previousPaths.length>0&&(S=this.barCtx.getPreviousPath(o,c,!1)),w=w+g.line(f,n)+g.line(y-r,n)+g.line(y-r,s)+(d.config.plotOptions.bar.borderRadiusApplication==="around"?" Z":" z"),S=S+g.line(f,s)+k+k+k+k+k+g.line(f,s)+(d.config.plotOptions.bar.borderRadiusApplication==="around"?" Z":" z"),this.shouldApplyRadius(o)&&(w=g.roundPathCorners(w,d.config.plotOptions.bar.borderRadius)),d.config.chart.stacked&&(this.barCtx.yArrj.push(n),this.barCtx.yArrjF.push(Math.abs(s-n)),this.barCtx.yArrjVal.push(this.barCtx.series[h][c])),{pathTo:w,pathFrom:S}}},{key:"getBarpaths",value:function(e){var t,i=e.barYPosition,a=e.barHeight,s=e.x1,n=e.x2,r=e.strokeWidth,o=e.realIndex,h=e.i,c=e.j,d=e.w,g=new Y(this.barCtx.ctx);(r=Array.isArray(r)?r[o]:r)||(r=0);var p=i,x=a;(t=d.config.series[o].data[c])!==null&&t!==void 0&&t.barHeightOffset&&(p=i-d.config.series[o].data[c].barHeightOffset/2,x=a+d.config.series[o].data[c].barHeightOffset);var f=p,y=p+x;s+=.001,n+=.001;var w=g.move(s,f),S=g.move(s,f);d.globals.previousPaths.length>0&&(S=this.barCtx.getPreviousPath(o,c,!1));var k=g.line(s,y-r);return w=w+g.line(n,f)+g.line(n,y-r)+k+(d.config.plotOptions.bar.borderRadiusApplication==="around"?" Z":" z"),S=S+g.line(s,f)+k+k+k+k+k+g.line(s,f)+(d.config.plotOptions.bar.borderRadiusApplication==="around"?" Z":" z"),this.shouldApplyRadius(o)&&(w=g.roundPathCorners(w,d.config.plotOptions.bar.borderRadius)),d.config.chart.stacked&&(this.barCtx.xArrj.push(n),this.barCtx.xArrjF.push(Math.abs(s-n)),this.barCtx.xArrjVal.push(this.barCtx.series[h][c])),{pathTo:w,pathFrom:S}}},{key:"checkZeroSeries",value:function(e){for(var t=e.series,i=this.w,a=0;a=0;r--)this.barCtx.zeroSerieses.indexOf(r)>-1&&r===this.radiusOnSeriesNumber&&(this.barCtx.radiusOnSeriesNumber-=1);for(var o=t.length-1;o>=0;o--)i.globals.collapsedSeriesIndices.indexOf(this.barCtx.radiusOnSeriesNumber)>-1&&(this.barCtx.radiusOnSeriesNumber-=1)}},{key:"getXForValue",value:function(e,t){var i=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],a=i?t:null;return e!=null&&(a=t+e/this.barCtx.invertedYRatio-2*(this.barCtx.isReversed?e/this.barCtx.invertedYRatio:0)),a}},{key:"getYForValue",value:function(e,t){var i=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],a=i?t:null;return e!=null&&(a=t-e/this.barCtx.yRatio[this.barCtx.yaxisIndex]+2*(this.barCtx.isReversed?e/this.barCtx.yRatio[this.barCtx.yaxisIndex]:0)),a}},{key:"getGoalValues",value:function(e,t,i,a,s){var n=this,r=this.w,o=[];return r.globals.seriesGoals[a]&&r.globals.seriesGoals[a][s]&&Array.isArray(r.globals.seriesGoals[a][s])&&r.globals.seriesGoals[a][s].forEach(function(h){var c;o.push((H(c={},e,e==="x"?n.getXForValue(h.value,t,!1):n.getYForValue(h.value,i,!1)),H(c,"attrs",h),c))}),o}},{key:"drawGoalLine",value:function(e){var t=e.barXPosition,i=e.barYPosition,a=e.goalX,s=e.goalY,n=e.barWidth,r=e.barHeight,o=new Y(this.barCtx.ctx),h=o.group({className:"apexcharts-bar-goals-groups"}),c=null;return this.barCtx.isHorizontal?Array.isArray(a)&&a.forEach(function(d){var g=d.attrs.strokeHeight!==void 0?d.attrs.strokeHeight:r/2,p=i+g+r/2;c=o.drawLine(d.x,p-2*g,d.x,p,d.attrs.strokeColor?d.attrs.strokeColor:void 0,d.attrs.strokeDashArray,d.attrs.strokeWidth?d.attrs.strokeWidth:2,d.attrs.strokeLineCap),h.add(c)}):Array.isArray(s)&&s.forEach(function(d){var g=d.attrs.strokeWidth!==void 0?d.attrs.strokeWidth:n/2,p=t+g+n/2;c=o.drawLine(p-2*g,d.y,p,d.y,d.attrs.strokeColor?d.attrs.strokeColor:void 0,d.attrs.strokeDashArray,d.attrs.strokeHeight?d.attrs.strokeHeight:2,d.attrs.strokeLineCap),h.add(c)}),h}}]),v}(),me=function(){function v(e,t){O(this,v),this.ctx=e,this.w=e.w;var i=this.w;this.barOptions=i.config.plotOptions.bar,this.isHorizontal=this.barOptions.horizontal,this.strokeWidth=i.config.stroke.width,this.isNullValue=!1,this.isRangeBar=i.globals.seriesRange.length&&this.isHorizontal,this.xyRatios=t,this.xyRatios!==null&&(this.xRatio=t.xRatio,this.initialXRatio=t.initialXRatio,this.yRatio=t.yRatio,this.invertedXRatio=t.invertedXRatio,this.invertedYRatio=t.invertedYRatio,this.baseLineY=t.baseLineY,this.baseLineInvertedY=t.baseLineInvertedY),this.yaxisIndex=0,this.seriesLen=0;var a=new re(this.ctx);this.lastActiveBarSerieIndex=a.getActiveConfigSeriesIndex("desc",["bar","column"]);var s=a.getBarSeriesIndices(),n=new U(this.ctx);this.stackedSeriesTotals=n.getStackedSeriesTotals(this.w.config.series.map(function(r,o){return s.indexOf(o)===-1?o:-1}).filter(function(r){return r!==-1})),this.barHelpers=new _i(this)}return E(v,[{key:"draw",value:function(e,t){var i=this.w,a=new Y(this.ctx),s=new U(this.ctx,i);e=s.getLogSeries(e),this.series=e,this.yRatio=s.getLogYRatios(this.yRatio),this.barHelpers.initVariables(e);var n=a.group({class:"apexcharts-bar-series apexcharts-plot-series"});i.config.dataLabels.enabled&&this.totalItems>this.barOptions.dataLabels.maxItems&&console.warn("WARNING: DataLabels are enabled but there are too many to display. This may cause performance issue when rendering.");for(var r=0,o=0;r0&&(this.visibleI=this.visibleI+1);var k=0,l=0;this.yRatio.length>1&&(this.yaxisIndex=w),this.isReversed=i.config.yaxis[this.yaxisIndex]&&i.config.yaxis[this.yaxisIndex].reversed;var u=this.barHelpers.initialPositions();x=u.y,k=u.barHeight,c=u.yDivision,g=u.zeroW,p=u.x,l=u.barWidth,h=u.xDivision,d=u.zeroH,this.horizontal||y.push(p+l/2);for(var m=a.group({class:"apexcharts-datalabels","data:realIndex":w}),b=a.group({class:"apexcharts-bar-goals-markers",style:"pointer-events: none"}),A=0;A0&&y.push(p+l/2),f.push(x);var D=this.barHelpers.getPathFillColor(e,r,A,w);this.renderSeries({realIndex:w,pathFill:D,j:A,i:r,pathFrom:C.pathFrom,pathTo:C.pathTo,strokeWidth:P,elSeries:S,x:p,y:x,series:e,barHeight:k,barWidth:l,elDataLabelsWrap:m,elGoalsMarkers:b,visibleSeries:this.visibleI,type:"bar"})}i.globals.seriesXvalues[w]=y,i.globals.seriesYvalues[w]=f,n.add(S)}return n}},{key:"renderSeries",value:function(e){var t=e.realIndex,i=e.pathFill,a=e.lineFill,s=e.j,n=e.i,r=e.pathFrom,o=e.pathTo,h=e.strokeWidth,c=e.elSeries,d=e.x,g=e.y,p=e.y1,x=e.y2,f=e.series,y=e.barHeight,w=e.barWidth,S=e.barYPosition,k=e.elDataLabelsWrap,l=e.elGoalsMarkers,u=e.visibleSeries,m=e.type,b=this.w,A=new Y(this.ctx);a||(a=this.barOptions.distributed?b.globals.stroke.colors[s]:b.globals.stroke.colors[t]),b.config.series[n].data[s]&&b.config.series[n].data[s].strokeColor&&(a=b.config.series[n].data[s].strokeColor),this.isNullValue&&(i="none");var P=s/b.config.chart.animations.animateGradually.delay*(b.config.chart.animations.speed/b.globals.dataPoints)/2.4,C=A.renderPaths({i:n,j:s,realIndex:t,pathFrom:r,pathTo:o,stroke:a,strokeWidth:h,strokeLineCap:b.config.stroke.lineCap,fill:i,animationDelay:P,initialSpeed:b.config.chart.animations.speed,dataChangeSpeed:b.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-".concat(m,"-area")});C.attr("clip-path","url(#gridRectMask".concat(b.globals.cuid,")"));var I=b.config.forecastDataPoints;I.count>0&&s>=b.globals.dataPoints-I.count&&(C.node.setAttribute("stroke-dasharray",I.dashArray),C.node.setAttribute("stroke-width",I.strokeWidth),C.node.setAttribute("fill-opacity",I.fillOpacity)),p!==void 0&&x!==void 0&&(C.attr("data-range-y1",p),C.attr("data-range-y2",x)),new Q(this.ctx).setSelectionFilter(C,t,s),c.add(C);var T=new Gi(this).handleBarDataLabels({x:d,y:g,y1:p,y2:x,i:n,j:s,series:f,realIndex:t,barHeight:y,barWidth:w,barYPosition:S,renderedPath:C,visibleSeries:u});return T.dataLabels!==null&&k.add(T.dataLabels),T.totalDataLabels&&k.add(T.totalDataLabels),c.add(k),l&&c.add(l),c}},{key:"drawBarPaths",value:function(e){var t=e.indexes,i=e.barHeight,a=e.strokeWidth,s=e.zeroW,n=e.x,r=e.y,o=e.yDivision,h=e.elSeries,c=this.w,d=t.i,g=t.j;c.globals.isXNumeric&&(r=(c.globals.seriesX[d][g]-c.globals.minX)/this.invertedXRatio-i);var p=r+i*this.visibleI;n=this.barHelpers.getXForValue(this.series[d][g],s);var x=this.barHelpers.getBarpaths({barYPosition:p,barHeight:i,x1:s,x2:n,strokeWidth:a,series:this.series,realIndex:t.realIndex,i:d,j:g,w:c});return c.globals.isXNumeric||(r+=o),this.barHelpers.barBackground({j:g,i:d,y1:p-i*this.visibleI,y2:i*this.seriesLen,elSeries:h}),{pathTo:x.pathTo,pathFrom:x.pathFrom,x:n,y:r,goalX:this.barHelpers.getGoalValues("x",s,null,d,g),barYPosition:p}}},{key:"drawColumnPaths",value:function(e){var t=e.indexes,i=e.x,a=e.y,s=e.xDivision,n=e.barWidth,r=e.zeroH,o=e.strokeWidth,h=e.elSeries,c=this.w,d=t.realIndex,g=t.i,p=t.j,x=t.bc;if(c.globals.isXNumeric){var f=d;c.globals.seriesX[d].length||(f=c.globals.maxValsInArrayIndex),c.globals.seriesX[f][p]&&(i=(c.globals.seriesX[f][p]-c.globals.minX)/this.xRatio-n*this.seriesLen/2)}var y=i+n*this.visibleI;a=this.barHelpers.getYForValue(this.series[g][p],r);var w=this.barHelpers.getColumnPaths({barXPosition:y,barWidth:n,y1:r,y2:a,strokeWidth:o,series:this.series,realIndex:t.realIndex,i:g,j:p,w:c});return c.globals.isXNumeric||(i+=s),this.barHelpers.barBackground({bc:x,j:p,i:g,x1:y-o/2-n*this.visibleI,x2:n*this.seriesLen+o/2,elSeries:h}),{pathTo:w.pathTo,pathFrom:w.pathFrom,x:i,y:a,goalY:this.barHelpers.getGoalValues("y",null,r,g,p),barXPosition:y}}},{key:"getPreviousPath",value:function(e,t){for(var i,a=this.w,s=0;s0&&parseInt(n.realIndex,10)===parseInt(e,10)&&a.globals.previousPaths[s].paths[t]!==void 0&&(i=a.globals.previousPaths[s].paths[t].d)}return i}}]),v}(),tt=function(v){W(t,v);var e=oe(t);function t(){return O(this,t),e.apply(this,arguments)}return E(t,[{key:"draw",value:function(i,a){var s=this,n=this.w;this.graphics=new Y(this.ctx),this.bar=new me(this.ctx,this.xyRatios);var r=new U(this.ctx,n);i=r.getLogSeries(i),this.yRatio=r.getLogYRatios(this.yRatio),this.barHelpers.initVariables(i),n.config.chart.stackType==="100%"&&(i=n.globals.seriesPercent.slice()),this.series=i,this.totalItems=0,this.prevY=[],this.prevX=[],this.prevYF=[],this.prevXF=[],this.prevYVal=[],this.prevXVal=[],this.xArrj=[],this.xArrjF=[],this.xArrjVal=[],this.yArrj=[],this.yArrjF=[],this.yArrjVal=[];for(var o=0;o0&&(this.totalItems+=i[o].length);for(var h=this.graphics.group({class:"apexcharts-bar-series apexcharts-plot-series"}),c=0,d=0,g=function(f,y){var w=void 0,S=void 0,k=void 0,l=void 0,u=[],m=[],b=n.globals.comboCharts?a[f]:f;s.yRatio.length>1&&(s.yaxisIndex=b),s.isReversed=n.config.yaxis[s.yaxisIndex]&&n.config.yaxis[s.yaxisIndex].reversed;var A=s.graphics.group({class:"apexcharts-series",seriesName:L.escapeString(n.globals.seriesNames[b]),rel:f+1,"data:realIndex":b});s.ctx.series.addCollapsedClassToSeries(A,b);var P=s.graphics.group({class:"apexcharts-datalabels","data:realIndex":b}),C=s.graphics.group({class:"apexcharts-bar-goals-markers",style:"pointer-events: none"}),I=0,T=0,D=s.initialPositions(c,d,w,S,k,l);d=D.y,I=D.barHeight,S=D.yDivision,l=D.zeroW,c=D.x,T=D.barWidth,w=D.xDivision,k=D.zeroH,s.yArrj=[],s.yArrjF=[],s.yArrjVal=[],s.xArrj=[],s.xArrjF=[],s.xArrjVal=[],s.prevY.length===1&&s.prevY[0].every(function(q){return isNaN(q)})&&(s.prevY[0]=s.prevY[0].map(function(q){return k}),s.prevYF[0]=s.prevYF[0].map(function(q){return 0}));for(var R=0;R1?(s=d.globals.minXDiff/this.xRatio)*parseInt(this.barOptions.columnWidth,10)/100:c*parseInt(d.config.plotOptions.bar.columnWidth,10)/100,r=d.globals.gridHeight-this.baseLineY[this.yaxisIndex]-(this.isReversed?d.globals.gridHeight:0)+(this.isReversed?2*this.baseLineY[this.yaxisIndex]:0),i=d.globals.padHorizontal+(s-c)/2),{x:i,y:a,yDivision:n,xDivision:s,barHeight:h,barWidth:c,zeroH:r,zeroW:o}}},{key:"drawStackedBarPaths",value:function(i){for(var a,s=i.indexes,n=i.barHeight,r=i.strokeWidth,o=i.zeroW,h=i.x,c=i.y,d=i.yDivision,g=i.elSeries,p=this.w,x=c,f=s.i,y=s.j,w=0,S=0;S0){var k=o;this.prevXVal[f-1][y]<0?k=this.series[f][y]>=0?this.prevX[f-1][y]+w-2*(this.isReversed?w:0):this.prevX[f-1][y]:this.prevXVal[f-1][y]>=0&&(k=this.series[f][y]>=0?this.prevX[f-1][y]:this.prevX[f-1][y]-w+2*(this.isReversed?w:0)),a=k}else a=o;h=this.series[f][y]===null?a:a+this.series[f][y]/this.invertedYRatio-2*(this.isReversed?this.series[f][y]/this.invertedYRatio:0);var l=this.barHelpers.getBarpaths({barYPosition:x,barHeight:n,x1:a,x2:h,strokeWidth:r,series:this.series,realIndex:s.realIndex,i:f,j:y,w:p});return this.barHelpers.barBackground({j:y,i:f,y1:x,y2:n,elSeries:g}),c+=d,{pathTo:l.pathTo,pathFrom:l.pathFrom,goalX:this.barHelpers.getGoalValues("x",o,null,f,y),barYPosition:x,x:h,y:c}}},{key:"drawStackedColumnPaths",value:function(i){var a=i.indexes,s=i.x,n=i.y,r=i.xDivision,o=i.barWidth,h=i.zeroH;i.strokeWidth;var c=i.elSeries,d=this.w,g=a.i,p=a.j,x=a.bc;if(d.globals.isXNumeric){var f=d.globals.seriesX[g][p];f||(f=0),s=(f-d.globals.minX)/this.xRatio-o/2}for(var y,w=s,S=0,k=0;k0&&!d.globals.isXNumeric||g>0&&d.globals.isXNumeric&&d.globals.seriesX[g-1][p]===d.globals.seriesX[g][p]){var l,u,m=Math.min(this.yRatio.length+1,g+1);if(this.prevY[g-1]!==void 0){for(var b=1;b=0?u-S+2*(this.isReversed?S:0):u;break}if(this.prevYVal[g-A][p]>=0){l=this.series[g][p]>=0?u:u+S-2*(this.isReversed?S:0);break}}l===void 0&&(l=d.globals.gridHeight),y=this.prevYF[0].every(function(C){return C===0})&&this.prevYF.slice(1,g).every(function(C){return C.every(function(I){return isNaN(I)})})?h:l}else y=h;n=this.series[g][p]?y-this.series[g][p]/this.yRatio[this.yaxisIndex]+2*(this.isReversed?this.series[g][p]/this.yRatio[this.yaxisIndex]:0):y;var P=this.barHelpers.getColumnPaths({barXPosition:w,barWidth:o,y1:y,y2:n,yRatio:this.yRatio[this.yaxisIndex],strokeWidth:this.strokeWidth,series:this.series,realIndex:a.realIndex,i:g,j:p,w:d});return this.barHelpers.barBackground({bc:x,j:p,i:g,x1:w,x2:o,elSeries:c}),s+=r,{pathTo:P.pathTo,pathFrom:P.pathFrom,goalY:this.barHelpers.getGoalValues("y",null,h,g,p),barXPosition:w,x:d.globals.isXNumeric?s-r:s,y:n}}}]),t}(me),Re=function(v){W(t,v);var e=oe(t);function t(){return O(this,t),e.apply(this,arguments)}return E(t,[{key:"draw",value:function(i,a){var s=this,n=this.w,r=new Y(this.ctx),o=new ne(this.ctx);this.candlestickOptions=this.w.config.plotOptions.candlestick,this.boxOptions=this.w.config.plotOptions.boxPlot,this.isHorizontal=n.config.plotOptions.bar.horizontal;var h=new U(this.ctx,n);i=h.getLogSeries(i),this.series=i,this.yRatio=h.getLogYRatios(this.yRatio),this.barHelpers.initVariables(i);for(var c=r.group({class:"apexcharts-".concat(n.config.chart.type,"-series apexcharts-plot-series")}),d=function(p){s.isBoxPlot=n.config.chart.type==="boxPlot"||n.config.series[p].type==="boxPlot";var x,f,y,w,S=void 0,k=void 0,l=[],u=[],m=n.globals.comboCharts?a[p]:p,b=r.group({class:"apexcharts-series",seriesName:L.escapeString(n.globals.seriesNames[m]),rel:p+1,"data:realIndex":m});s.ctx.series.addCollapsedClassToSeries(b,m),i[p].length>0&&(s.visibleI=s.visibleI+1);var A,P;s.yRatio.length>1&&(s.yaxisIndex=m);var C=s.barHelpers.initialPositions();k=C.y,A=C.barHeight,f=C.yDivision,w=C.zeroW,S=C.x,P=C.barWidth,x=C.xDivision,y=C.zeroH,u.push(S+P/2);for(var I=r.group({class:"apexcharts-datalabels","data:realIndex":m}),T=function(R){var N=s.barHelpers.getStrokeWidth(p,R,m),B=null,G={indexes:{i:p,j:R,realIndex:m},x:S,y:k,strokeWidth:N,elSeries:b};B=s.isHorizontal?s.drawHorizontalBoxPaths(z(z({},G),{},{yDivision:f,barHeight:A,zeroW:w})):s.drawVerticalBoxPaths(z(z({},G),{},{xDivision:x,barWidth:P,zeroH:y})),k=B.y,S=B.x,R>0&&u.push(S+P/2),l.push(k),B.pathTo.forEach(function(V,$){var q=!s.isBoxPlot&&s.candlestickOptions.wick.useFillColor?B.color[$]:n.globals.stroke.colors[p],te=o.fillPath({seriesNumber:m,dataPointIndex:R,color:B.color[$],value:i[p][R]});s.renderSeries({realIndex:m,pathFill:te,lineFill:q,j:R,i:p,pathFrom:B.pathFrom,pathTo:V,strokeWidth:N,elSeries:b,x:S,y:k,series:i,barHeight:A,barWidth:P,elDataLabelsWrap:I,visibleSeries:s.visibleI,type:n.config.chart.type})})},D=0;Dl.c&&(x=!1);var b=Math.min(l.o,l.c),A=Math.max(l.o,l.c),P=l.m;c.globals.isXNumeric&&(s=(c.globals.seriesX[k][p]-c.globals.minX)/this.xRatio-r/2);var C=s+r*this.visibleI;this.series[g][p]===void 0||this.series[g][p]===null?(b=o,A=o):(b=o-b/S,A=o-A/S,u=o-l.h/S,m=o-l.l/S,P=o-l.m/S);var I=d.move(C,o),T=d.move(C+r/2,b);return c.globals.previousPaths.length>0&&(T=this.getPreviousPath(k,p,!0)),I=this.isBoxPlot?[d.move(C,b)+d.line(C+r/2,b)+d.line(C+r/2,u)+d.line(C+r/4,u)+d.line(C+r-r/4,u)+d.line(C+r/2,u)+d.line(C+r/2,b)+d.line(C+r,b)+d.line(C+r,P)+d.line(C,P)+d.line(C,b+h/2),d.move(C,P)+d.line(C+r,P)+d.line(C+r,A)+d.line(C+r/2,A)+d.line(C+r/2,m)+d.line(C+r-r/4,m)+d.line(C+r/4,m)+d.line(C+r/2,m)+d.line(C+r/2,A)+d.line(C,A)+d.line(C,P)+"z"]:[d.move(C,A)+d.line(C+r/2,A)+d.line(C+r/2,u)+d.line(C+r/2,A)+d.line(C+r,A)+d.line(C+r,b)+d.line(C+r/2,b)+d.line(C+r/2,m)+d.line(C+r/2,b)+d.line(C,b)+d.line(C,A-h/2)],T+=d.move(C,b),c.globals.isXNumeric||(s+=n),{pathTo:I,pathFrom:T,x:s,y:A,barXPosition:C,color:this.isBoxPlot?w:x?[f]:[y]}}},{key:"drawHorizontalBoxPaths",value:function(i){var a=i.indexes;i.x;var s=i.y,n=i.yDivision,r=i.barHeight,o=i.zeroW,h=i.strokeWidth,c=this.w,d=new Y(this.ctx),g=a.i,p=a.j,x=this.boxOptions.colors.lower;this.isBoxPlot&&(x=[this.boxOptions.colors.lower,this.boxOptions.colors.upper]);var f=this.invertedYRatio,y=a.realIndex,w=this.getOHLCValue(y,p),S=o,k=o,l=Math.min(w.o,w.c),u=Math.max(w.o,w.c),m=w.m;c.globals.isXNumeric&&(s=(c.globals.seriesX[y][p]-c.globals.minX)/this.invertedXRatio-r/2);var b=s+r*this.visibleI;this.series[g][p]===void 0||this.series[g][p]===null?(l=o,u=o):(l=o+l/f,u=o+u/f,S=o+w.h/f,k=o+w.l/f,m=o+w.m/f);var A=d.move(o,b),P=d.move(l,b+r/2);return c.globals.previousPaths.length>0&&(P=this.getPreviousPath(y,p,!0)),A=[d.move(l,b)+d.line(l,b+r/2)+d.line(S,b+r/2)+d.line(S,b+r/2-r/4)+d.line(S,b+r/2+r/4)+d.line(S,b+r/2)+d.line(l,b+r/2)+d.line(l,b+r)+d.line(m,b+r)+d.line(m,b)+d.line(l+h/2,b),d.move(m,b)+d.line(m,b+r)+d.line(u,b+r)+d.line(u,b+r/2)+d.line(k,b+r/2)+d.line(k,b+r-r/4)+d.line(k,b+r/4)+d.line(k,b+r/2)+d.line(u,b+r/2)+d.line(u,b)+d.line(m,b)+"z"],P+=d.move(l,b),c.globals.isXNumeric||(s+=n),{pathTo:A,pathFrom:P,x:u,y:s,barYPosition:b,color:x}}},{key:"getOHLCValue",value:function(i,a){var s=this.w;return{o:this.isBoxPlot?s.globals.seriesCandleH[i][a]:s.globals.seriesCandleO[i][a],h:this.isBoxPlot?s.globals.seriesCandleO[i][a]:s.globals.seriesCandleH[i][a],m:s.globals.seriesCandleM[i][a],l:this.isBoxPlot?s.globals.seriesCandleC[i][a]:s.globals.seriesCandleL[i][a],c:this.isBoxPlot?s.globals.seriesCandleL[i][a]:s.globals.seriesCandleC[i][a]}}}]),t}(me),it=function(){function v(e){O(this,v),this.ctx=e,this.w=e.w}return E(v,[{key:"checkColorRange",value:function(){var e=this.w,t=!1,i=e.config.plotOptions[e.config.chart.type];return i.colorScale.ranges.length>0&&i.colorScale.ranges.map(function(a,s){a.from<=0&&(t=!0)}),t}},{key:"getShadeColor",value:function(e,t,i,a){var s=this.w,n=1,r=s.config.plotOptions[e].shadeIntensity,o=this.determineColor(e,t,i);s.globals.hasNegs||a?n=s.config.plotOptions[e].reverseNegativeShade?o.percent<0?o.percent/100*(1.25*r):(1-o.percent/100)*(1.25*r):o.percent<=0?1-(1+o.percent/100)*r:(1-o.percent/100)*r:(n=1-o.percent/100,e==="treemap"&&(n=(1-o.percent/100)*(1.25*r)));var h=o.color,c=new L;return s.config.plotOptions[e].enableShades&&(h=this.w.config.theme.mode==="dark"?L.hexToRgba(c.shadeColor(-1*n,o.color),s.config.fill.opacity):L.hexToRgba(c.shadeColor(n,o.color),s.config.fill.opacity)),{color:h,colorProps:o}}},{key:"determineColor",value:function(e,t,i){var a=this.w,s=a.globals.series[t][i],n=a.config.plotOptions[e],r=n.colorScale.inverse?i:t;n.distributed&&a.config.chart.type==="treemap"&&(r=i);var o=a.globals.colors[r],h=null,c=Math.min.apply(Math,j(a.globals.series[t])),d=Math.max.apply(Math,j(a.globals.series[t]));n.distributed||e!=="heatmap"||(c=a.globals.minY,d=a.globals.maxY),n.colorScale.min!==void 0&&(c=n.colorScale.mina.globals.maxY?n.colorScale.max:a.globals.maxY);var g=Math.abs(d)+Math.abs(c),p=100*s/(g===0?g-1e-6:g);return n.colorScale.ranges.length>0&&n.colorScale.ranges.map(function(x,f){if(s>=x.from&&s<=x.to){o=x.color,h=x.foreColor?x.foreColor:null,c=x.from,d=x.to;var y=Math.abs(d)+Math.abs(c);p=100*s/(y===0?y-1e-6:y)}}),{color:o,foreColor:h,percent:p}}},{key:"calculateDataLabels",value:function(e){var t=e.text,i=e.x,a=e.y,s=e.i,n=e.j,r=e.colorProps,o=e.fontSize,h=this.w.config.dataLabels,c=new Y(this.ctx),d=new fe(this.ctx),g=null;if(h.enabled){g=c.group({class:"apexcharts-data-labels"});var p=h.offsetX,x=h.offsetY,f=i+p,y=a+parseFloat(h.style.fontSize)/3+x;d.plotDataLabelsText({x:f,y,text:t,i:s,j:n,color:r.foreColor,parent:g,fontSize:o,dataLabelsConfig:h})}return g}},{key:"addListeners",value:function(e){var t=new Y(this.ctx);e.node.addEventListener("mouseenter",t.pathMouseEnter.bind(this,e)),e.node.addEventListener("mouseleave",t.pathMouseLeave.bind(this,e)),e.node.addEventListener("mousedown",t.pathMouseDown.bind(this,e))}}]),v}(),Vi=function(){function v(e,t){O(this,v),this.ctx=e,this.w=e.w,this.xRatio=t.xRatio,this.yRatio=t.yRatio,this.dynamicAnim=this.w.config.chart.animations.dynamicAnimation,this.helpers=new it(e),this.rectRadius=this.w.config.plotOptions.heatmap.radius,this.strokeWidth=this.w.config.stroke.show?this.w.config.stroke.width:0}return E(v,[{key:"draw",value:function(e){var t=this.w,i=new Y(this.ctx),a=i.group({class:"apexcharts-heatmap"});a.attr("clip-path","url(#gridRectMask".concat(t.globals.cuid,")"));var s=t.globals.gridWidth/t.globals.dataPoints,n=t.globals.gridHeight/t.globals.series.length,r=0,o=!1;this.negRange=this.helpers.checkColorRange();var h=e.slice();t.config.yaxis[0].reversed&&(o=!0,h.reverse());for(var c=o?0:h.length-1;o?c=0;o?c++:c--){var d=i.group({class:"apexcharts-series apexcharts-heatmap-series",seriesName:L.escapeString(t.globals.seriesNames[c]),rel:c+1,"data:realIndex":c});if(this.ctx.series.addCollapsedClassToSeries(d,c),t.config.chart.dropShadow.enabled){var g=t.config.chart.dropShadow;new Q(this.ctx).dropShadow(d,g,c)}for(var p=0,x=t.config.plotOptions.heatmap.shadeIntensity,f=0;f-1&&this.pieClicked(g),i.config.dataLabels.enabled){var u=k.x,m=k.y,b=100*x/this.fullAngle+"%";if(x!==0&&i.config.plotOptions.pie.dataLabels.minAngleToShowLabelthis.fullAngle?t.endAngle=t.endAngle-(a+r):a+r=this.fullAngle+this.w.config.plotOptions.pie.startAngle%this.fullAngle&&(o=this.fullAngle+this.w.config.plotOptions.pie.startAngle%this.fullAngle-.01),Math.ceil(o)>this.fullAngle&&(o-=this.fullAngle);var h=Math.PI*(o-90)/180,c=t.centerX+s*Math.cos(r),d=t.centerY+s*Math.sin(r),g=t.centerX+s*Math.cos(h),p=t.centerY+s*Math.sin(h),x=L.polarToCartesian(t.centerX,t.centerY,t.donutSize,o),f=L.polarToCartesian(t.centerX,t.centerY,t.donutSize,n),y=a>180?1:0,w=["M",c,d,"A",s,s,0,y,1,g,p];return t.chartType==="donut"?[].concat(w,["L",x.x,x.y,"A",t.donutSize,t.donutSize,0,y,0,f.x,f.y,"L",c,d,"z"]).join(" "):t.chartType==="pie"||t.chartType==="polarArea"?[].concat(w,["L",t.centerX,t.centerY,"L",c,d]).join(" "):[].concat(w).join(" ")}},{key:"drawPolarElements",value:function(e){var t=this.w,i=new xe(this.ctx),a=new Y(this.ctx),s=new at(this.ctx),n=a.group(),r=a.group(),o=i.niceScale(0,Math.ceil(this.maxY),t.config.yaxis[0].tickAmount,0,!0),h=o.result.reverse(),c=o.result.length;this.maxY=o.niceMax;for(var d=t.globals.radialSize,g=d/(c-1),p=0;p1&&e.total.show&&(s=e.total.color);var r=n.globals.dom.baseEl.querySelector(".apexcharts-datalabel-label"),o=n.globals.dom.baseEl.querySelector(".apexcharts-datalabel-value");i=(0,e.value.formatter)(i,n),a||typeof e.total.formatter!="function"||(i=e.total.formatter(n));var h=t===e.total.label;t=e.name.formatter(t,h,n),r!==null&&(r.textContent=t),o!==null&&(o.textContent=i),r!==null&&(r.style.fill=s)}},{key:"printDataLabelsInner",value:function(e,t){var i=this.w,a=e.getAttribute("data:value"),s=i.globals.seriesNames[parseInt(e.parentNode.getAttribute("rel"),10)-1];i.globals.series.length>1&&this.printInnerLabels(t,s,a,e);var n=i.globals.dom.baseEl.querySelector(".apexcharts-datalabels-group");n!==null&&(n.style.opacity=1)}},{key:"drawSpokes",value:function(e){var t=this,i=this.w,a=new Y(this.ctx),s=i.config.plotOptions.polarArea.spokes;if(s.strokeWidth!==0){for(var n=[],r=360/i.globals.series.length,o=0;o1)r&&!t.total.showAlways?h({makeSliceOut:!1,printLabel:!0}):this.printInnerLabels(t,t.total.label,t.total.formatter(s));else if(h({makeSliceOut:!1,printLabel:!0}),!r)if(s.globals.selectedDataPoints.length&&s.globals.series.length>1)if(s.globals.selectedDataPoints[0].length>0){var c=s.globals.selectedDataPoints[0],d=s.globals.dom.baseEl.querySelector(".apexcharts-".concat(this.chartType.toLowerCase(),"-slice-").concat(c));this.printDataLabelsInner(d,t)}else n&&s.globals.selectedDataPoints.length&&s.globals.selectedDataPoints[0].length===0&&(n.style.opacity=0);else n&&s.globals.series.length>1&&(n.style.opacity=0)}}]),v}(),ji=function(){function v(e){O(this,v),this.ctx=e,this.w=e.w,this.chartType=this.w.config.chart.type,this.initialAnim=this.w.config.chart.animations.enabled,this.dynamicAnim=this.initialAnim&&this.w.config.chart.animations.dynamicAnimation.enabled,this.animDur=0;var t=this.w;this.graphics=new Y(this.ctx),this.lineColorArr=t.globals.stroke.colors!==void 0?t.globals.stroke.colors:t.globals.colors,this.defaultSize=t.globals.svgHeight0&&(m=t.getPreviousPath(w));for(var b=0;b=10?e.x>0?(i="start",a+=10):e.x<0&&(i="end",a-=10):i="middle",Math.abs(e.y)>=t-10&&(e.y<0?s-=10:e.y>0&&(s+=10)),{textAnchor:i,newX:a,newY:s}}},{key:"getPreviousPath",value:function(e){for(var t=this.w,i=null,a=0;a0&&parseInt(s.realIndex,10)===parseInt(e,10)&&t.globals.previousPaths[a].paths[0]!==void 0&&(i=t.globals.previousPaths[a].paths[0].d)}return i}},{key:"getDataPointsPos",value:function(e,t){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.dataPointsLen;e=e||[],t=t||[];for(var a=[],s=0;s=360&&(f=360-Math.abs(this.startAngle)-.1);var y=s.drawPath({d:"",stroke:p,strokeWidth:h*parseInt(g.strokeWidth,10)/100,fill:"none",strokeOpacity:g.opacity,classes:"apexcharts-radialbar-area"});if(g.dropShadow.enabled){var w=g.dropShadow;r.dropShadow(y,w)}d.add(y),y.attr("id","apexcharts-radialbarTrack-"+c),this.animatePaths(y,{centerX:i.centerX,centerY:i.centerY,endAngle:f,startAngle:x,size:i.size,i:c,totalItems:2,animBeginArr:0,dur:0,isTrack:!0,easing:a.globals.easing})}return n}},{key:"drawArcs",value:function(i){var a=this.w,s=new Y(this.ctx),n=new ne(this.ctx),r=new Q(this.ctx),o=s.group(),h=this.getStrokeWidth(i);i.size=i.size-h/2;var c=a.config.plotOptions.radialBar.hollow.background,d=i.size-h*i.series.length-this.margin*i.series.length-h*parseInt(a.config.plotOptions.radialBar.track.strokeWidth,10)/100/2,g=d-a.config.plotOptions.radialBar.hollow.margin;a.config.plotOptions.radialBar.hollow.image!==void 0&&(c=this.drawHollowImage(i,o,d,c));var p=this.drawHollow({size:g,centerX:i.centerX,centerY:i.centerY,fill:c||"transparent"});if(a.config.plotOptions.radialBar.hollow.dropShadow.enabled){var x=a.config.plotOptions.radialBar.hollow.dropShadow;r.dropShadow(p,x)}var f=1;!this.radialDataLabels.total.show&&a.globals.series.length>1&&(f=0);var y=null;this.radialDataLabels.show&&(y=this.renderInnerDataLabels(this.radialDataLabels,{hollowSize:d,centerX:i.centerX,centerY:i.centerY,opacity:f})),a.config.plotOptions.radialBar.hollow.position==="back"&&(o.add(p),y&&o.add(y));var w=!1;a.config.plotOptions.radialBar.inverseOrder&&(w=!0);for(var S=w?i.series.length-1:0;w?S>=0:S100?100:i.series[S])/100,A=Math.round(this.totalAngle*b)+this.startAngle,P=void 0;a.globals.dataChanged&&(m=this.startAngle,P=Math.round(this.totalAngle*L.negToZero(a.globals.previousPaths[S])/100)+m),Math.abs(A)+Math.abs(u)>=360&&(A-=.01),Math.abs(P)+Math.abs(m)>=360&&(P-=.01);var C=A-u,I=Array.isArray(a.config.stroke.dashArray)?a.config.stroke.dashArray[S]:a.config.stroke.dashArray,T=s.drawPath({d:"",stroke:l,strokeWidth:h,fill:"none",fillOpacity:a.config.fill.opacity,classes:"apexcharts-radialbar-area apexcharts-radialbar-slice-"+S,strokeDashArray:I});if(Y.setAttrs(T.node,{"data:angle":C,"data:value":i.series[S]}),a.config.chart.dropShadow.enabled){var D=a.config.chart.dropShadow;r.dropShadow(T,D,S)}r.setSelectionFilter(T,0,S),this.addListeners(T,this.radialDataLabels),k.add(T),T.attr({index:0,j:S});var R=0;!this.initialAnim||a.globals.resized||a.globals.dataChanged||(R=a.config.chart.animations.speed),a.globals.dataChanged&&(R=a.config.chart.animations.dynamicAnimation.speed),this.animDur=R/(1.2*i.series.length)+this.animDur,this.animBeginArr.push(this.animDur),this.animatePaths(T,{centerX:i.centerX,centerY:i.centerY,endAngle:A,startAngle:u,prevEndAngle:P,prevStartAngle:m,size:i.size,i:S,totalItems:2,animBeginArr:this.animBeginArr,dur:R,shouldSetPrevPaths:!0,easing:a.globals.easing})}return{g:o,elHollow:p,dataLabels:y}}},{key:"drawHollow",value:function(i){var a=new Y(this.ctx).drawCircle(2*i.size);return a.attr({class:"apexcharts-radialbar-hollow",cx:i.centerX,cy:i.centerY,r:i.size,fill:i.fill}),a}},{key:"drawHollowImage",value:function(i,a,s,n){var r=this.w,o=new ne(this.ctx),h=L.randomId(),c=r.config.plotOptions.radialBar.hollow.image;if(r.config.plotOptions.radialBar.hollow.imageClipped)o.clippedImgArea({width:s,height:s,image:c,patternID:"pattern".concat(r.globals.cuid).concat(h)}),n="url(#pattern".concat(r.globals.cuid).concat(h,")");else{var d=r.config.plotOptions.radialBar.hollow.imageWidth,g=r.config.plotOptions.radialBar.hollow.imageHeight;if(d===void 0&&g===void 0){var p=r.globals.dom.Paper.image(c).loaded(function(f){this.move(i.centerX-f.width/2+r.config.plotOptions.radialBar.hollow.imageOffsetX,i.centerY-f.height/2+r.config.plotOptions.radialBar.hollow.imageOffsetY)});a.add(p)}else{var x=r.globals.dom.Paper.image(c).loaded(function(f){this.move(i.centerX-d/2+r.config.plotOptions.radialBar.hollow.imageOffsetX,i.centerY-g/2+r.config.plotOptions.radialBar.hollow.imageOffsetY),this.size(d,g)});a.add(x)}}return n}},{key:"getStrokeWidth",value:function(i){var a=this.w;return i.size*(100-parseInt(a.config.plotOptions.radialBar.hollow.size,10))/100/(i.series.length+1)-this.margin}}]),t}(st),qi=function(v){W(t,v);var e=oe(t);function t(){return O(this,t),e.apply(this,arguments)}return E(t,[{key:"draw",value:function(i,a){var s=this.w,n=new Y(this.ctx);this.rangeBarOptions=this.w.config.plotOptions.rangeBar,this.series=i,this.seriesRangeStart=s.globals.seriesRangeStart,this.seriesRangeEnd=s.globals.seriesRangeEnd,this.barHelpers.initVariables(i);for(var r=n.group({class:"apexcharts-rangebar-series apexcharts-plot-series"}),o=0;o0&&(this.visibleI=this.visibleI+1);var w=0,S=0;this.yRatio.length>1&&(this.yaxisIndex=f);var k=this.barHelpers.initialPositions();p=k.y,d=k.zeroW,g=k.x,S=k.barWidth,h=k.xDivision,c=k.zeroH;for(var l=n.group({class:"apexcharts-datalabels","data:realIndex":f}),u=n.group({class:"apexcharts-rangebar-goals-markers",style:"pointer-events: none"}),m=0;m0});return n=d.config.plotOptions.bar.rangeBarGroupRows?r+h*f:r+o*this.visibleI+h*f,y>-1&&!d.config.plotOptions.bar.rangeBarOverlap&&(g=d.globals.seriesRange[a][y].overlaps).indexOf(p)>-1&&(n=(o=c.barHeight/g.length)*this.visibleI+h*(100-parseInt(this.barOptions.barHeight,10))/100/2+o*(this.visibleI+g.indexOf(p))+h*f),{barYPosition:n,barHeight:o}}},{key:"drawRangeColumnPaths",value:function(i){var a=i.indexes,s=i.x;i.strokeWidth;var n=i.xDivision,r=i.barWidth,o=i.zeroH,h=this.w,c=a.i,d=a.j,g=this.yRatio[this.yaxisIndex],p=a.realIndex,x=this.getRangeValue(p,d),f=Math.min(x.start,x.end),y=Math.max(x.start,x.end);h.globals.isXNumeric&&(s=(h.globals.seriesX[c][d]-h.globals.minX)/this.xRatio-r/2);var w=s+r*this.visibleI;this.series[c][d]===void 0||this.series[c][d]===null?f=o:(f=o-f/g,y=o-y/g);var S=Math.abs(y-f),k=this.barHelpers.getColumnPaths({barXPosition:w,barWidth:r,y1:f,y2:y,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,realIndex:a.realIndex,i:p,j:d,w:h});return h.globals.isXNumeric||(s+=n),{pathTo:k.pathTo,pathFrom:k.pathFrom,barHeight:S,x:s,y,goalY:this.barHelpers.getGoalValues("y",null,o,c,d),barXPosition:w}}},{key:"drawRangeBarPaths",value:function(i){var a=i.indexes,s=i.y,n=i.y1,r=i.y2,o=i.yDivision,h=i.barHeight,c=i.barYPosition,d=i.zeroW,g=this.w,p=d+n/this.invertedYRatio,x=d+r/this.invertedYRatio,f=Math.abs(x-p),y=this.barHelpers.getBarpaths({barYPosition:c,barHeight:h,x1:p,x2:x,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,i:a.realIndex,realIndex:a.realIndex,j:a.j,w:g});return g.globals.isXNumeric||(s+=o),{pathTo:y.pathTo,pathFrom:y.pathFrom,barWidth:f,x,goalX:this.barHelpers.getGoalValues("x",d,null,a.realIndex,a.j),y:s}}},{key:"getRangeValue",value:function(i,a){var s=this.w;return{start:s.globals.seriesRangeStart[i][a],end:s.globals.seriesRangeEnd[i][a]}}}]),t}(me),$i=function(){function v(e){O(this,v),this.w=e.w,this.lineCtx=e}return E(v,[{key:"sameValueSeriesFix",value:function(e,t){var i=this.w;if((i.config.fill.type==="gradient"||i.config.fill.type[e]==="gradient")&&new U(this.lineCtx.ctx,i).seriesHaveSameValues(e)){var a=t[e].slice();a[a.length-1]=a[a.length-1]+1e-6,t[e]=a}return t}},{key:"calculatePoints",value:function(e){var t=e.series,i=e.realIndex,a=e.x,s=e.y,n=e.i,r=e.j,o=e.prevY,h=this.w,c=[],d=[];if(r===0){var g=this.lineCtx.categoryAxisCorrection+h.config.markers.offsetX;h.globals.isXNumeric&&(g=(h.globals.seriesX[i][0]-h.globals.minX)/this.lineCtx.xRatio+h.config.markers.offsetX),c.push(g),d.push(L.isNumber(t[n][0])?o+h.config.markers.offsetY:null),c.push(a+h.config.markers.offsetX),d.push(L.isNumber(t[n][r+1])?s+h.config.markers.offsetY:null)}else c.push(a+h.config.markers.offsetX),d.push(L.isNumber(t[n][r+1])?s+h.config.markers.offsetY:null);return{x:c,y:d}}},{key:"checkPreviousPaths",value:function(e){for(var t=e.pathFromLine,i=e.pathFromArea,a=e.realIndex,s=this.w,n=0;n0&&parseInt(r.realIndex,10)===parseInt(a,10)&&(r.type==="line"?(this.lineCtx.appendPathFrom=!1,t=s.globals.previousPaths[n].paths[0].d):r.type==="area"&&(this.lineCtx.appendPathFrom=!1,i=s.globals.previousPaths[n].paths[0].d,s.config.stroke.show&&s.globals.previousPaths[n].paths[1]&&(t=s.globals.previousPaths[n].paths[1].d)))}return{pathFromLine:t,pathFromArea:i}}},{key:"determineFirstPrevY",value:function(e){var t,i=e.i,a=e.series,s=e.prevY,n=e.lineYPosition,r=this.w;if(((t=a[i])===null||t===void 0?void 0:t[0])!==void 0)s=(n=r.config.chart.stacked&&i>0?this.lineCtx.prevSeriesY[i-1][0]:this.lineCtx.zeroY)-a[i][0]/this.lineCtx.yRatio[this.lineCtx.yaxisIndex]+2*(this.lineCtx.isReversed?a[i][0]/this.lineCtx.yRatio[this.lineCtx.yaxisIndex]:0);else if(r.config.chart.stacked&&i>0&&a[i][0]===void 0){for(var o=i-1;o>=0;o--)if(a[o][0]!==null&&a[o][0]!==void 0){s=n=this.lineCtx.prevSeriesY[o][0];break}}return{prevY:s,lineYPosition:n}}}]),v}(),He=function(){function v(e,t,i){O(this,v),this.ctx=e,this.w=e.w,this.xyRatios=t,this.pointsChart=!(this.w.config.chart.type!=="bubble"&&this.w.config.chart.type!=="scatter")||i,this.scatter=new Ue(this.ctx),this.noNegatives=this.w.globals.minX===Number.MAX_VALUE,this.lineHelpers=new $i(this),this.markers=new ke(this.ctx),this.prevSeriesY=[],this.categoryAxisCorrection=0,this.yaxisIndex=0}return E(v,[{key:"draw",value:function(e,t,i,a){var s=this.w,n=new Y(this.ctx),r=s.globals.comboCharts?t:s.config.chart.type,o=n.group({class:"apexcharts-".concat(r,"-series apexcharts-plot-series")}),h=new U(this.ctx,s);this.yRatio=this.xyRatios.yRatio,this.zRatio=this.xyRatios.zRatio,this.xRatio=this.xyRatios.xRatio,this.baseLineY=this.xyRatios.baseLineY,e=h.getLogSeries(e),this.yRatio=h.getLogYRatios(this.yRatio);for(var c=[],d=0;d0&&(f=(s.globals.seriesX[g][0]-s.globals.minX)/this.xRatio),x.push(f);var y,w=f,S=void 0,k=w,l=this.zeroY,u=this.zeroY;l=this.lineHelpers.determineFirstPrevY({i:d,series:e,prevY:l,lineYPosition:0}).prevY,p.push(l),y=l,r==="rangeArea"&&(S=u=this.lineHelpers.determineFirstPrevY({i:d,series:a,prevY:u,lineYPosition:0}).prevY);var m={type:r,series:e,realIndex:g,i:d,x:f,y:1,pX:w,pY:y,pathsFrom:this._calculatePathsFrom({type:r,series:e,i:d,realIndex:g,prevX:k,prevY:l,prevY2:u}),linePaths:[],areaPaths:[],seriesIndex:i,lineYPosition:0,xArrj:x,yArrj:p,seriesRangeEnd:a},b=this._iterateOverDataPoints(z(z({},m),{},{iterations:r==="rangeArea"?e[d].length-1:void 0,isRangeStart:!0}));if(r==="rangeArea"){var A=this._calculatePathsFrom({series:a,i:d,realIndex:g,prevX:k,prevY:u}),P=this._iterateOverDataPoints(z(z({},m),{},{series:a,pY:S,pathsFrom:A,iterations:a[d].length-1,isRangeStart:!1}));b.linePaths[0]=P.linePath+b.linePath,b.pathFromLine=P.pathFromLine+b.pathFromLine}this._handlePaths({type:r,realIndex:g,i:d,paths:b}),this.elSeries.add(this.elPointsMain),this.elSeries.add(this.elDataLabelsWrap),c.push(this.elSeries)}if(s.config.chart.stacked)for(var C=c.length;C>0;C--)o.add(c[C-1]);else for(var I=0;I1&&(this.yaxisIndex=i),this.isReversed=a.config.yaxis[this.yaxisIndex]&&a.config.yaxis[this.yaxisIndex].reversed,this.zeroY=a.globals.gridHeight-this.baseLineY[this.yaxisIndex]-(this.isReversed?a.globals.gridHeight:0)+(this.isReversed?2*this.baseLineY[this.yaxisIndex]:0),this.areaBottomY=this.zeroY,(this.zeroY>a.globals.gridHeight||a.config.plotOptions.area.fillTo==="end")&&(this.areaBottomY=a.globals.gridHeight),this.categoryAxisCorrection=this.xDivision/2,this.elSeries=s.group({class:"apexcharts-series",seriesName:L.escapeString(a.globals.seriesNames[i])}),this.elPointsMain=s.group({class:"apexcharts-series-markers-wrap","data:realIndex":i}),this.elDataLabelsWrap=s.group({class:"apexcharts-datalabels","data:realIndex":i});var n=e[t].length===a.globals.dataPoints;this.elSeries.attr({"data:longestSeries":n,rel:t+1,"data:realIndex":i}),this.appendPathFrom=!0}},{key:"_calculatePathsFrom",value:function(e){var t,i,a,s,n=e.type,r=e.series,o=e.i,h=e.realIndex,c=e.prevX,d=e.prevY,g=e.prevY2,p=this.w,x=new Y(this.ctx);if(r[o][0]===null){for(var f=0;f0){var y=this.lineHelpers.checkPreviousPaths({pathFromLine:a,pathFromArea:s,realIndex:h});a=y.pathFromLine,s=y.pathFromArea}return{prevX:c,prevY:d,linePath:t,areaPath:i,pathFromLine:a,pathFromArea:s}}},{key:"_handlePaths",value:function(e){var t=e.type,i=e.realIndex,a=e.i,s=e.paths,n=this.w,r=new Y(this.ctx),o=new ne(this.ctx);this.prevSeriesY.push(s.yArrj),n.globals.seriesXvalues[i]=s.xArrj,n.globals.seriesYvalues[i]=s.yArrj;var h=n.config.forecastDataPoints;if(h.count>0&&t!=="rangeArea"){var c=n.globals.seriesXvalues[i][n.globals.seriesXvalues[i].length-h.count-1],d=r.drawRect(c,0,n.globals.gridWidth,n.globals.gridHeight,0);n.globals.dom.elForecastMask.appendChild(d.node);var g=r.drawRect(0,0,c,n.globals.gridHeight,0);n.globals.dom.elNonForecastMask.appendChild(g.node)}this.pointsChart||n.globals.delayedElements.push({el:this.elPointsMain.node,index:i});var p={i:a,realIndex:i,animationDelay:a,initialSpeed:n.config.chart.animations.speed,dataChangeSpeed:n.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-".concat(t)};if(t==="area")for(var x=o.fillPath({seriesNumber:i}),f=0;f0&&t!=="rangeArea"){var b=r.renderPaths(u);b.node.setAttribute("stroke-dasharray",h.dashArray),h.strokeWidth&&b.node.setAttribute("stroke-width",h.strokeWidth),this.elSeries.add(b),b.attr("clip-path","url(#forecastMask".concat(n.globals.cuid,")")),m.attr("clip-path","url(#nonForecastMask".concat(n.globals.cuid,")"))}}}}},{key:"_iterateOverDataPoints",value:function(e){var t=e.type,i=e.series,a=e.iterations,s=e.realIndex,n=e.i,r=e.x,o=e.y,h=e.pX,c=e.pY,d=e.pathsFrom,g=e.linePaths,p=e.areaPaths,x=e.seriesIndex,f=e.lineYPosition,y=e.xArrj,w=e.yArrj,S=e.isRangeStart,k=e.seriesRangeEnd,l=this.w,u=new Y(this.ctx),m=this.yRatio,b=d.prevY,A=d.linePath,P=d.areaPath,C=d.pathFromLine,I=d.pathFromArea,T=L.isNumber(l.globals.minYArr[s])?l.globals.minYArr[s]:l.globals.minY;a||(a=l.globals.dataPoints>1?l.globals.dataPoints-1:l.globals.dataPoints);for(var D=o,R=0;R0&&l.globals.collapsedSeries.length-1){q--;break}return q>=0?q:0}(n-1)][R+1]:f=this.zeroY:f=this.zeroY,N?o=f-T/m[this.yaxisIndex]+2*(this.isReversed?T/m[this.yaxisIndex]:0):(o=f-i[n][R+1]/m[this.yaxisIndex]+2*(this.isReversed?i[n][R+1]/m[this.yaxisIndex]:0),t==="rangeArea"&&(D=f-k[n][R+1]/m[this.yaxisIndex]+2*(this.isReversed?k[n][R+1]/m[this.yaxisIndex]:0))),y.push(r),w.push(o);var G=this.lineHelpers.calculatePoints({series:i,x:r,y:o,realIndex:s,i:n,j:R,prevY:b}),V=this._createPaths({type:t,series:i,i:n,realIndex:s,j:R,x:r,y:o,y2:D,pX:h,pY:c,linePath:A,areaPath:P,linePaths:g,areaPaths:p,seriesIndex:x,isRangeStart:S});p=V.areaPaths,g=V.linePaths,h=V.pX,c=V.pY,P=V.areaPath,A=V.linePath,this.appendPathFrom&&(C+=u.line(r,this.zeroY),I+=u.line(r,this.zeroY)),this.handleNullDataPoints(i,G,n,R,s),this._handleMarkersAndLabels({type:t,pointsPos:G,i:n,j:R,realIndex:s,isRangeStart:S})}return{yArrj:w,xArrj:y,pathFromArea:I,areaPaths:p,pathFromLine:C,linePaths:g,linePath:A,areaPath:P}}},{key:"_handleMarkersAndLabels",value:function(e){var t=e.type,i=e.pointsPos,a=e.isRangeStart,s=e.i,n=e.j,r=e.realIndex,o=this.w,h=new fe(this.ctx);if(this.pointsChart)this.scatter.draw(this.elSeries,n,{realIndex:r,pointsPos:i,zRatio:this.zRatio,elParent:this.elPointsMain});else{o.globals.series[s].length>1&&this.elPointsMain.node.classList.add("apexcharts-element-hidden");var c=this.markers.plotChartMarkers(i,r,n+1);c!==null&&this.elPointsMain.add(c)}var d=h.drawDataLabel({type:t,isRangeStart:a,pos:i,i:r,j:n+1});d!==null&&this.elDataLabelsWrap.add(d)}},{key:"_createPaths",value:function(e){var t=e.type,i=e.series,a=e.i,s=e.realIndex,n=e.j,r=e.x,o=e.y,h=e.y2,c=e.pX,d=e.pY,g=e.linePath,p=e.areaPath,x=e.linePaths,f=e.areaPaths,y=e.seriesIndex,w=e.isRangeStart,S=this.w,k=new Y(this.ctx),l=S.config.stroke.curve,u=this.areaBottomY;if(Array.isArray(S.config.stroke.curve)&&(l=Array.isArray(y)?S.config.stroke.curve[y[a]]:S.config.stroke.curve[a]),l==="smooth"){var m=.35*(r-c);S.globals.hasNullValues?(i[a][n]!==null&&(i[a][n+1]!==null?(g=k.move(c,d)+k.curve(c+m,d,r-m,o,r+1,o),p=k.move(c+1,d)+k.curve(c+m,d,r-m,o,r+1,o)+k.line(r,u)+k.line(c,u)+"z"):(g=k.move(c,d),p=k.move(c,d)+"z")),x.push(g),f.push(p)):(g+=k.curve(c+m,d,r-m,o,r,o),p+=k.curve(c+m,d,r-m,o,r,o)),c=r,d=o,n===i[a].length-2&&(p=p+k.curve(c,d,r,o,r,u)+k.move(r,o)+"z",t==="rangeArea"&&w?g=g+k.curve(c,d,r,o,r,h)+k.move(r,h)+"z":S.globals.hasNullValues||(x.push(g),f.push(p)))}else{if(i[a][n+1]===null){g+=k.move(r,o);var b=S.globals.isXNumeric?(S.globals.seriesX[s][n]-S.globals.minX)/this.xRatio:r-this.xDivision;p=p+k.line(b,u)+k.move(r,o)+"z"}i[a][n]===null&&(g+=k.move(r,o),p+=k.move(r,u)),l==="stepline"?(g=g+k.line(r,null,"H")+k.line(null,o,"V"),p=p+k.line(r,null,"H")+k.line(null,o,"V")):l==="straight"&&(g+=k.line(r,o),p+=k.line(r,o)),n===i[a].length-2&&(p=p+k.line(r,u)+k.move(r,o)+"z",t==="rangeArea"&&w?g=g+k.line(r,h)+k.move(r,h)+"z":(x.push(g),f.push(p)))}return{linePaths:x,areaPaths:f,pX:c,pY:d,linePath:g,areaPath:p}}},{key:"handleNullDataPoints",value:function(e,t,i,a,s){var n=this.w;if(e[i][a]===null&&n.config.markers.showNullDataPoints||e[i].length===1){var r=this.markers.plotChartMarkers(t,s,a+1,this.strokeWidth-n.config.markers.strokeWidth/2,!0);r!==null&&this.elPointsMain.add(r)}}}]),v}();window.TreemapSquared={},window.TreemapSquared.generate=function(){function v(r,o,h,c){this.xoffset=r,this.yoffset=o,this.height=c,this.width=h,this.shortestEdge=function(){return Math.min(this.height,this.width)},this.getCoordinates=function(d){var g,p=[],x=this.xoffset,f=this.yoffset,y=s(d)/this.height,w=s(d)/this.width;if(this.width>=this.height)for(g=0;g=this.height){var p=d/this.height,x=this.width-p;g=new v(this.xoffset+p,this.yoffset,x,this.height)}else{var f=d/this.width,y=this.height-f;g=new v(this.xoffset,this.yoffset+f,this.width,y)}return g}}function e(r,o,h,c,d){c=c===void 0?0:c,d=d===void 0?0:d;var g=t(function(p,x){var f,y=[],w=x/s(p);for(f=0;f=k}(o,g=r[0],d)?(o.push(g),t(r.slice(1),o,h,c)):(p=h.cutArea(s(o),c),c.push(h.getCoordinates(o)),t(r,[],p,c)),c;c.push(h.getCoordinates(o))}function i(r,o){var h=Math.min.apply(Math,r),c=Math.max.apply(Math,r),d=s(r);return Math.max(Math.pow(o,2)*c/Math.pow(d,2),Math.pow(d,2)/(Math.pow(o,2)*h))}function a(r){return r&&r.constructor===Array}function s(r){var o,h=0;for(o=0;on-a&&h.width<=r-s){var c=o.rotateAroundCenter(e.node);e.node.setAttribute("transform","rotate(-90 ".concat(c.x," ").concat(c.y,")"))}}},{key:"animateTreemap",value:function(e,t,i,a){var s=new pe(this.ctx);s.animateRect(e,{x:t.x,y:t.y,width:t.width,height:t.height},{x:i.x,y:i.y,width:i.width,height:i.height},a,function(){s.animationCompleted(e)})}}]),v}(),Ji=86400,Qi=function(){function v(e){O(this,v),this.ctx=e,this.w=e.w,this.timeScaleArray=[],this.utc=this.w.config.xaxis.labels.datetimeUTC}return E(v,[{key:"calculateTimeScaleTicks",value:function(e,t){var i=this,a=this.w;if(a.globals.allSeriesCollapsed)return a.globals.labels=[],a.globals.timescaleLabels=[],[];var s=new J(this.ctx),n=(t-e)/864e5;this.determineInterval(n),a.globals.disableZoomIn=!1,a.globals.disableZoomOut=!1,n<.00011574074074074075?a.globals.disableZoomIn=!0:n>5e4&&(a.globals.disableZoomOut=!0);var r=s.getTimeUnitsfromTimestamp(e,t,this.utc),o=a.globals.gridWidth/n,h=o/24,c=h/60,d=c/60,g=Math.floor(24*n),p=Math.floor(1440*n),x=Math.floor(n*Ji),f=Math.floor(n),y=Math.floor(n/30),w=Math.floor(n/365),S={minMillisecond:r.minMillisecond,minSecond:r.minSecond,minMinute:r.minMinute,minHour:r.minHour,minDate:r.minDate,minMonth:r.minMonth,minYear:r.minYear},k={firstVal:S,currentMillisecond:S.minMillisecond,currentSecond:S.minSecond,currentMinute:S.minMinute,currentHour:S.minHour,currentMonthDate:S.minDate,currentDate:S.minDate,currentMonth:S.minMonth,currentYear:S.minYear,daysWidthOnXAxis:o,hoursWidthOnXAxis:h,minutesWidthOnXAxis:c,secondsWidthOnXAxis:d,numberOfSeconds:x,numberOfMinutes:p,numberOfHours:g,numberOfDays:f,numberOfMonths:y,numberOfYears:w};switch(this.tickInterval){case"years":this.generateYearScale(k);break;case"months":case"half_year":this.generateMonthScale(k);break;case"months_days":case"months_fortnight":case"days":case"week_days":this.generateDayScale(k);break;case"hours":this.generateHourScale(k);break;case"minutes_fives":case"minutes":this.generateMinuteScale(k);break;case"seconds_tens":case"seconds_fives":case"seconds":this.generateSecondScale(k)}var l=this.timeScaleArray.map(function(u){var m={position:u.position,unit:u.unit,year:u.year,day:u.day?u.day:1,hour:u.hour?u.hour:0,month:u.month+1};return u.unit==="month"?z(z({},m),{},{day:1,value:u.value+1}):u.unit==="day"||u.unit==="hour"?z(z({},m),{},{value:u.value}):u.unit==="minute"?z(z({},m),{},{value:u.value,minute:u.value}):u.unit==="second"?z(z({},m),{},{value:u.value,minute:u.minute,second:u.second}):u});return l.filter(function(u){var m=1,b=Math.ceil(a.globals.gridWidth/120),A=u.value;a.config.xaxis.tickAmount!==void 0&&(b=a.config.xaxis.tickAmount),l.length>b&&(m=Math.floor(l.length/b));var P=!1,C=!1;switch(i.tickInterval){case"years":u.unit==="year"&&(P=!0);break;case"half_year":m=7,u.unit==="year"&&(P=!0);break;case"months":m=1,u.unit==="year"&&(P=!0);break;case"months_fortnight":m=15,u.unit!=="year"&&u.unit!=="month"||(P=!0),A===30&&(C=!0);break;case"months_days":m=10,u.unit==="month"&&(P=!0),A===30&&(C=!0);break;case"week_days":m=8,u.unit==="month"&&(P=!0);break;case"days":m=1,u.unit==="month"&&(P=!0);break;case"hours":u.unit==="day"&&(P=!0);break;case"minutes_fives":case"seconds_fives":A%5!=0&&(C=!0);break;case"seconds_tens":A%10!=0&&(C=!0)}if(i.tickInterval==="hours"||i.tickInterval==="minutes_fives"||i.tickInterval==="seconds_tens"||i.tickInterval==="seconds_fives"){if(!C)return!0}else if((A%m==0||P)&&!C)return!0})}},{key:"recalcDimensionsBasedOnFormat",value:function(e,t){var i=this.w,a=this.formatDates(e),s=this.removeOverlappingTS(a);i.globals.timescaleLabels=s.slice(),new Me(this.ctx).plotCoords()}},{key:"determineInterval",value:function(e){var t=24*e,i=60*t;switch(!0){case e/365>5:this.tickInterval="years";break;case e>800:this.tickInterval="half_year";break;case e>180:this.tickInterval="months";break;case e>90:this.tickInterval="months_fortnight";break;case e>60:this.tickInterval="months_days";break;case e>30:this.tickInterval="week_days";break;case e>2:this.tickInterval="days";break;case t>2.4:this.tickInterval="hours";break;case i>15:this.tickInterval="minutes_fives";break;case i>5:this.tickInterval="minutes";break;case i>1:this.tickInterval="seconds_tens";break;case 60*i>20:this.tickInterval="seconds_fives";break;default:this.tickInterval="seconds"}}},{key:"generateYearScale",value:function(e){var t=e.firstVal,i=e.currentMonth,a=e.currentYear,s=e.daysWidthOnXAxis,n=e.numberOfYears,r=t.minYear,o=0,h=new J(this.ctx),c="year";if(t.minDate>1||t.minMonth>0){var d=h.determineRemainingDaysOfYear(t.minYear,t.minMonth,t.minDate);o=(h.determineDaysOfYear(t.minYear)-d+1)*s,r=t.minYear+1,this.timeScaleArray.push({position:o,value:r,unit:c,year:r,month:L.monthMod(i+1)})}else t.minDate===1&&t.minMonth===0&&this.timeScaleArray.push({position:o,value:r,unit:c,year:a,month:L.monthMod(i+1)});for(var g=r,p=o,x=0;x1){h=(c.determineDaysOfMonths(a+1,t.minYear)-i+1)*n,o=L.monthMod(a+1);var p=s+g,x=L.monthMod(o),f=o;o===0&&(d="year",f=p,x=1,p+=g+=1),this.timeScaleArray.push({position:h,value:f,unit:d,year:p,month:x})}else this.timeScaleArray.push({position:h,value:o,unit:d,year:s,month:L.monthMod(a)});for(var y=o+1,w=h,S=0,k=1;Sr.determineDaysOfMonths(l+1,u)&&(c=1,o="month",p=l+=1),l},g=(24-t.minHour)*s,p=h,x=d(c,i,a);t.minHour===0&&t.minDate===1?(g=0,p=L.monthMod(t.minMonth),o="month",c=t.minDate,n++):t.minDate!==1&&t.minHour===0&&t.minMinute===0&&(g=0,h=t.minDate,p=h,x=d(c=h,i,a)),this.timeScaleArray.push({position:g,value:p,unit:o,year:this._getYear(a,x,0),month:L.monthMod(x),day:c});for(var f=g,y=0;yo.determineDaysOfMonths(b+1,s)&&(y=1,b+=1),{month:b,date:y}},d=function(m,b){return m>o.determineDaysOfMonths(b+1,s)?b+=1:b},g=60-(t.minMinute+t.minSecond/60),p=g*n,x=t.minHour+1,f=x+1;g===60&&(p=0,f=(x=t.minHour)+1);var y=i,w=d(y,a);this.timeScaleArray.push({position:p,value:x,unit:h,day:y,hour:f,year:s,month:L.monthMod(w)});for(var S=p,k=0;k=24&&(f=0,h="day",w=c(y+=1,w).month,w=d(y,w));var l=this._getYear(s,w,0);S=60*n+S;var u=f===0?y:f;this.timeScaleArray.push({position:S,value:u,unit:h,hour:f,day:y,year:l,month:L.monthMod(w)}),f++}}},{key:"generateMinuteScale",value:function(e){for(var t=e.currentMillisecond,i=e.currentSecond,a=e.currentMinute,s=e.currentHour,n=e.currentDate,r=e.currentMonth,o=e.currentYear,h=e.minutesWidthOnXAxis,c=e.secondsWidthOnXAxis,d=e.numberOfMinutes,g=a+1,p=n,x=r,f=o,y=s,w=(60-i-t/1e3)*c,S=0;S=60&&(g=0,(y+=1)===24&&(y=0)),this.timeScaleArray.push({position:w,value:g,unit:"minute",hour:y,minute:g,day:p,year:this._getYear(f,x,0),month:L.monthMod(x)}),w+=h,g++}},{key:"generateSecondScale",value:function(e){for(var t=e.currentMillisecond,i=e.currentSecond,a=e.currentMinute,s=e.currentHour,n=e.currentDate,r=e.currentMonth,o=e.currentYear,h=e.secondsWidthOnXAxis,c=e.numberOfSeconds,d=i+1,g=a,p=n,x=r,f=o,y=s,w=(1e3-t)/1e3*h,S=0;S=60&&(d=0,++g>=60&&(g=0,++y===24&&(y=0))),this.timeScaleArray.push({position:w,value:d,unit:"second",hour:y,minute:g,second:d,day:p,year:this._getYear(f,x,0),month:L.monthMod(x)}),w+=h,d++}},{key:"createRawDateString",value:function(e,t){var i=e.year;return e.month===0&&(e.month=1),i+="-"+("0"+e.month.toString()).slice(-2),e.unit==="day"?i+=e.unit==="day"?"-"+("0"+t).slice(-2):"-01":i+="-"+("0"+(e.day?e.day:"1")).slice(-2),e.unit==="hour"?i+=e.unit==="hour"?"T"+("0"+t).slice(-2):"T00":i+="T"+("0"+(e.hour?e.hour:"0")).slice(-2),e.unit==="minute"?i+=":"+("0"+t).slice(-2):i+=":"+(e.minute?("0"+e.minute).slice(-2):"00"),e.unit==="second"?i+=":"+("0"+t).slice(-2):i+=":00",this.utc&&(i+=".000Z"),i}},{key:"formatDates",value:function(e){var t=this,i=this.w;return e.map(function(a){var s=a.value.toString(),n=new J(t.ctx),r=t.createRawDateString(a,s),o=n.getDate(n.parseDate(r));if(t.utc||(o=n.getDate(n.parseDateWithTimezone(r))),i.config.xaxis.labels.format===void 0){var h="dd MMM",c=i.config.xaxis.labels.datetimeFormatter;a.unit==="year"&&(h=c.year),a.unit==="month"&&(h=c.month),a.unit==="day"&&(h=c.day),a.unit==="hour"&&(h=c.hour),a.unit==="minute"&&(h=c.minute),a.unit==="second"&&(h=c.second),s=n.formatDate(o,h)}else s=n.formatDate(o,i.config.xaxis.labels.format);return{dateString:r,position:a.position,value:s,unit:a.unit,year:a.year,month:a.month}})}},{key:"removeOverlappingTS",value:function(e){var t,i=this,a=new Y(this.ctx),s=!1;e.length>0&&e[0].value&&e.every(function(o){return o.value.length===e[0].value.length})&&(s=!0,t=a.getTextRects(e[0].value).width);var n=0,r=e.map(function(o,h){if(h>0&&i.w.config.xaxis.labels.hideOverlappingLabels){var c=s?t:a.getTextRects(e[n].value).width,d=e[n].position;return o.position>d+c+10?(n=h,o):null}return o});return r=r.filter(function(o){return o!==null})}},{key:"_getYear",value:function(e,t,i){return e+Math.floor(t/12)+i}}]),v}(),Ki=function(){function v(e,t){O(this,v),this.ctx=t,this.w=t.w,this.el=e}return E(v,[{key:"setupElements",value:function(){var e=this.w.globals,t=this.w.config,i=t.chart.type;e.axisCharts=["line","area","bar","rangeBar","rangeArea","candlestick","boxPlot","scatter","bubble","radar","heatmap","treemap"].indexOf(i)>-1,e.xyCharts=["line","area","bar","rangeBar","rangeArea","candlestick","boxPlot","scatter","bubble"].indexOf(i)>-1,e.isBarHorizontal=(t.chart.type==="bar"||t.chart.type==="rangeBar"||t.chart.type==="boxPlot")&&t.plotOptions.bar.horizontal,e.chartClass=".apexcharts"+e.chartID,e.dom.baseEl=this.el,e.dom.elWrap=document.createElement("div"),Y.setAttrs(e.dom.elWrap,{id:e.chartClass.substring(1),class:"apexcharts-canvas "+e.chartClass.substring(1)}),this.el.appendChild(e.dom.elWrap),e.dom.Paper=new window.SVG.Doc(e.dom.elWrap),e.dom.Paper.attr({class:"apexcharts-svg","xmlns:data":"ApexChartsNS",transform:"translate(".concat(t.chart.offsetX,", ").concat(t.chart.offsetY,")")}),e.dom.Paper.node.style.background=t.chart.background,this.setSVGDimensions(),e.dom.elGraphical=e.dom.Paper.group().attr({class:"apexcharts-inner apexcharts-graphical"}),e.dom.elAnnotations=e.dom.Paper.group().attr({class:"apexcharts-annotations"}),e.dom.elDefs=e.dom.Paper.defs(),e.dom.elLegendWrap=document.createElement("div"),e.dom.elLegendWrap.classList.add("apexcharts-legend"),e.dom.elWrap.appendChild(e.dom.elLegendWrap),e.dom.Paper.add(e.dom.elGraphical),e.dom.elGraphical.add(e.dom.elDefs)}},{key:"plotChartType",value:function(e,t){var i=this.w,a=i.config,s=i.globals,n={series:[],i:[]},r={series:[],i:[]},o={series:[],i:[]},h={series:[],i:[]},c={series:[],i:[]},d={series:[],i:[]},g={series:[],i:[]},p={series:[],i:[]},x={series:[],seriesRangeEnd:[],i:[]};s.series.map(function(b,A){var P=0;e[A].type!==void 0?(e[A].type==="column"||e[A].type==="bar"?(s.series.length>1&&a.plotOptions.bar.horizontal&&console.warn("Horizontal bars are not supported in a mixed/combo chart. Please turn off `plotOptions.bar.horizontal`"),c.series.push(b),c.i.push(A),P++,i.globals.columnSeries=c.series):e[A].type==="area"?(r.series.push(b),r.i.push(A),P++):e[A].type==="line"?(n.series.push(b),n.i.push(A),P++):e[A].type==="scatter"?(o.series.push(b),o.i.push(A)):e[A].type==="bubble"?(h.series.push(b),h.i.push(A),P++):e[A].type==="candlestick"?(d.series.push(b),d.i.push(A),P++):e[A].type==="boxPlot"?(g.series.push(b),g.i.push(A),P++):e[A].type==="rangeBar"?(p.series.push(b),p.i.push(A),P++):e[A].type==="rangeArea"?(x.series.push(s.seriesRangeStart[A]),x.seriesRangeEnd.push(s.seriesRangeEnd[A]),x.i.push(A),P++):console.warn("You have specified an unrecognized chart type. Available types for this property are line/area/column/bar/scatter/bubble"),P>1&&(s.comboCharts=!0)):(n.series.push(b),n.i.push(A))});var f=new He(this.ctx,t),y=new Re(this.ctx,t);this.ctx.pie=new st(this.ctx);var w=new Ui(this.ctx);this.ctx.rangeBar=new qi(this.ctx,t);var S=new ji(this.ctx),k=[];if(s.comboCharts){if(r.series.length>0&&k.push(f.draw(r.series,"area",r.i)),c.series.length>0)if(i.config.chart.stacked){var l=new tt(this.ctx,t);k.push(l.draw(c.series,c.i))}else this.ctx.bar=new me(this.ctx,t),k.push(this.ctx.bar.draw(c.series,c.i));if(x.series.length>0&&k.push(f.draw(x.series,"rangeArea",x.i,x.seriesRangeEnd)),n.series.length>0&&k.push(f.draw(n.series,"line",n.i)),d.series.length>0&&k.push(y.draw(d.series,d.i)),g.series.length>0&&k.push(y.draw(g.series,g.i)),p.series.length>0&&k.push(this.ctx.rangeBar.draw(p.series,p.i)),o.series.length>0){var u=new He(this.ctx,t,!0);k.push(u.draw(o.series,"scatter",o.i))}if(h.series.length>0){var m=new He(this.ctx,t,!0);k.push(m.draw(h.series,"bubble",h.i))}}else switch(a.chart.type){case"line":k=f.draw(s.series,"line");break;case"area":k=f.draw(s.series,"area");break;case"bar":a.chart.stacked?k=new tt(this.ctx,t).draw(s.series):(this.ctx.bar=new me(this.ctx,t),k=this.ctx.bar.draw(s.series));break;case"candlestick":k=new Re(this.ctx,t).draw(s.series);break;case"boxPlot":k=new Re(this.ctx,t).draw(s.series);break;case"rangeBar":k=this.ctx.rangeBar.draw(s.series);break;case"rangeArea":k=f.draw(s.seriesRangeStart,"rangeArea",void 0,s.seriesRangeEnd);break;case"heatmap":k=new Vi(this.ctx,t).draw(s.series);break;case"treemap":k=new Zi(this.ctx,t).draw(s.series);break;case"pie":case"donut":case"polarArea":k=this.ctx.pie.draw(s.series);break;case"radialBar":k=w.draw(s.series);break;case"radar":k=S.draw(s.series);break;default:k=f.draw(s.series)}return k}},{key:"setSVGDimensions",value:function(){var e=this.w.globals,t=this.w.config;e.svgWidth=t.chart.width,e.svgHeight=t.chart.height;var i=L.getDimensions(this.el),a=t.chart.width.toString().split(/[0-9]+/g).pop();a==="%"?L.isNumber(i[0])&&(i[0].width===0&&(i=L.getDimensions(this.el.parentNode)),e.svgWidth=i[0]*parseInt(t.chart.width,10)/100):a!=="px"&&a!==""||(e.svgWidth=parseInt(t.chart.width,10));var s=t.chart.height.toString().split(/[0-9]+/g).pop();if(e.svgHeight!=="auto"&&e.svgHeight!=="")if(s==="%"){var n=L.getDimensions(this.el.parentNode);e.svgHeight=n[1]*parseInt(t.chart.height,10)/100}else e.svgHeight=parseInt(t.chart.height,10);else e.axisCharts?e.svgHeight=e.svgWidth/1.61:e.svgHeight=e.svgWidth/1.2;if(e.svgWidth<0&&(e.svgWidth=0),e.svgHeight<0&&(e.svgHeight=0),Y.setAttrs(e.dom.Paper.node,{width:e.svgWidth,height:e.svgHeight}),s!=="%"){var r=t.chart.sparkline.enabled?0:e.axisCharts?t.chart.parentHeightOffset:0;e.dom.Paper.node.parentNode.parentNode.style.minHeight=e.svgHeight+r+"px"}e.dom.elWrap.style.width=e.svgWidth+"px",e.dom.elWrap.style.height=e.svgHeight+"px"}},{key:"shiftGraphPosition",value:function(){var e=this.w.globals,t=e.translateY,i={transform:"translate("+e.translateX+", "+t+")"};Y.setAttrs(e.dom.elGraphical.node,i)}},{key:"resizeNonAxisCharts",value:function(){var e=this.w,t=e.globals,i=0,a=e.config.chart.sparkline.enabled?1:15;a+=e.config.grid.padding.bottom,e.config.legend.position!=="top"&&e.config.legend.position!=="bottom"||!e.config.legend.show||e.config.legend.floating||(i=new Ze(this.ctx).legendHelpers.getLegendBBox().clwh+10);var s=e.globals.dom.baseEl.querySelector(".apexcharts-radialbar, .apexcharts-pie"),n=2.05*e.globals.radialSize;if(s&&!e.config.chart.sparkline.enabled&&e.config.plotOptions.radialBar.startAngle!==0){var r=L.getBoundingClientRect(s);n=r.bottom;var o=r.bottom-r.top;n=Math.max(2.05*e.globals.radialSize,o)}var h=n+t.translateY+i+a;t.dom.elLegendForeign&&t.dom.elLegendForeign.setAttribute("height",h),e.config.chart.height&&String(e.config.chart.height).indexOf("%")>0||(t.dom.elWrap.style.height=h+"px",Y.setAttrs(t.dom.Paper.node,{height:h}),t.dom.Paper.node.parentNode.parentNode.style.minHeight=h+"px")}},{key:"coreCalculations",value:function(){new Ye(this.ctx).init()}},{key:"resetGlobals",value:function(){var e=this,t=function(){return e.w.config.series.map(function(s){return[]})},i=new je,a=this.w.globals;i.initGlobalVars(a),a.seriesXvalues=t(),a.seriesYvalues=t()}},{key:"isMultipleY",value:function(){if(this.w.config.yaxis.constructor===Array&&this.w.config.yaxis.length>1)return this.w.globals.isMultipleYAxis=!0,!0}},{key:"xySettings",value:function(){var e=null,t=this.w;if(t.globals.axisCharts){if(t.config.xaxis.crosshairs.position==="back"&&new De(this.ctx).drawXCrosshairs(),t.config.yaxis[0].crosshairs.position==="back"&&new De(this.ctx).drawYCrosshairs(),t.config.xaxis.type==="datetime"&&t.config.xaxis.labels.formatter===void 0){this.ctx.timeScale=new Qi(this.ctx);var i=[];isFinite(t.globals.minX)&&isFinite(t.globals.maxX)&&!t.globals.isBarHorizontal?i=this.ctx.timeScale.calculateTimeScaleTicks(t.globals.minX,t.globals.maxX):t.globals.isBarHorizontal&&(i=this.ctx.timeScale.calculateTimeScaleTicks(t.globals.minY,t.globals.maxY)),this.ctx.timeScale.recalcDimensionsBasedOnFormat(i)}e=new U(this.ctx).getCalculatedRatios()}return e}},{key:"updateSourceChart",value:function(e){this.ctx.w.globals.selection=void 0,this.ctx.updateHelpers._updateOptions({chart:{selection:{xaxis:{min:e.w.globals.minX,max:e.w.globals.maxX}}}},!1,!1)}},{key:"setupBrushHandler",value:function(){var e=this,t=this.w;if(t.config.chart.brush.enabled&&typeof t.config.chart.events.selection!="function"){var i=t.config.chart.brush.targets||[t.config.chart.brush.target];i.forEach(function(a){var s=ApexCharts.getChartByID(a);s.w.globals.brushSource=e.ctx,typeof s.w.config.chart.events.zoomed!="function"&&(s.w.config.chart.events.zoomed=function(){e.updateSourceChart(s)}),typeof s.w.config.chart.events.scrolled!="function"&&(s.w.config.chart.events.scrolled=function(){e.updateSourceChart(s)})}),t.config.chart.events.selection=function(a,s){i.forEach(function(n){var r=ApexCharts.getChartByID(n),o=L.clone(t.config.yaxis);if(t.config.chart.brush.autoScaleYaxis&&r.w.globals.series.length===1){var h=new xe(r);o=h.autoScaleY(r,o,s)}var c=r.w.config.yaxis.reduce(function(d,g,p){return[].concat(j(d),[z(z({},r.w.config.yaxis[p]),{},{min:o[0].min,max:o[0].max})])},[]);r.ctx.updateHelpers._updateOptions({xaxis:{min:s.xaxis.min,max:s.xaxis.max},yaxis:c},!1,!1,!1,!1)})}}}}]),v}(),ea=function(){function v(e){O(this,v),this.ctx=e,this.w=e.w}return E(v,[{key:"_updateOptions",value:function(e){var t=this,i=arguments.length>1&&arguments[1]!==void 0&&arguments[1],a=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],s=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3],n=arguments.length>4&&arguments[4]!==void 0&&arguments[4];return new Promise(function(r){var o=[t.ctx];s&&(o=t.ctx.getSyncedCharts()),t.ctx.w.globals.isExecCalled&&(o=[t.ctx],t.ctx.w.globals.isExecCalled=!1),o.forEach(function(h,c){var d=h.w;if(d.globals.shouldAnimate=a,i||(d.globals.resized=!0,d.globals.dataChanged=!0,a&&h.series.getPreviousPaths()),e&&_(e)==="object"&&(h.config=new we(e),e=U.extendArrayProps(h.config,e,d),h.w.globals.chartID!==t.ctx.w.globals.chartID&&delete e.series,d.config=L.extend(d.config,e),n&&(d.globals.lastXAxis=e.xaxis?L.clone(e.xaxis):[],d.globals.lastYAxis=e.yaxis?L.clone(e.yaxis):[],d.globals.initialConfig=L.extend({},d.config),d.globals.initialSeries=L.clone(d.config.series),e.series))){for(var g=0;g2&&arguments[2]!==void 0&&arguments[2];return new Promise(function(s){var n,r=i.w;return r.globals.shouldAnimate=t,r.globals.dataChanged=!0,t&&i.ctx.series.getPreviousPaths(),r.globals.axisCharts?((n=e.map(function(o,h){return i._extendSeries(o,h)})).length===0&&(n=[{data:[]}]),r.config.series=n):r.config.series=e.slice(),a&&(r.globals.initialConfig.series=L.clone(r.config.series),r.globals.initialSeries=L.clone(r.config.series)),i.ctx.update().then(function(){s(i.ctx)})})}},{key:"_extendSeries",value:function(e,t){var i=this.w,a=i.config.series[t];return z(z({},i.config.series[t]),{},{name:e.name?e.name:a&&a.name,color:e.color?e.color:a&&a.color,type:e.type?e.type:a&&a.type,data:e.data?e.data:a&&a.data})}},{key:"toggleDataPointSelection",value:function(e,t){var i=this.w,a=null,s=".apexcharts-series[data\\:realIndex='".concat(e,"']");return i.globals.axisCharts?a=i.globals.dom.Paper.select("".concat(s," path[j='").concat(t,"'], ").concat(s," circle[j='").concat(t,"'], ").concat(s," rect[j='").concat(t,"']")).members[0]:t===void 0&&(a=i.globals.dom.Paper.select("".concat(s," path[j='").concat(e,"']")).members[0],i.config.chart.type!=="pie"&&i.config.chart.type!=="polarArea"&&i.config.chart.type!=="donut"||this.ctx.pie.pieClicked(e)),a?(new Y(this.ctx).pathMouseDown(a,null),a.node?a.node:null):(console.warn("toggleDataPointSelection: Element not found"),null)}},{key:"forceXAxisUpdate",value:function(e){var t=this.w;if(["min","max"].forEach(function(a){e.xaxis[a]!==void 0&&(t.config.xaxis[a]=e.xaxis[a],t.globals.lastXAxis[a]=e.xaxis[a])}),e.xaxis.categories&&e.xaxis.categories.length&&(t.config.xaxis.categories=e.xaxis.categories),t.config.xaxis.convertedCatToNumeric){var i=new ye(e);e=i.convertCatToNumericXaxis(e,this.ctx)}return e}},{key:"forceYAxisUpdate",value:function(e){return e.chart&&e.chart.stacked&&e.chart.stackType==="100%"&&(Array.isArray(e.yaxis)?e.yaxis.forEach(function(t,i){e.yaxis[i].min=0,e.yaxis[i].max=100}):(e.yaxis.min=0,e.yaxis.max=100)),e}},{key:"revertDefaultAxisMinMax",value:function(e){var t=this,i=this.w,a=i.globals.lastXAxis,s=i.globals.lastYAxis;e&&e.xaxis&&(a=e.xaxis),e&&e.yaxis&&(s=e.yaxis),i.config.xaxis.min=a.min,i.config.xaxis.max=a.max;var n=function(r){s[r]!==void 0&&(i.config.yaxis[r].min=s[r].min,i.config.yaxis[r].max=s[r].max)};i.config.yaxis.map(function(r,o){i.globals.zoomed||s[o]!==void 0?n(o):t.ctx.opts.yaxis[o]!==void 0&&(r.min=t.ctx.opts.yaxis[o].min,r.max=t.ctx.opts.yaxis[o].max)})}}]),v}();de=typeof window<"u"?window:void 0,Te=function(v,e){var t=(this!==void 0?this:v).SVG=function(l){if(t.supported)return l=new t.Doc(l),t.parser.draw||t.prepare(),l};if(t.ns="http://www.w3.org/2000/svg",t.xmlns="http://www.w3.org/2000/xmlns/",t.xlink="http://www.w3.org/1999/xlink",t.svgjs="http://svgjs.dev",t.supported=!0,!t.supported)return!1;t.did=1e3,t.eid=function(l){return"Svgjs"+c(l)+t.did++},t.create=function(l){var u=e.createElementNS(this.ns,l);return u.setAttribute("id",this.eid(l)),u},t.extend=function(){var l,u;u=(l=[].slice.call(arguments)).pop();for(var m=l.length-1;m>=0;m--)if(l[m])for(var b in u)l[m].prototype[b]=u[b];t.Set&&t.Set.inherit&&t.Set.inherit()},t.invent=function(l){var u=typeof l.create=="function"?l.create:function(){this.constructor.call(this,t.create(l.create))};return l.inherit&&(u.prototype=new l.inherit),l.extend&&t.extend(u,l.extend),l.construct&&t.extend(l.parent||t.Container,l.construct),u},t.adopt=function(l){return l?l.instance?l.instance:((u=l.nodeName=="svg"?l.parentNode instanceof v.SVGElement?new t.Nested:new t.Doc:l.nodeName=="linearGradient"?new t.Gradient("linear"):l.nodeName=="radialGradient"?new t.Gradient("radial"):t[c(l.nodeName)]?new t[c(l.nodeName)]:new t.Element(l)).type=l.nodeName,u.node=l,l.instance=u,u instanceof t.Doc&&u.namespace().defs(),u.setData(JSON.parse(l.getAttribute("svgjs:data"))||{}),u):null;var u},t.prepare=function(){var l=e.getElementsByTagName("body")[0],u=(l?new t.Doc(l):t.adopt(e.documentElement).nested()).size(2,0);t.parser={body:l||e.documentElement,draw:u.style("opacity:0;position:absolute;left:-100%;top:-100%;overflow:hidden").node,poly:u.polyline().node,path:u.path().node,native:t.create("svg")}},t.parser={native:t.create("svg")},e.addEventListener("DOMContentLoaded",function(){t.parser.draw||t.prepare()},!1),t.regex={numberAndUnit:/^([+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?)([a-z%]*)$/i,hex:/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,rgb:/rgb\((\d+),(\d+),(\d+)\)/,reference:/#([a-z0-9\-_]+)/i,transforms:/\)\s*,?\s*/,whitespace:/\s/g,isHex:/^#[a-f0-9]{3,6}$/i,isRgb:/^rgb\(/,isCss:/[^:]+:[^;]+;?/,isBlank:/^(\s+)?$/,isNumber:/^[+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,isPercent:/^-?[\d\.]+%$/,isImage:/\.(jpg|jpeg|png|gif|svg)(\?[^=]+.*)?/i,delimiter:/[\s,]+/,hyphen:/([^e])\-/gi,pathLetters:/[MLHVCSQTAZ]/gi,isPathLetter:/[MLHVCSQTAZ]/i,numbersWithDots:/((\d?\.\d+(?:e[+-]?\d+)?)((?:\.\d+(?:e[+-]?\d+)?)+))+/gi,dots:/\./g},t.utils={map:function(l,u){for(var m=l.length,b=[],A=0;A1?1:l,new t.Color({r:~~(this.r+(this.destination.r-this.r)*l),g:~~(this.g+(this.destination.g-this.g)*l),b:~~(this.b+(this.destination.b-this.b)*l)})):this}}),t.Color.test=function(l){return l+="",t.regex.isHex.test(l)||t.regex.isRgb.test(l)},t.Color.isRgb=function(l){return l&&typeof l.r=="number"&&typeof l.g=="number"&&typeof l.b=="number"},t.Color.isColor=function(l){return t.Color.isRgb(l)||t.Color.test(l)},t.Array=function(l,u){(l=(l||[]).valueOf()).length==0&&u&&(l=u.valueOf()),this.value=this.parse(l)},t.extend(t.Array,{toString:function(){return this.value.join(" ")},valueOf:function(){return this.value},parse:function(l){return l=l.valueOf(),Array.isArray(l)?l:this.split(l)}}),t.PointArray=function(l,u){t.Array.call(this,l,u||[[0,0]])},t.PointArray.prototype=new t.Array,t.PointArray.prototype.constructor=t.PointArray;for(var i={M:function(l,u,m){return u.x=m.x=l[0],u.y=m.y=l[1],["M",u.x,u.y]},L:function(l,u){return u.x=l[0],u.y=l[1],["L",l[0],l[1]]},H:function(l,u){return u.x=l[0],["H",l[0]]},V:function(l,u){return u.y=l[0],["V",l[0]]},C:function(l,u){return u.x=l[4],u.y=l[5],["C",l[0],l[1],l[2],l[3],l[4],l[5]]},Q:function(l,u){return u.x=l[2],u.y=l[3],["Q",l[0],l[1],l[2],l[3]]},Z:function(l,u,m){return u.x=m.x,u.y=m.y,["Z"]}},a="mlhvqtcsaz".split(""),s=0,n=a.length;sC);return b},bbox:function(){return t.parser.draw||t.prepare(),t.parser.path.setAttribute("d",this.toString()),t.parser.path.getBBox()}}),t.Number=t.invent({create:function(l,u){this.value=0,this.unit=u||"",typeof l=="number"?this.value=isNaN(l)?0:isFinite(l)?l:l<0?-34e37:34e37:typeof l=="string"?(u=l.match(t.regex.numberAndUnit))&&(this.value=parseFloat(u[1]),u[5]=="%"?this.value/=100:u[5]=="s"&&(this.value*=1e3),this.unit=u[5]):l instanceof t.Number&&(this.value=l.valueOf(),this.unit=l.unit)},extend:{toString:function(){return(this.unit=="%"?~~(1e8*this.value)/1e6:this.unit=="s"?this.value/1e3:this.value)+this.unit},toJSON:function(){return this.toString()},valueOf:function(){return this.value},plus:function(l){return l=new t.Number(l),new t.Number(this+l,this.unit||l.unit)},minus:function(l){return l=new t.Number(l),new t.Number(this-l,this.unit||l.unit)},times:function(l){return l=new t.Number(l),new t.Number(this*l,this.unit||l.unit)},divide:function(l){return l=new t.Number(l),new t.Number(this/l,this.unit||l.unit)},to:function(l){var u=new t.Number(this);return typeof l=="string"&&(u.unit=l),u},morph:function(l){return this.destination=new t.Number(l),l.relative&&(this.destination.value+=this.value),this},at:function(l){return this.destination?new t.Number(this.destination).minus(this).times(l).plus(this):this}}}),t.Element=t.invent({create:function(l){this._stroke=t.defaults.attrs.stroke,this._event=null,this.dom={},(this.node=l)&&(this.type=l.nodeName,this.node.instance=this,this._stroke=l.getAttribute("stroke")||this._stroke)},extend:{x:function(l){return this.attr("x",l)},y:function(l){return this.attr("y",l)},cx:function(l){return l==null?this.x()+this.width()/2:this.x(l-this.width()/2)},cy:function(l){return l==null?this.y()+this.height()/2:this.y(l-this.height()/2)},move:function(l,u){return this.x(l).y(u)},center:function(l,u){return this.cx(l).cy(u)},width:function(l){return this.attr("width",l)},height:function(l){return this.attr("height",l)},size:function(l,u){var m=g(this,l,u);return this.width(new t.Number(m.width)).height(new t.Number(m.height))},clone:function(l){this.writeDataToDom();var u=f(this.node.cloneNode(!0));return l?l.add(u):this.after(u),u},remove:function(){return this.parent()&&this.parent().removeElement(this),this},replace:function(l){return this.after(l).remove(),l},addTo:function(l){return l.put(this)},putIn:function(l){return l.add(this)},id:function(l){return this.attr("id",l)},show:function(){return this.style("display","")},hide:function(){return this.style("display","none")},visible:function(){return this.style("display")!="none"},toString:function(){return this.attr("id")},classes:function(){var l=this.attr("class");return l==null?[]:l.trim().split(t.regex.delimiter)},hasClass:function(l){return this.classes().indexOf(l)!=-1},addClass:function(l){if(!this.hasClass(l)){var u=this.classes();u.push(l),this.attr("class",u.join(" "))}return this},removeClass:function(l){return this.hasClass(l)&&this.attr("class",this.classes().filter(function(u){return u!=l}).join(" ")),this},toggleClass:function(l){return this.hasClass(l)?this.removeClass(l):this.addClass(l)},reference:function(l){return t.get(this.attr(l))},parent:function(l){var u=this;if(!u.node.parentNode)return null;if(u=t.adopt(u.node.parentNode),!l)return u;for(;u&&u.node instanceof v.SVGElement;){if(typeof l=="string"?u.matches(l):u instanceof l)return u;if(!u.node.parentNode||u.node.parentNode.nodeName=="#document")return null;u=t.adopt(u.node.parentNode)}},doc:function(){return this instanceof t.Doc?this:this.parent(t.Doc)},parents:function(l){var u=[],m=this;do{if(!(m=m.parent(l))||!m.node)break;u.push(m)}while(m.parent);return u},matches:function(l){return function(u,m){return(u.matches||u.matchesSelector||u.msMatchesSelector||u.mozMatchesSelector||u.webkitMatchesSelector||u.oMatchesSelector).call(u,m)}(this.node,l)},native:function(){return this.node},svg:function(l){var u=e.createElement("svg");if(!(l&&this instanceof t.Parent))return u.appendChild(l=e.createElement("svg")),this.writeDataToDom(),l.appendChild(this.node.cloneNode(!0)),u.innerHTML.replace(/^/,"").replace(/<\/svg>$/,"");u.innerHTML=""+l.replace(/\n/,"").replace(/<([\w:-]+)([^<]+?)\/>/g,"<$1$2>")+"";for(var m=0,b=u.firstChild.childNodes.length;m":function(l){return-Math.cos(l*Math.PI)/2+.5},">":function(l){return Math.sin(l*Math.PI/2)},"<":function(l){return 1-Math.cos(l*Math.PI/2)}},t.morph=function(l){return function(u,m){return new t.MorphObj(u,m).at(l)}},t.Situation=t.invent({create:function(l){this.init=!1,this.reversed=!1,this.reversing=!1,this.duration=new t.Number(l.duration).valueOf(),this.delay=new t.Number(l.delay).valueOf(),this.start=+new Date+this.delay,this.finish=this.start+this.duration,this.ease=l.ease,this.loop=0,this.loops=!1,this.animations={},this.attrs={},this.styles={},this.transforms=[],this.once={}}}),t.FX=t.invent({create:function(l){this._target=l,this.situations=[],this.active=!1,this.situation=null,this.paused=!1,this.lastPos=0,this.pos=0,this.absPos=0,this._speed=1},extend:{animate:function(l,u,m){_(l)==="object"&&(u=l.ease,m=l.delay,l=l.duration);var b=new t.Situation({duration:l||1e3,delay:m||0,ease:t.easing[u||"-"]||u});return this.queue(b),this},target:function(l){return l&&l instanceof t.Element?(this._target=l,this):this._target},timeToAbsPos:function(l){return(l-this.situation.start)/(this.situation.duration/this._speed)},absPosToTime:function(l){return this.situation.duration/this._speed*l+this.situation.start},startAnimFrame:function(){this.stopAnimFrame(),this.animationFrame=v.requestAnimationFrame((function(){this.step()}).bind(this))},stopAnimFrame:function(){v.cancelAnimationFrame(this.animationFrame)},start:function(){return!this.active&&this.situation&&(this.active=!0,this.startCurrent()),this},startCurrent:function(){return this.situation.start=+new Date+this.situation.delay/this._speed,this.situation.finish=this.situation.start+this.situation.duration/this._speed,this.initAnimations().step()},queue:function(l){return(typeof l=="function"||l instanceof t.Situation)&&this.situations.push(l),this.situation||(this.situation=this.situations.shift()),this},dequeue:function(){return this.stop(),this.situation=this.situations.shift(),this.situation&&(this.situation instanceof t.Situation?this.start():this.situation.call(this)),this},initAnimations:function(){var l,u=this.situation;if(u.init)return this;for(var m in u.animations){l=this.target()[m](),Array.isArray(l)||(l=[l]),Array.isArray(u.animations[m])||(u.animations[m]=[u.animations[m]]);for(var b=l.length;b--;)u.animations[m][b]instanceof t.Number&&(l[b]=new t.Number(l[b])),u.animations[m][b]=l[b].morph(u.animations[m][b])}for(var m in u.attrs)u.attrs[m]=new t.MorphObj(this.target().attr(m),u.attrs[m]);for(var m in u.styles)u.styles[m]=new t.MorphObj(this.target().style(m),u.styles[m]);return u.initialTransformation=this.target().matrixify(),u.init=!0,this},clearQueue:function(){return this.situations=[],this},clearCurrent:function(){return this.situation=null,this},stop:function(l,u){var m=this.active;return this.active=!1,u&&this.clearQueue(),l&&this.situation&&(!m&&this.startCurrent(),this.atEnd()),this.stopAnimFrame(),this.clearCurrent()},after:function(l){var u=this.last();return this.target().on("finished.fx",function m(b){b.detail.situation==u&&(l.call(this,u),this.off("finished.fx",m))}),this._callStart()},during:function(l){var u=this.last(),m=function(b){b.detail.situation==u&&l.call(this,b.detail.pos,t.morph(b.detail.pos),b.detail.eased,u)};return this.target().off("during.fx",m).on("during.fx",m),this.after(function(){this.off("during.fx",m)}),this._callStart()},afterAll:function(l){var u=function m(b){l.call(this),this.off("allfinished.fx",m)};return this.target().off("allfinished.fx",u).on("allfinished.fx",u),this._callStart()},last:function(){return this.situations.length?this.situations[this.situations.length-1]:this.situation},add:function(l,u,m){return this.last()[m||"animations"][l]=u,this._callStart()},step:function(l){var u,m,b;l||(this.absPos=this.timeToAbsPos(+new Date)),this.situation.loops!==!1?(u=Math.max(this.absPos,0),m=Math.floor(u),this.situation.loops===!0||mthis.lastPos&&P<=A&&(this.situation.once[P].call(this.target(),this.pos,A),delete this.situation.once[P]);return this.active&&this.target().fire("during",{pos:this.pos,eased:A,fx:this,situation:this.situation}),this.situation?(this.eachAt(),this.pos==1&&!this.situation.reversed||this.situation.reversed&&this.pos==0?(this.stopAnimFrame(),this.target().fire("finished",{fx:this,situation:this.situation}),this.situations.length||(this.target().fire("allfinished"),this.situations.length||(this.target().off(".fx"),this.active=!1)),this.active?this.dequeue():this.clearCurrent()):!this.paused&&this.active&&this.startAnimFrame(),this.lastPos=A,this):this},eachAt:function(){var l,u=this,m=this.target(),b=this.situation;for(var A in b.animations)l=[].concat(b.animations[A]).map(function(I){return typeof I!="string"&&I.at?I.at(b.ease(u.pos),u.pos):I}),m[A].apply(m,l);for(var A in b.attrs)l=[A].concat(b.attrs[A]).map(function(T){return typeof T!="string"&&T.at?T.at(b.ease(u.pos),u.pos):T}),m.attr.apply(m,l);for(var A in b.styles)l=[A].concat(b.styles[A]).map(function(T){return typeof T!="string"&&T.at?T.at(b.ease(u.pos),u.pos):T}),m.style.apply(m,l);if(b.transforms.length){l=b.initialTransformation,A=0;for(var P=b.transforms.length;A=0;--m)this[S[m]]=l[S[m]]!=null?l[S[m]]:u[S[m]]},extend:{extract:function(){var l=p(this,0,1);p(this,1,0);var u=180/Math.PI*Math.atan2(l.y,l.x)-90;return{x:this.e,y:this.f,transformedX:(this.e*Math.cos(u*Math.PI/180)+this.f*Math.sin(u*Math.PI/180))/Math.sqrt(this.a*this.a+this.b*this.b),transformedY:(this.f*Math.cos(u*Math.PI/180)+this.e*Math.sin(-u*Math.PI/180))/Math.sqrt(this.c*this.c+this.d*this.d),rotation:u,a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f,matrix:new t.Matrix(this)}},clone:function(){return new t.Matrix(this)},morph:function(l){return this.destination=new t.Matrix(l),this},multiply:function(l){return new t.Matrix(this.native().multiply(function(u){return u instanceof t.Matrix||(u=new t.Matrix(u)),u}(l).native()))},inverse:function(){return new t.Matrix(this.native().inverse())},translate:function(l,u){return new t.Matrix(this.native().translate(l||0,u||0))},native:function(){for(var l=t.parser.native.createSVGMatrix(),u=S.length-1;u>=0;u--)l[S[u]]=this[S[u]];return l},toString:function(){return"matrix("+w(this.a)+","+w(this.b)+","+w(this.c)+","+w(this.d)+","+w(this.e)+","+w(this.f)+")"}},parent:t.Element,construct:{ctm:function(){return new t.Matrix(this.node.getCTM())},screenCTM:function(){if(this instanceof t.Nested){var l=this.rect(1,1),u=l.node.getScreenCTM();return l.remove(),new t.Matrix(u)}return new t.Matrix(this.node.getScreenCTM())}}}),t.Point=t.invent({create:function(l,u){var m;m=Array.isArray(l)?{x:l[0],y:l[1]}:_(l)==="object"?{x:l.x,y:l.y}:l!=null?{x:l,y:u??l}:{x:0,y:0},this.x=m.x,this.y=m.y},extend:{clone:function(){return new t.Point(this)},morph:function(l,u){return this.destination=new t.Point(l,u),this}}}),t.extend(t.Element,{point:function(l,u){return new t.Point(l,u).transform(this.screenCTM().inverse())}}),t.extend(t.Element,{attr:function(l,u,m){if(l==null){for(l={},m=(u=this.node.attributes).length-1;m>=0;m--)l[u[m].nodeName]=t.regex.isNumber.test(u[m].nodeValue)?parseFloat(u[m].nodeValue):u[m].nodeValue;return l}if(_(l)==="object")for(var b in l)this.attr(b,l[b]);else if(u===null)this.node.removeAttribute(l);else{if(u==null)return(u=this.node.getAttribute(l))==null?t.defaults.attrs[l]:t.regex.isNumber.test(u)?parseFloat(u):u;l=="stroke-width"?this.attr("stroke",parseFloat(u)>0?this._stroke:null):l=="stroke"&&(this._stroke=u),l!="fill"&&l!="stroke"||(t.regex.isImage.test(u)&&(u=this.doc().defs().image(u,0,0)),u instanceof t.Image&&(u=this.doc().defs().pattern(0,0,function(){this.add(u)}))),typeof u=="number"?u=new t.Number(u):t.Color.isColor(u)?u=new t.Color(u):Array.isArray(u)&&(u=new t.Array(u)),l=="leading"?this.leading&&this.leading(u):typeof m=="string"?this.node.setAttributeNS(m,l,u.toString()):this.node.setAttribute(l,u.toString()),!this.rebuild||l!="font-size"&&l!="x"||this.rebuild(l,u)}return this}}),t.extend(t.Element,{transform:function(l,u){var m;return _(l)!=="object"?(m=new t.Matrix(this).extract(),typeof l=="string"?m[l]:m):(m=new t.Matrix(this),u=!!u||!!l.relative,l.a!=null&&(m=u?m.multiply(new t.Matrix(l)):new t.Matrix(l)),this.attr("transform",m))}}),t.extend(t.Element,{untransform:function(){return this.attr("transform",null)},matrixify:function(){return(this.attr("transform")||"").split(t.regex.transforms).slice(0,-1).map(function(l){var u=l.trim().split("(");return[u[0],u[1].split(t.regex.delimiter).map(function(m){return parseFloat(m)})]}).reduce(function(l,u){return u[0]=="matrix"?l.multiply(x(u[1])):l[u[0]].apply(l,u[1])},new t.Matrix)},toParent:function(l){if(this==l)return this;var u=this.screenCTM(),m=l.screenCTM().inverse();return this.addTo(l).untransform().transform(m.multiply(u)),this},toDoc:function(){return this.toParent(this.doc())}}),t.Transformation=t.invent({create:function(l,u){if(arguments.length>1&&typeof u!="boolean")return this.constructor.call(this,[].slice.call(arguments));if(Array.isArray(l))for(var m=0,b=this.arguments.length;m=0},index:function(l){return[].slice.call(this.node.childNodes).indexOf(l.node)},get:function(l){return t.adopt(this.node.childNodes[l])},first:function(){return this.get(0)},last:function(){return this.get(this.node.childNodes.length-1)},each:function(l,u){for(var m=this.children(),b=0,A=m.length;b=0;u--)l.childNodes[u]instanceof v.SVGElement&&f(l.childNodes[u]);return t.adopt(l).id(t.eid(l.nodeName))}function y(l){return l.x==null&&(l.x=0,l.y=0,l.width=0,l.height=0),l.w=l.width,l.h=l.height,l.x2=l.x+l.width,l.y2=l.y+l.height,l.cx=l.x+l.width/2,l.cy=l.y+l.height/2,l}function w(l){return Math.abs(l)>1e-37?l:0}["fill","stroke"].forEach(function(l){var u={};u[l]=function(m){if(m===void 0)return this;if(typeof m=="string"||t.Color.isRgb(m)||m&&typeof m.fill=="function")this.attr(l,m);else for(var b=r[l].length-1;b>=0;b--)m[r[l][b]]!=null&&this.attr(r.prefix(l,r[l][b]),m[r[l][b]]);return this},t.extend(t.Element,t.FX,u)}),t.extend(t.Element,t.FX,{translate:function(l,u){return this.transform({x:l,y:u})},matrix:function(l){return this.attr("transform",new t.Matrix(arguments.length==6?[].slice.call(arguments):l))},opacity:function(l){return this.attr("opacity",l)},dx:function(l){return this.x(new t.Number(l).plus(this instanceof t.FX?0:this.x()),!0)},dy:function(l){return this.y(new t.Number(l).plus(this instanceof t.FX?0:this.y()),!0)}}),t.extend(t.Path,{length:function(){return this.node.getTotalLength()},pointAt:function(l){return this.node.getPointAtLength(l)}}),t.Set=t.invent({create:function(l){Array.isArray(l)?this.members=l:this.clear()},extend:{add:function(){for(var l=[].slice.call(arguments),u=0,m=l.length;u-1&&this.members.splice(u,1),this},each:function(l){for(var u=0,m=this.members.length;u=0},index:function(l){return this.members.indexOf(l)},get:function(l){return this.members[l]},first:function(){return this.get(0)},last:function(){return this.get(this.members.length-1)},valueOf:function(){return this.members}},construct:{set:function(l){return new t.Set(l)}}}),t.FX.Set=t.invent({create:function(l){this.set=l}}),t.Set.inherit=function(){var l=[];for(var u in t.Shape.prototype)typeof t.Shape.prototype[u]=="function"&&typeof t.Set.prototype[u]!="function"&&l.push(u);for(var u in l.forEach(function(b){t.Set.prototype[b]=function(){for(var A=0,P=this.members.length;A=0;l--)delete this.memory()[arguments[l]];return this},memory:function(){return this._memory||(this._memory={})}}),t.get=function(l){var u=e.getElementById(function(m){var b=(m||"").toString().match(t.regex.reference);if(b)return b[1]}(l)||l);return t.adopt(u)},t.select=function(l,u){return new t.Set(t.utils.map((u||e).querySelectorAll(l),function(m){return t.adopt(m)}))},t.extend(t.Parent,{select:function(l){return t.select(l,this.node)}});var S="abcdef".split("");if(typeof v.CustomEvent!="function"){var k=function(l,u){u=u||{bubbles:!1,cancelable:!1,detail:void 0};var m=e.createEvent("CustomEvent");return m.initCustomEvent(l,u.bubbles,u.cancelable,u.detail),m};k.prototype=v.Event.prototype,t.CustomEvent=k}else t.CustomEvent=v.CustomEvent;return t},G(X)==="object"?F.exports=ue.document?Te(ue,ue.document):function(v){return Te(v,v.document)}:ue.SVG=Te(ue,ue.document),(function(){SVG.Filter=SVG.invent({create:"filter",inherit:SVG.Parent,extend:{source:"SourceGraphic",sourceAlpha:"SourceAlpha",background:"BackgroundImage",backgroundAlpha:"BackgroundAlpha",fill:"FillPaint",stroke:"StrokePaint",autoSetIn:!0,put:function(r,o){return this.add(r,o),!r.attr("in")&&this.autoSetIn&&r.attr("in",this.source),r.attr("result")||r.attr("result",r),r},blend:function(r,o,h){return this.put(new SVG.BlendEffect(r,o,h))},colorMatrix:function(r,o){return this.put(new SVG.ColorMatrixEffect(r,o))},convolveMatrix:function(r){return this.put(new SVG.ConvolveMatrixEffect(r))},componentTransfer:function(r){return this.put(new SVG.ComponentTransferEffect(r))},composite:function(r,o,h){return this.put(new SVG.CompositeEffect(r,o,h))},flood:function(r,o){return this.put(new SVG.FloodEffect(r,o))},offset:function(r,o){return this.put(new SVG.OffsetEffect(r,o))},image:function(r){return this.put(new SVG.ImageEffect(r))},merge:function(){var r=[void 0];for(var o in arguments)r.push(arguments[o]);return this.put(new(SVG.MergeEffect.bind.apply(SVG.MergeEffect,r)))},gaussianBlur:function(r,o){return this.put(new SVG.GaussianBlurEffect(r,o))},morphology:function(r,o){return this.put(new SVG.MorphologyEffect(r,o))},diffuseLighting:function(r,o,h){return this.put(new SVG.DiffuseLightingEffect(r,o,h))},displacementMap:function(r,o,h,c,d){return this.put(new SVG.DisplacementMapEffect(r,o,h,c,d))},specularLighting:function(r,o,h,c){return this.put(new SVG.SpecularLightingEffect(r,o,h,c))},tile:function(){return this.put(new SVG.TileEffect)},turbulence:function(r,o,h,c,d){return this.put(new SVG.TurbulenceEffect(r,o,h,c,d))},toString:function(){return"url(#"+this.attr("id")+")"}}}),SVG.extend(SVG.Defs,{filter:function(r){var o=this.put(new SVG.Filter);return typeof r=="function"&&r.call(o,o),o}}),SVG.extend(SVG.Container,{filter:function(r){return this.defs().filter(r)}}),SVG.extend(SVG.Element,SVG.G,SVG.Nested,{filter:function(r){return this.filterer=r instanceof SVG.Element?r:this.doc().filter(r),this.doc()&&this.filterer.doc()!==this.doc()&&this.doc().defs().add(this.filterer),this.attr("filter",this.filterer),this.filterer},unfilter:function(r){return this.filterer&&r===!0&&this.filterer.remove(),delete this.filterer,this.attr("filter",null)}}),SVG.Effect=SVG.invent({create:function(){this.constructor.call(this)},inherit:SVG.Element,extend:{in:function(r){return r==null?this.parent()&&this.parent().select('[result="'+this.attr("in")+'"]').get(0)||this.attr("in"):this.attr("in",r)},result:function(r){return r==null?this.attr("result"):this.attr("result",r)},toString:function(){return this.result()}}}),SVG.ParentEffect=SVG.invent({create:function(){this.constructor.call(this)},inherit:SVG.Parent,extend:{in:function(r){return r==null?this.parent()&&this.parent().select('[result="'+this.attr("in")+'"]').get(0)||this.attr("in"):this.attr("in",r)},result:function(r){return r==null?this.attr("result"):this.attr("result",r)},toString:function(){return this.result()}}});var v={blend:function(r,o){return this.parent()&&this.parent().blend(this,r,o)},colorMatrix:function(r,o){return this.parent()&&this.parent().colorMatrix(r,o).in(this)},convolveMatrix:function(r){return this.parent()&&this.parent().convolveMatrix(r).in(this)},componentTransfer:function(r){return this.parent()&&this.parent().componentTransfer(r).in(this)},composite:function(r,o){return this.parent()&&this.parent().composite(this,r,o)},flood:function(r,o){return this.parent()&&this.parent().flood(r,o)},offset:function(r,o){return this.parent()&&this.parent().offset(r,o).in(this)},image:function(r){return this.parent()&&this.parent().image(r)},merge:function(){return this.parent()&&this.parent().merge.apply(this.parent(),[this].concat(arguments))},gaussianBlur:function(r,o){return this.parent()&&this.parent().gaussianBlur(r,o).in(this)},morphology:function(r,o){return this.parent()&&this.parent().morphology(r,o).in(this)},diffuseLighting:function(r,o,h){return this.parent()&&this.parent().diffuseLighting(r,o,h).in(this)},displacementMap:function(r,o,h,c){return this.parent()&&this.parent().displacementMap(this,r,o,h,c)},specularLighting:function(r,o,h,c){return this.parent()&&this.parent().specularLighting(r,o,h,c).in(this)},tile:function(){return this.parent()&&this.parent().tile().in(this)},turbulence:function(r,o,h,c,d){return this.parent()&&this.parent().turbulence(r,o,h,c,d).in(this)}};SVG.extend(SVG.Effect,v),SVG.extend(SVG.ParentEffect,v),SVG.ChildEffect=SVG.invent({create:function(){this.constructor.call(this)},inherit:SVG.Element,extend:{in:function(r){this.attr("in",r)}}});var e={blend:function(r,o,h){this.attr({in:r,in2:o,mode:h||"normal"})},colorMatrix:function(r,o){r=="matrix"&&(o=a(o)),this.attr({type:r,values:o===void 0?null:o})},convolveMatrix:function(r){r=a(r),this.attr({order:Math.sqrt(r.split(" ").length),kernelMatrix:r})},composite:function(r,o,h){this.attr({in:r,in2:o,operator:h})},flood:function(r,o){this.attr("flood-color",r),o!=null&&this.attr("flood-opacity",o)},offset:function(r,o){this.attr({dx:r,dy:o})},image:function(r){this.attr("href",r,SVG.xlink)},displacementMap:function(r,o,h,c,d){this.attr({in:r,in2:o,scale:h,xChannelSelector:c,yChannelSelector:d})},gaussianBlur:function(r,o){r!=null||o!=null?this.attr("stdDeviation",s(Array.prototype.slice.call(arguments))):this.attr("stdDeviation","0 0")},morphology:function(r,o){this.attr({operator:r,radius:o})},tile:function(){},turbulence:function(r,o,h,c,d){this.attr({numOctaves:o,seed:h,stitchTiles:c,baseFrequency:r,type:d})}},t={merge:function(){var r;if(arguments[0]instanceof SVG.Set){var o=this;arguments[0].each(function(c){this instanceof SVG.MergeNode?o.put(this):(this instanceof SVG.Effect||this instanceof SVG.ParentEffect)&&o.put(new SVG.MergeNode(this))})}else{r=Array.isArray(arguments[0])?arguments[0]:arguments;for(var h=0;h1&&(J*=c=Math.sqrt(c),Z*=c),d=new SVG.Matrix().rotate(ie).scale(1/J,1/Z).rotate(-ie),ae=ae.transform(d),te=te.transform(d),g=[te.x-ae.x,te.y-ae.y],x=g[0]*g[0]+g[1]*g[1],p=Math.sqrt(x),g[0]/=p,g[1]/=p,f=x<4?Math.sqrt(1-x/4):0,Ee===Se&&(f*=-1),y=new SVG.Point((te.x+ae.x)/2+f*-g[1],(te.y+ae.y)/2+f*g[0]),w=new SVG.Point(ae.x-y.x,ae.y-y.y),S=new SVG.Point(te.x-y.x,te.y-y.y),k=Math.acos(w.x/Math.sqrt(w.x*w.x+w.y*w.y)),w.y<0&&(k*=-1),l=Math.acos(S.x/Math.sqrt(S.x*S.x+S.y*S.y)),S.y<0&&(l*=-1),Se&&k>l&&(l+=2*Math.PI),!Se&&kn.maxX-t.width&&(r=(a=n.maxX-t.width)-this.startPoints.box.x),n.minY!=null&&sn.maxY-t.height&&(o=(s=n.maxY-t.height)-this.startPoints.box.y),n.snapToGrid!=null&&(a-=a%n.snapToGrid,s-=s%n.snapToGrid,r-=r%n.snapToGrid,o-=o%n.snapToGrid),this.el instanceof SVG.G?this.el.matrix(this.startPoints.transform).transform({x:r,y:o},!0):this.el.move(a,s));return i},v.prototype.end=function(e){var t=this.drag(e);this.el.fire("dragend",{event:e,p:t,m:this.m,handler:this}),SVG.off(window,"mousemove.drag"),SVG.off(window,"touchmove.drag"),SVG.off(window,"mouseup.drag"),SVG.off(window,"touchend.drag")},SVG.extend(SVG.Element,{draggable:function(e,t){typeof e!="function"&&typeof e!="object"||(t=e,e=!0);var i=this.remember("_draggable")||new v(this);return(e=e===void 0||e)?i.init(t||{},e):(this.off("mousedown.drag"),this.off("touchstart.drag")),this}})}).call(void 0),function(){function v(e){this.el=e,e.remember("_selectHandler",this),this.pointSelection={isSelected:!1},this.rectSelection={isSelected:!1},this.pointsList={lt:[0,0],rt:["width",0],rb:["width","height"],lb:[0,"height"],t:["width",0],r:["width","height"],b:["width","height"],l:[0,"height"]},this.pointCoord=function(t,i,a){var s=typeof t!="string"?t:i[t];return a?s/2:s},this.pointCoords=function(t,i){var a=this.pointsList[t];return{x:this.pointCoord(a[0],i,t==="t"||t==="b"),y:this.pointCoord(a[1],i,t==="r"||t==="l")}}}v.prototype.init=function(e,t){var i=this.el.bbox();this.options={};var a=this.el.selectize.defaults.points;for(var s in this.el.selectize.defaults)this.options[s]=this.el.selectize.defaults[s],t[s]!==void 0&&(this.options[s]=t[s]);var n=["points","pointsExclude"];for(var s in n){var r=this.options[n[s]];typeof r=="string"?r=r.length>0?r.split(/\s*,\s*/i):[]:typeof r=="boolean"&&n[s]==="points"&&(r=r?a:[]),this.options[n[s]]=r}this.options.points=[a,this.options.points].reduce(function(o,h){return o.filter(function(c){return h.indexOf(c)>-1})}),this.options.points=[this.options.points,this.options.pointsExclude].reduce(function(o,h){return o.filter(function(c){return h.indexOf(c)<0})}),this.parent=this.el.parent(),this.nested=this.nested||this.parent.group(),this.nested.matrix(new SVG.Matrix(this.el).translate(i.x,i.y)),this.options.deepSelect&&["line","polyline","polygon"].indexOf(this.el.type)!==-1?this.selectPoints(e):this.selectRect(e),this.observe(),this.cleanup()},v.prototype.selectPoints=function(e){return this.pointSelection.isSelected=e,this.pointSelection.set||(this.pointSelection.set=this.parent.set(),this.drawPoints()),this},v.prototype.getPointArray=function(){var e=this.el.bbox();return this.el.array().valueOf().map(function(t){return[t[0]-e.x,t[1]-e.y]})},v.prototype.drawPoints=function(){for(var e=this,t=this.getPointArray(),i=0,a=t.length;i0&&this.parameters.box.height-r[1]>0){if(this.parameters.type==="text")return this.el.move(this.parameters.box.x+r[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize-r[0]);r=this.checkAspectRatio(r),this.el.move(this.parameters.box.x+r[0],this.parameters.box.y+r[1]).size(this.parameters.box.width-r[0],this.parameters.box.height-r[1])}};break;case"rt":this.calc=function(s,n){var r=this.snapToGrid(s,n,2);if(this.parameters.box.width+r[0]>0&&this.parameters.box.height-r[1]>0){if(this.parameters.type==="text")return this.el.move(this.parameters.box.x-r[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize+r[0]);r=this.checkAspectRatio(r,!0),this.el.move(this.parameters.box.x,this.parameters.box.y+r[1]).size(this.parameters.box.width+r[0],this.parameters.box.height-r[1])}};break;case"rb":this.calc=function(s,n){var r=this.snapToGrid(s,n,0);if(this.parameters.box.width+r[0]>0&&this.parameters.box.height+r[1]>0){if(this.parameters.type==="text")return this.el.move(this.parameters.box.x-r[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize+r[0]);r=this.checkAspectRatio(r),this.el.move(this.parameters.box.x,this.parameters.box.y).size(this.parameters.box.width+r[0],this.parameters.box.height+r[1])}};break;case"lb":this.calc=function(s,n){var r=this.snapToGrid(s,n,1);if(this.parameters.box.width-r[0]>0&&this.parameters.box.height+r[1]>0){if(this.parameters.type==="text")return this.el.move(this.parameters.box.x+r[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize-r[0]);r=this.checkAspectRatio(r,!0),this.el.move(this.parameters.box.x+r[0],this.parameters.box.y).size(this.parameters.box.width-r[0],this.parameters.box.height+r[1])}};break;case"t":this.calc=function(s,n){var r=this.snapToGrid(s,n,2);if(this.parameters.box.height-r[1]>0){if(this.parameters.type==="text")return;this.el.move(this.parameters.box.x,this.parameters.box.y+r[1]).height(this.parameters.box.height-r[1])}};break;case"r":this.calc=function(s,n){var r=this.snapToGrid(s,n,0);if(this.parameters.box.width+r[0]>0){if(this.parameters.type==="text")return;this.el.move(this.parameters.box.x,this.parameters.box.y).width(this.parameters.box.width+r[0])}};break;case"b":this.calc=function(s,n){var r=this.snapToGrid(s,n,0);if(this.parameters.box.height+r[1]>0){if(this.parameters.type==="text")return;this.el.move(this.parameters.box.x,this.parameters.box.y).height(this.parameters.box.height+r[1])}};break;case"l":this.calc=function(s,n){var r=this.snapToGrid(s,n,1);if(this.parameters.box.width-r[0]>0){if(this.parameters.type==="text")return;this.el.move(this.parameters.box.x+r[0],this.parameters.box.y).width(this.parameters.box.width-r[0])}};break;case"rot":this.calc=function(s,n){var r=s+this.parameters.p.x,o=n+this.parameters.p.y,h=Math.atan2(this.parameters.p.y-this.parameters.box.y-this.parameters.box.height/2,this.parameters.p.x-this.parameters.box.x-this.parameters.box.width/2),c=Math.atan2(o-this.parameters.box.y-this.parameters.box.height/2,r-this.parameters.box.x-this.parameters.box.width/2),d=this.parameters.rotation+180*(c-h)/Math.PI+this.options.snapToAngle/2;this.el.center(this.parameters.box.cx,this.parameters.box.cy).rotate(d-d%this.options.snapToAngle,this.parameters.box.cx,this.parameters.box.cy)};break;case"point":this.calc=function(s,n){var r=this.snapToGrid(s,n,this.parameters.pointCoords[0],this.parameters.pointCoords[1]),o=this.el.array().valueOf();o[this.parameters.i][0]=this.parameters.pointCoords[0]+r[0],o[this.parameters.i][1]=this.parameters.pointCoords[1]+r[1],this.el.plot(o)}}this.el.fire("resizestart",{dx:this.parameters.x,dy:this.parameters.y,event:e}),SVG.on(window,"touchmove.resize",function(s){t.update(s||window.event)}),SVG.on(window,"touchend.resize",function(){t.done()}),SVG.on(window,"mousemove.resize",function(s){t.update(s||window.event)}),SVG.on(window,"mouseup.resize",function(){t.done()})},v.prototype.update=function(e){if(e){var t=this._extractPosition(e),i=this.transformPoint(t.x,t.y),a=i.x-this.parameters.p.x,s=i.y-this.parameters.p.y;this.lastUpdateCall=[a,s],this.calc(a,s),this.el.fire("resizing",{dx:a,dy:s,event:e})}else this.lastUpdateCall&&this.calc(this.lastUpdateCall[0],this.lastUpdateCall[1])},v.prototype.done=function(){this.lastUpdateCall=null,SVG.off(window,"mousemove.resize"),SVG.off(window,"mouseup.resize"),SVG.off(window,"touchmove.resize"),SVG.off(window,"touchend.resize"),this.el.fire("resizedone")},v.prototype.snapToGrid=function(e,t,i,a){var s;return a!==void 0?s=[(i+e)%this.options.snapToGrid,(a+t)%this.options.snapToGrid]:(i=i??3,s=[(this.parameters.box.x+e+(1&i?0:this.parameters.box.width))%this.options.snapToGrid,(this.parameters.box.y+t+(2&i?0:this.parameters.box.height))%this.options.snapToGrid]),e<0&&(s[0]-=this.options.snapToGrid),t<0&&(s[1]-=this.options.snapToGrid),e-=Math.abs(s[0])r.maxX&&(e=r.maxX-s),r.minY!==void 0&&n+tr.maxY&&(t=r.maxY-n),[e,t]},v.prototype.checkAspectRatio=function(e,t){if(!this.options.saveAspectRatio)return e;var i=e.slice(),a=this.parameters.box.width/this.parameters.box.height,s=this.parameters.box.width+e[0],n=this.parameters.box.height-e[1],r=s/n;return ra&&(i[0]=this.parameters.box.width-n*a,t&&(i[0]=-i[0])),i},SVG.extend(SVG.Element,{resize:function(e){return(this.remember("_resizeHandler")||new v(this)).init(e||{}),this}}),SVG.Element.prototype.resize.defaults={snapToAngle:.1,snapToGrid:1,constraint:{},saveAspectRatio:!1}}).call(this)}(),window.Apex===void 0&&(window.Apex={});var rt=function(){function v(e){O(this,v),this.ctx=e,this.w=e.w}return I(v,[{key:"initModules",value:function(){this.ctx.publicMethods=["updateOptions","updateSeries","appendData","appendSeries","toggleSeries","showSeries","hideSeries","setLocale","resetSeries","zoomX","toggleDataPointSelection","dataURI","exportToCSV","addXaxisAnnotation","addYaxisAnnotation","addPointAnnotation","clearAnnotations","removeAnnotation","paper","destroy"],this.ctx.eventList=["click","mousedown","mousemove","mouseleave","touchstart","touchmove","touchleave","mouseup","touchend"],this.ctx.animations=new fe(this.ctx),this.ctx.axes=new Ti(this.ctx),this.ctx.core=new Ki(this.ctx.el,this.ctx),this.ctx.config=new we({}),this.ctx.data=new $e(this.ctx),this.ctx.grid=new qe(this.ctx),this.ctx.graphics=new Y(this.ctx),this.ctx.coreUtils=new q(this.ctx),this.ctx.crosshairs=new Re(this.ctx),this.ctx.events=new Li(this.ctx),this.ctx.exports=new Le(this.ctx),this.ctx.localization=new Mi(this.ctx),this.ctx.options=new de,this.ctx.responsive=new Ei(this.ctx),this.ctx.series=new re(this.ctx),this.ctx.theme=new Ii(this.ctx),this.ctx.formatters=new ve(this.ctx),this.ctx.titleSubtitle=new Xi(this.ctx),this.ctx.legend=new Ze(this.ctx),this.ctx.toolbar=new Je(this.ctx),this.ctx.tooltip=new et(this.ctx),this.ctx.dimensions=new Me(this.ctx),this.ctx.updateHelpers=new ea(this.ctx),this.ctx.zoomPanSelection=new Hi(this.ctx),this.ctx.w.globals.tooltip=new et(this.ctx)}}]),v}(),nt=function(){function v(e){O(this,v),this.ctx=e,this.w=e.w}return I(v,[{key:"clear",value:function(e){var t=e.isUpdating;this.ctx.zoomPanSelection&&this.ctx.zoomPanSelection.destroy(),this.ctx.toolbar&&this.ctx.toolbar.destroy(),this.ctx.animations=null,this.ctx.axes=null,this.ctx.annotations=null,this.ctx.core=null,this.ctx.data=null,this.ctx.grid=null,this.ctx.series=null,this.ctx.responsive=null,this.ctx.theme=null,this.ctx.formatters=null,this.ctx.titleSubtitle=null,this.ctx.legend=null,this.ctx.dimensions=null,this.ctx.options=null,this.ctx.crosshairs=null,this.ctx.zoomPanSelection=null,this.ctx.updateHelpers=null,this.ctx.toolbar=null,this.ctx.localization=null,this.ctx.w.globals.tooltip=null,this.clearDomElements({isUpdating:t})}},{key:"killSVG",value:function(e){e.each(function(t,i){this.removeClass("*"),this.off(),this.stop()},!0),e.ungroup(),e.clear()}},{key:"clearDomElements",value:function(e){var t=this,i=e.isUpdating,a=this.w.globals.dom.Paper.node;a.parentNode&&a.parentNode.parentNode&&!i&&(a.parentNode.parentNode.style.minHeight="unset");var s=this.w.globals.dom.baseEl;s&&this.ctx.eventList.forEach(function(r){s.removeEventListener(r,t.ctx.events.documentEvent)});var n=this.w.globals.dom;if(this.ctx.el!==null)for(;this.ctx.el.firstChild;)this.ctx.el.removeChild(this.ctx.el.firstChild);this.killSVG(n.Paper),n.Paper.remove(),n.elWrap=null,n.elGraphical=null,n.elAnnotations=null,n.elLegendWrap=null,n.baseEl=null,n.elGridRect=null,n.elGridRectMask=null,n.elGridRectMarkerMask=null,n.elForecastMask=null,n.elNonForecastMask=null,n.elDefs=null}}]),v}(),Oe=new WeakMap,ta=function(){function v(e,t){O(this,v),this.opts=t,this.ctx=this,this.w=new Pi(t).init(),this.el=e,this.w.globals.cuid=L.randomId(),this.w.globals.chartID=this.w.config.chart.id?L.escapeString(this.w.config.chart.id):this.w.globals.cuid,new rt(this).initModules(),this.create=L.bind(this.create,this),this.windowResizeHandler=this._windowResizeHandler.bind(this),this.parentResizeHandler=this._parentResizeCallback.bind(this)}return I(v,[{key:"render",value:function(){var e=this;return new Promise(function(t,i){if(e.el!==null){Apex._chartInstances===void 0&&(Apex._chartInstances=[]),e.w.config.chart.id&&Apex._chartInstances.push({id:e.w.globals.chartID,group:e.w.config.chart.group,chart:e}),e.setLocale(e.w.config.chart.defaultLocale);var a=e.w.config.chart.events.beforeMount;if(typeof a=="function"&&a(e,e.w),e.events.fireEvent("beforeMount",[e,e.w]),window.addEventListener("resize",e.windowResizeHandler),function(c,d){var g=!1;if(c.nodeType!==Node.DOCUMENT_FRAGMENT_NODE){var p=c.getBoundingClientRect();c.style.display!=="none"&&p.width!==0||(g=!0)}var x=new ResizeObserver(function(f){g&&d.call(c,f),g=!0});c.nodeType===Node.DOCUMENT_FRAGMENT_NODE?Array.from(c.children).forEach(function(f){return x.observe(f)}):x.observe(c),Oe.set(d,x)}(e.el.parentNode,e.parentResizeHandler),!e.css){var s=e.el.getRootNode&&e.el.getRootNode(),n=L.is("ShadowRoot",s),r=e.el.ownerDocument,o=r.getElementById("apexcharts-css");!n&&o||(e.css=document.createElement("style"),e.css.id="apexcharts-css",e.css.textContent=`@keyframes opaque { +`:""):(typeof l=="function"?l.call(this,this):this.plain(l),this)},dx:function(l){return this.attr("dx",l)},dy:function(l){return this.attr("dy",l)},newLine:function(){var l=this.parent(t.Text);return this.dom.newLined=!0,this.dy(l.dom.leading*l.attr("font-size")).attr("x",l.x())}}}),t.extend(t.Text,t.Tspan,{plain:function(l){return this._build===!1&&this.clear(),this.node.appendChild(e.createTextNode(l)),this},tspan:function(l){var u=(this.textPath&&this.textPath()||this).node,m=new t.Tspan;return this._build===!1&&this.clear(),u.appendChild(m.node),m.text(l)},clear:function(){for(var l=(this.textPath&&this.textPath()||this).node;l.hasChildNodes();)l.removeChild(l.lastChild);return this},length:function(){return this.node.getComputedTextLength()}}),t.TextPath=t.invent({create:"textPath",inherit:t.Parent,parent:t.Text,construct:{morphArray:t.PathArray,array:function(){var l=this.track();return l?l.array():null},plot:function(l){var u=this.track(),m=null;return u&&(m=u.plot(l)),l==null?m:this},track:function(){var l=this.textPath();if(l)return l.reference("href")},textPath:function(){if(this.node.firstChild&&this.node.firstChild.nodeName=="textPath")return t.adopt(this.node.firstChild)}}}),t.Nested=t.invent({create:function(){this.constructor.call(this,t.create("svg")),this.style("overflow","visible")},inherit:t.Container,construct:{nested:function(){return this.put(new t.Nested)}}});var r={stroke:["color","width","opacity","linecap","linejoin","miterlimit","dasharray","dashoffset"],fill:["color","opacity","rule"],prefix:function(l,u){return u=="color"?l:l+"-"+u}};function o(l,u,m,b){return m+b.replace(t.regex.dots," .")}function h(l){return l.toLowerCase().replace(/-(.)/g,function(u,m){return m.toUpperCase()})}function c(l){return l.charAt(0).toUpperCase()+l.slice(1)}function d(l){var u=l.toString(16);return u.length==1?"0"+u:u}function g(l,u,m){if(u==null||m==null){var b=l.bbox();u==null?u=b.width/b.height*m:m==null&&(m=b.height/b.width*u)}return{width:u,height:m}}function p(l,u,m){return{x:u*l.a+m*l.c+0,y:u*l.b+m*l.d+0}}function x(l){return{a:l[0],b:l[1],c:l[2],d:l[3],e:l[4],f:l[5]}}function f(l){for(var u=l.childNodes.length-1;u>=0;u--)l.childNodes[u]instanceof v.SVGElement&&f(l.childNodes[u]);return t.adopt(l).id(t.eid(l.nodeName))}function y(l){return l.x==null&&(l.x=0,l.y=0,l.width=0,l.height=0),l.w=l.width,l.h=l.height,l.x2=l.x+l.width,l.y2=l.y+l.height,l.cx=l.x+l.width/2,l.cy=l.y+l.height/2,l}function w(l){return Math.abs(l)>1e-37?l:0}["fill","stroke"].forEach(function(l){var u={};u[l]=function(m){if(m===void 0)return this;if(typeof m=="string"||t.Color.isRgb(m)||m&&typeof m.fill=="function")this.attr(l,m);else for(var b=r[l].length-1;b>=0;b--)m[r[l][b]]!=null&&this.attr(r.prefix(l,r[l][b]),m[r[l][b]]);return this},t.extend(t.Element,t.FX,u)}),t.extend(t.Element,t.FX,{translate:function(l,u){return this.transform({x:l,y:u})},matrix:function(l){return this.attr("transform",new t.Matrix(arguments.length==6?[].slice.call(arguments):l))},opacity:function(l){return this.attr("opacity",l)},dx:function(l){return this.x(new t.Number(l).plus(this instanceof t.FX?0:this.x()),!0)},dy:function(l){return this.y(new t.Number(l).plus(this instanceof t.FX?0:this.y()),!0)}}),t.extend(t.Path,{length:function(){return this.node.getTotalLength()},pointAt:function(l){return this.node.getPointAtLength(l)}}),t.Set=t.invent({create:function(l){Array.isArray(l)?this.members=l:this.clear()},extend:{add:function(){for(var l=[].slice.call(arguments),u=0,m=l.length;u-1&&this.members.splice(u,1),this},each:function(l){for(var u=0,m=this.members.length;u=0},index:function(l){return this.members.indexOf(l)},get:function(l){return this.members[l]},first:function(){return this.get(0)},last:function(){return this.get(this.members.length-1)},valueOf:function(){return this.members}},construct:{set:function(l){return new t.Set(l)}}}),t.FX.Set=t.invent({create:function(l){this.set=l}}),t.Set.inherit=function(){var l=[];for(var u in t.Shape.prototype)typeof t.Shape.prototype[u]=="function"&&typeof t.Set.prototype[u]!="function"&&l.push(u);for(var u in l.forEach(function(b){t.Set.prototype[b]=function(){for(var A=0,P=this.members.length;A=0;l--)delete this.memory()[arguments[l]];return this},memory:function(){return this._memory||(this._memory={})}}),t.get=function(l){var u=e.getElementById(function(m){var b=(m||"").toString().match(t.regex.reference);if(b)return b[1]}(l)||l);return t.adopt(u)},t.select=function(l,u){return new t.Set(t.utils.map((u||e).querySelectorAll(l),function(m){return t.adopt(m)}))},t.extend(t.Parent,{select:function(l){return t.select(l,this.node)}});var S="abcdef".split("");if(typeof v.CustomEvent!="function"){var k=function(l,u){u=u||{bubbles:!1,cancelable:!1,detail:void 0};var m=e.createEvent("CustomEvent");return m.initCustomEvent(l,u.bubbles,u.cancelable,u.detail),m};k.prototype=v.Event.prototype,t.CustomEvent=k}else t.CustomEvent=v.CustomEvent;return t},_(X)==="object"?F.exports=de.document?Te(de,de.document):function(v){return Te(v,v.document)}:de.SVG=Te(de,de.document),(function(){SVG.Filter=SVG.invent({create:"filter",inherit:SVG.Parent,extend:{source:"SourceGraphic",sourceAlpha:"SourceAlpha",background:"BackgroundImage",backgroundAlpha:"BackgroundAlpha",fill:"FillPaint",stroke:"StrokePaint",autoSetIn:!0,put:function(r,o){return this.add(r,o),!r.attr("in")&&this.autoSetIn&&r.attr("in",this.source),r.attr("result")||r.attr("result",r),r},blend:function(r,o,h){return this.put(new SVG.BlendEffect(r,o,h))},colorMatrix:function(r,o){return this.put(new SVG.ColorMatrixEffect(r,o))},convolveMatrix:function(r){return this.put(new SVG.ConvolveMatrixEffect(r))},componentTransfer:function(r){return this.put(new SVG.ComponentTransferEffect(r))},composite:function(r,o,h){return this.put(new SVG.CompositeEffect(r,o,h))},flood:function(r,o){return this.put(new SVG.FloodEffect(r,o))},offset:function(r,o){return this.put(new SVG.OffsetEffect(r,o))},image:function(r){return this.put(new SVG.ImageEffect(r))},merge:function(){var r=[void 0];for(var o in arguments)r.push(arguments[o]);return this.put(new(SVG.MergeEffect.bind.apply(SVG.MergeEffect,r)))},gaussianBlur:function(r,o){return this.put(new SVG.GaussianBlurEffect(r,o))},morphology:function(r,o){return this.put(new SVG.MorphologyEffect(r,o))},diffuseLighting:function(r,o,h){return this.put(new SVG.DiffuseLightingEffect(r,o,h))},displacementMap:function(r,o,h,c,d){return this.put(new SVG.DisplacementMapEffect(r,o,h,c,d))},specularLighting:function(r,o,h,c){return this.put(new SVG.SpecularLightingEffect(r,o,h,c))},tile:function(){return this.put(new SVG.TileEffect)},turbulence:function(r,o,h,c,d){return this.put(new SVG.TurbulenceEffect(r,o,h,c,d))},toString:function(){return"url(#"+this.attr("id")+")"}}}),SVG.extend(SVG.Defs,{filter:function(r){var o=this.put(new SVG.Filter);return typeof r=="function"&&r.call(o,o),o}}),SVG.extend(SVG.Container,{filter:function(r){return this.defs().filter(r)}}),SVG.extend(SVG.Element,SVG.G,SVG.Nested,{filter:function(r){return this.filterer=r instanceof SVG.Element?r:this.doc().filter(r),this.doc()&&this.filterer.doc()!==this.doc()&&this.doc().defs().add(this.filterer),this.attr("filter",this.filterer),this.filterer},unfilter:function(r){return this.filterer&&r===!0&&this.filterer.remove(),delete this.filterer,this.attr("filter",null)}}),SVG.Effect=SVG.invent({create:function(){this.constructor.call(this)},inherit:SVG.Element,extend:{in:function(r){return r==null?this.parent()&&this.parent().select('[result="'+this.attr("in")+'"]').get(0)||this.attr("in"):this.attr("in",r)},result:function(r){return r==null?this.attr("result"):this.attr("result",r)},toString:function(){return this.result()}}}),SVG.ParentEffect=SVG.invent({create:function(){this.constructor.call(this)},inherit:SVG.Parent,extend:{in:function(r){return r==null?this.parent()&&this.parent().select('[result="'+this.attr("in")+'"]').get(0)||this.attr("in"):this.attr("in",r)},result:function(r){return r==null?this.attr("result"):this.attr("result",r)},toString:function(){return this.result()}}});var v={blend:function(r,o){return this.parent()&&this.parent().blend(this,r,o)},colorMatrix:function(r,o){return this.parent()&&this.parent().colorMatrix(r,o).in(this)},convolveMatrix:function(r){return this.parent()&&this.parent().convolveMatrix(r).in(this)},componentTransfer:function(r){return this.parent()&&this.parent().componentTransfer(r).in(this)},composite:function(r,o){return this.parent()&&this.parent().composite(this,r,o)},flood:function(r,o){return this.parent()&&this.parent().flood(r,o)},offset:function(r,o){return this.parent()&&this.parent().offset(r,o).in(this)},image:function(r){return this.parent()&&this.parent().image(r)},merge:function(){return this.parent()&&this.parent().merge.apply(this.parent(),[this].concat(arguments))},gaussianBlur:function(r,o){return this.parent()&&this.parent().gaussianBlur(r,o).in(this)},morphology:function(r,o){return this.parent()&&this.parent().morphology(r,o).in(this)},diffuseLighting:function(r,o,h){return this.parent()&&this.parent().diffuseLighting(r,o,h).in(this)},displacementMap:function(r,o,h,c){return this.parent()&&this.parent().displacementMap(this,r,o,h,c)},specularLighting:function(r,o,h,c){return this.parent()&&this.parent().specularLighting(r,o,h,c).in(this)},tile:function(){return this.parent()&&this.parent().tile().in(this)},turbulence:function(r,o,h,c,d){return this.parent()&&this.parent().turbulence(r,o,h,c,d).in(this)}};SVG.extend(SVG.Effect,v),SVG.extend(SVG.ParentEffect,v),SVG.ChildEffect=SVG.invent({create:function(){this.constructor.call(this)},inherit:SVG.Element,extend:{in:function(r){this.attr("in",r)}}});var e={blend:function(r,o,h){this.attr({in:r,in2:o,mode:h||"normal"})},colorMatrix:function(r,o){r=="matrix"&&(o=a(o)),this.attr({type:r,values:o===void 0?null:o})},convolveMatrix:function(r){r=a(r),this.attr({order:Math.sqrt(r.split(" ").length),kernelMatrix:r})},composite:function(r,o,h){this.attr({in:r,in2:o,operator:h})},flood:function(r,o){this.attr("flood-color",r),o!=null&&this.attr("flood-opacity",o)},offset:function(r,o){this.attr({dx:r,dy:o})},image:function(r){this.attr("href",r,SVG.xlink)},displacementMap:function(r,o,h,c,d){this.attr({in:r,in2:o,scale:h,xChannelSelector:c,yChannelSelector:d})},gaussianBlur:function(r,o){r!=null||o!=null?this.attr("stdDeviation",s(Array.prototype.slice.call(arguments))):this.attr("stdDeviation","0 0")},morphology:function(r,o){this.attr({operator:r,radius:o})},tile:function(){},turbulence:function(r,o,h,c,d){this.attr({numOctaves:o,seed:h,stitchTiles:c,baseFrequency:r,type:d})}},t={merge:function(){var r;if(arguments[0]instanceof SVG.Set){var o=this;arguments[0].each(function(c){this instanceof SVG.MergeNode?o.put(this):(this instanceof SVG.Effect||this instanceof SVG.ParentEffect)&&o.put(new SVG.MergeNode(this))})}else{r=Array.isArray(arguments[0])?arguments[0]:arguments;for(var h=0;h1&&($*=c=Math.sqrt(c),q*=c),d=new SVG.Matrix().rotate(te).scale(1/$,1/q).rotate(-te),ie=ie.transform(d),K=K.transform(d),g=[K.x-ie.x,K.y-ie.y],x=g[0]*g[0]+g[1]*g[1],p=Math.sqrt(x),g[0]/=p,g[1]/=p,f=x<4?Math.sqrt(1-x/4):0,Ie===Se&&(f*=-1),y=new SVG.Point((K.x+ie.x)/2+f*-g[1],(K.y+ie.y)/2+f*g[0]),w=new SVG.Point(ie.x-y.x,ie.y-y.y),S=new SVG.Point(K.x-y.x,K.y-y.y),k=Math.acos(w.x/Math.sqrt(w.x*w.x+w.y*w.y)),w.y<0&&(k*=-1),l=Math.acos(S.x/Math.sqrt(S.x*S.x+S.y*S.y)),S.y<0&&(l*=-1),Se&&k>l&&(l+=2*Math.PI),!Se&&kn.maxX-t.width&&(r=(a=n.maxX-t.width)-this.startPoints.box.x),n.minY!=null&&sn.maxY-t.height&&(o=(s=n.maxY-t.height)-this.startPoints.box.y),n.snapToGrid!=null&&(a-=a%n.snapToGrid,s-=s%n.snapToGrid,r-=r%n.snapToGrid,o-=o%n.snapToGrid),this.el instanceof SVG.G?this.el.matrix(this.startPoints.transform).transform({x:r,y:o},!0):this.el.move(a,s));return i},v.prototype.end=function(e){var t=this.drag(e);this.el.fire("dragend",{event:e,p:t,m:this.m,handler:this}),SVG.off(window,"mousemove.drag"),SVG.off(window,"touchmove.drag"),SVG.off(window,"mouseup.drag"),SVG.off(window,"touchend.drag")},SVG.extend(SVG.Element,{draggable:function(e,t){typeof e!="function"&&typeof e!="object"||(t=e,e=!0);var i=this.remember("_draggable")||new v(this);return(e=e===void 0||e)?i.init(t||{},e):(this.off("mousedown.drag"),this.off("touchstart.drag")),this}})}).call(void 0),function(){function v(e){this.el=e,e.remember("_selectHandler",this),this.pointSelection={isSelected:!1},this.rectSelection={isSelected:!1},this.pointsList={lt:[0,0],rt:["width",0],rb:["width","height"],lb:[0,"height"],t:["width",0],r:["width","height"],b:["width","height"],l:[0,"height"]},this.pointCoord=function(t,i,a){var s=typeof t!="string"?t:i[t];return a?s/2:s},this.pointCoords=function(t,i){var a=this.pointsList[t];return{x:this.pointCoord(a[0],i,t==="t"||t==="b"),y:this.pointCoord(a[1],i,t==="r"||t==="l")}}}v.prototype.init=function(e,t){var i=this.el.bbox();this.options={};var a=this.el.selectize.defaults.points;for(var s in this.el.selectize.defaults)this.options[s]=this.el.selectize.defaults[s],t[s]!==void 0&&(this.options[s]=t[s]);var n=["points","pointsExclude"];for(var s in n){var r=this.options[n[s]];typeof r=="string"?r=r.length>0?r.split(/\s*,\s*/i):[]:typeof r=="boolean"&&n[s]==="points"&&(r=r?a:[]),this.options[n[s]]=r}this.options.points=[a,this.options.points].reduce(function(o,h){return o.filter(function(c){return h.indexOf(c)>-1})}),this.options.points=[this.options.points,this.options.pointsExclude].reduce(function(o,h){return o.filter(function(c){return h.indexOf(c)<0})}),this.parent=this.el.parent(),this.nested=this.nested||this.parent.group(),this.nested.matrix(new SVG.Matrix(this.el).translate(i.x,i.y)),this.options.deepSelect&&["line","polyline","polygon"].indexOf(this.el.type)!==-1?this.selectPoints(e):this.selectRect(e),this.observe(),this.cleanup()},v.prototype.selectPoints=function(e){return this.pointSelection.isSelected=e,this.pointSelection.set||(this.pointSelection.set=this.parent.set(),this.drawPoints()),this},v.prototype.getPointArray=function(){var e=this.el.bbox();return this.el.array().valueOf().map(function(t){return[t[0]-e.x,t[1]-e.y]})},v.prototype.drawPoints=function(){for(var e=this,t=this.getPointArray(),i=0,a=t.length;i0&&this.parameters.box.height-r[1]>0){if(this.parameters.type==="text")return this.el.move(this.parameters.box.x+r[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize-r[0]);r=this.checkAspectRatio(r),this.el.move(this.parameters.box.x+r[0],this.parameters.box.y+r[1]).size(this.parameters.box.width-r[0],this.parameters.box.height-r[1])}};break;case"rt":this.calc=function(s,n){var r=this.snapToGrid(s,n,2);if(this.parameters.box.width+r[0]>0&&this.parameters.box.height-r[1]>0){if(this.parameters.type==="text")return this.el.move(this.parameters.box.x-r[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize+r[0]);r=this.checkAspectRatio(r,!0),this.el.move(this.parameters.box.x,this.parameters.box.y+r[1]).size(this.parameters.box.width+r[0],this.parameters.box.height-r[1])}};break;case"rb":this.calc=function(s,n){var r=this.snapToGrid(s,n,0);if(this.parameters.box.width+r[0]>0&&this.parameters.box.height+r[1]>0){if(this.parameters.type==="text")return this.el.move(this.parameters.box.x-r[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize+r[0]);r=this.checkAspectRatio(r),this.el.move(this.parameters.box.x,this.parameters.box.y).size(this.parameters.box.width+r[0],this.parameters.box.height+r[1])}};break;case"lb":this.calc=function(s,n){var r=this.snapToGrid(s,n,1);if(this.parameters.box.width-r[0]>0&&this.parameters.box.height+r[1]>0){if(this.parameters.type==="text")return this.el.move(this.parameters.box.x+r[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize-r[0]);r=this.checkAspectRatio(r,!0),this.el.move(this.parameters.box.x+r[0],this.parameters.box.y).size(this.parameters.box.width-r[0],this.parameters.box.height+r[1])}};break;case"t":this.calc=function(s,n){var r=this.snapToGrid(s,n,2);if(this.parameters.box.height-r[1]>0){if(this.parameters.type==="text")return;this.el.move(this.parameters.box.x,this.parameters.box.y+r[1]).height(this.parameters.box.height-r[1])}};break;case"r":this.calc=function(s,n){var r=this.snapToGrid(s,n,0);if(this.parameters.box.width+r[0]>0){if(this.parameters.type==="text")return;this.el.move(this.parameters.box.x,this.parameters.box.y).width(this.parameters.box.width+r[0])}};break;case"b":this.calc=function(s,n){var r=this.snapToGrid(s,n,0);if(this.parameters.box.height+r[1]>0){if(this.parameters.type==="text")return;this.el.move(this.parameters.box.x,this.parameters.box.y).height(this.parameters.box.height+r[1])}};break;case"l":this.calc=function(s,n){var r=this.snapToGrid(s,n,1);if(this.parameters.box.width-r[0]>0){if(this.parameters.type==="text")return;this.el.move(this.parameters.box.x+r[0],this.parameters.box.y).width(this.parameters.box.width-r[0])}};break;case"rot":this.calc=function(s,n){var r=s+this.parameters.p.x,o=n+this.parameters.p.y,h=Math.atan2(this.parameters.p.y-this.parameters.box.y-this.parameters.box.height/2,this.parameters.p.x-this.parameters.box.x-this.parameters.box.width/2),c=Math.atan2(o-this.parameters.box.y-this.parameters.box.height/2,r-this.parameters.box.x-this.parameters.box.width/2),d=this.parameters.rotation+180*(c-h)/Math.PI+this.options.snapToAngle/2;this.el.center(this.parameters.box.cx,this.parameters.box.cy).rotate(d-d%this.options.snapToAngle,this.parameters.box.cx,this.parameters.box.cy)};break;case"point":this.calc=function(s,n){var r=this.snapToGrid(s,n,this.parameters.pointCoords[0],this.parameters.pointCoords[1]),o=this.el.array().valueOf();o[this.parameters.i][0]=this.parameters.pointCoords[0]+r[0],o[this.parameters.i][1]=this.parameters.pointCoords[1]+r[1],this.el.plot(o)}}this.el.fire("resizestart",{dx:this.parameters.x,dy:this.parameters.y,event:e}),SVG.on(window,"touchmove.resize",function(s){t.update(s||window.event)}),SVG.on(window,"touchend.resize",function(){t.done()}),SVG.on(window,"mousemove.resize",function(s){t.update(s||window.event)}),SVG.on(window,"mouseup.resize",function(){t.done()})},v.prototype.update=function(e){if(e){var t=this._extractPosition(e),i=this.transformPoint(t.x,t.y),a=i.x-this.parameters.p.x,s=i.y-this.parameters.p.y;this.lastUpdateCall=[a,s],this.calc(a,s),this.el.fire("resizing",{dx:a,dy:s,event:e})}else this.lastUpdateCall&&this.calc(this.lastUpdateCall[0],this.lastUpdateCall[1])},v.prototype.done=function(){this.lastUpdateCall=null,SVG.off(window,"mousemove.resize"),SVG.off(window,"mouseup.resize"),SVG.off(window,"touchmove.resize"),SVG.off(window,"touchend.resize"),this.el.fire("resizedone")},v.prototype.snapToGrid=function(e,t,i,a){var s;return a!==void 0?s=[(i+e)%this.options.snapToGrid,(a+t)%this.options.snapToGrid]:(i=i??3,s=[(this.parameters.box.x+e+(1&i?0:this.parameters.box.width))%this.options.snapToGrid,(this.parameters.box.y+t+(2&i?0:this.parameters.box.height))%this.options.snapToGrid]),e<0&&(s[0]-=this.options.snapToGrid),t<0&&(s[1]-=this.options.snapToGrid),e-=Math.abs(s[0])r.maxX&&(e=r.maxX-s),r.minY!==void 0&&n+tr.maxY&&(t=r.maxY-n),[e,t]},v.prototype.checkAspectRatio=function(e,t){if(!this.options.saveAspectRatio)return e;var i=e.slice(),a=this.parameters.box.width/this.parameters.box.height,s=this.parameters.box.width+e[0],n=this.parameters.box.height-e[1],r=s/n;return ra&&(i[0]=this.parameters.box.width-n*a,t&&(i[0]=-i[0])),i},SVG.extend(SVG.Element,{resize:function(e){return(this.remember("_resizeHandler")||new v(this)).init(e||{}),this}}),SVG.Element.prototype.resize.defaults={snapToAngle:.1,snapToGrid:1,constraint:{},saveAspectRatio:!1}}).call(this)}(),window.Apex===void 0&&(window.Apex={});var rt=function(){function v(e){O(this,v),this.ctx=e,this.w=e.w}return E(v,[{key:"initModules",value:function(){this.ctx.publicMethods=["updateOptions","updateSeries","appendData","appendSeries","toggleSeries","showSeries","hideSeries","setLocale","resetSeries","zoomX","toggleDataPointSelection","dataURI","exportToCSV","addXaxisAnnotation","addYaxisAnnotation","addPointAnnotation","clearAnnotations","removeAnnotation","paper","destroy"],this.ctx.eventList=["click","mousedown","mousemove","mouseleave","touchstart","touchmove","touchleave","mouseup","touchend"],this.ctx.animations=new pe(this.ctx),this.ctx.axes=new Ti(this.ctx),this.ctx.core=new Ki(this.ctx.el,this.ctx),this.ctx.config=new we({}),this.ctx.data=new qe(this.ctx),this.ctx.grid=new $e(this.ctx),this.ctx.graphics=new Y(this.ctx),this.ctx.coreUtils=new U(this.ctx),this.ctx.crosshairs=new De(this.ctx),this.ctx.events=new Li(this.ctx),this.ctx.exports=new Le(this.ctx),this.ctx.localization=new Mi(this.ctx),this.ctx.options=new he,this.ctx.responsive=new Ii(this.ctx),this.ctx.series=new re(this.ctx),this.ctx.theme=new Ei(this.ctx),this.ctx.formatters=new ve(this.ctx),this.ctx.titleSubtitle=new Xi(this.ctx),this.ctx.legend=new Ze(this.ctx),this.ctx.toolbar=new Je(this.ctx),this.ctx.tooltip=new et(this.ctx),this.ctx.dimensions=new Me(this.ctx),this.ctx.updateHelpers=new ea(this.ctx),this.ctx.zoomPanSelection=new Hi(this.ctx),this.ctx.w.globals.tooltip=new et(this.ctx)}}]),v}(),nt=function(){function v(e){O(this,v),this.ctx=e,this.w=e.w}return E(v,[{key:"clear",value:function(e){var t=e.isUpdating;this.ctx.zoomPanSelection&&this.ctx.zoomPanSelection.destroy(),this.ctx.toolbar&&this.ctx.toolbar.destroy(),this.ctx.animations=null,this.ctx.axes=null,this.ctx.annotations=null,this.ctx.core=null,this.ctx.data=null,this.ctx.grid=null,this.ctx.series=null,this.ctx.responsive=null,this.ctx.theme=null,this.ctx.formatters=null,this.ctx.titleSubtitle=null,this.ctx.legend=null,this.ctx.dimensions=null,this.ctx.options=null,this.ctx.crosshairs=null,this.ctx.zoomPanSelection=null,this.ctx.updateHelpers=null,this.ctx.toolbar=null,this.ctx.localization=null,this.ctx.w.globals.tooltip=null,this.clearDomElements({isUpdating:t})}},{key:"killSVG",value:function(e){e.each(function(t,i){this.removeClass("*"),this.off(),this.stop()},!0),e.ungroup(),e.clear()}},{key:"clearDomElements",value:function(e){var t=this,i=e.isUpdating,a=this.w.globals.dom.Paper.node;a.parentNode&&a.parentNode.parentNode&&!i&&(a.parentNode.parentNode.style.minHeight="unset");var s=this.w.globals.dom.baseEl;s&&this.ctx.eventList.forEach(function(r){s.removeEventListener(r,t.ctx.events.documentEvent)});var n=this.w.globals.dom;if(this.ctx.el!==null)for(;this.ctx.el.firstChild;)this.ctx.el.removeChild(this.ctx.el.firstChild);this.killSVG(n.Paper),n.Paper.remove(),n.elWrap=null,n.elGraphical=null,n.elAnnotations=null,n.elLegendWrap=null,n.baseEl=null,n.elGridRect=null,n.elGridRectMask=null,n.elGridRectMarkerMask=null,n.elForecastMask=null,n.elNonForecastMask=null,n.elDefs=null}}]),v}(),Oe=new WeakMap,ta=function(){function v(e,t){O(this,v),this.opts=t,this.ctx=this,this.w=new Pi(t).init(),this.el=e,this.w.globals.cuid=L.randomId(),this.w.globals.chartID=this.w.config.chart.id?L.escapeString(this.w.config.chart.id):this.w.globals.cuid,new rt(this).initModules(),this.create=L.bind(this.create,this),this.windowResizeHandler=this._windowResizeHandler.bind(this),this.parentResizeHandler=this._parentResizeCallback.bind(this)}return E(v,[{key:"render",value:function(){var e=this;return new Promise(function(t,i){if(e.el!==null){Apex._chartInstances===void 0&&(Apex._chartInstances=[]),e.w.config.chart.id&&Apex._chartInstances.push({id:e.w.globals.chartID,group:e.w.config.chart.group,chart:e}),e.setLocale(e.w.config.chart.defaultLocale);var a=e.w.config.chart.events.beforeMount;if(typeof a=="function"&&a(e,e.w),e.events.fireEvent("beforeMount",[e,e.w]),window.addEventListener("resize",e.windowResizeHandler),function(c,d){var g=!1;if(c.nodeType!==Node.DOCUMENT_FRAGMENT_NODE){var p=c.getBoundingClientRect();c.style.display!=="none"&&p.width!==0||(g=!0)}var x=new ResizeObserver(function(f){g&&d.call(c,f),g=!0});c.nodeType===Node.DOCUMENT_FRAGMENT_NODE?Array.from(c.children).forEach(function(f){return x.observe(f)}):x.observe(c),Oe.set(d,x)}(e.el.parentNode,e.parentResizeHandler),!e.css){var s=e.el.getRootNode&&e.el.getRootNode(),n=L.is("ShadowRoot",s),r=e.el.ownerDocument,o=r.getElementById("apexcharts-css");!n&&o||(e.css=document.createElement("style"),e.css.id="apexcharts-css",e.css.textContent=`@keyframes opaque { 0% { opacity: 0 } @@ -679,4 +679,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho width: 200%; height: 200% } -`,n?s.prepend(e.css):r.head.appendChild(e.css))}var h=e.create(e.w.config.series,{});if(!h)return t(e);e.mount(h).then(function(){typeof e.w.config.chart.events.mounted=="function"&&e.w.config.chart.events.mounted(e,e.w),e.events.fireEvent("mounted",[e,e.w]),t(h)}).catch(function(c){i(c)})}else i(new Error("Element not found"))})}},{key:"create",value:function(e,t){var i=this.w;new rt(this).initModules();var a=this.w.globals;if(a.noData=!1,a.animationEnded=!1,this.responsive.checkResponsiveConfig(t),i.config.xaxis.convertedCatToNumeric&&new ye(i.config).convertCatToNumericXaxis(i.config,this.ctx),this.el===null||(this.core.setupElements(),i.config.chart.type==="treemap"&&(i.config.grid.show=!1,i.config.yaxis[0].show=!1),a.svgWidth===0))return a.animationEnded=!0,null;var s=q.checkComboSeries(e);a.comboCharts=s.comboCharts,a.comboBarCount=s.comboBarCount;var n=e.every(function(d){return d.data&&d.data.length===0});(e.length===0||n)&&this.series.handleNoData(),this.events.setupEventHandlers(),this.data.parseData(e),this.theme.init(),new ke(this).setGlobalMarkerSize(),this.formatters.setLabelFormatters(),this.titleSubtitle.draw(),a.noData&&a.collapsedSeries.length!==a.series.length&&!i.config.legend.showForSingleSeries||this.legend.init(),this.series.hasAllSeriesEqualX(),a.axisCharts&&(this.core.coreCalculations(),i.config.xaxis.type!=="category"&&this.formatters.setLabelFormatters(),this.ctx.toolbar.minX=i.globals.minX,this.ctx.toolbar.maxX=i.globals.maxX),this.formatters.heatmapLabelFormatters(),new q(this).getLargestMarkerSize(),this.dimensions.plotCoords();var r=this.core.xySettings();this.grid.createGridMask();var o=this.core.plotChartType(e,r),h=new xe(this);h.bringForward(),i.config.dataLabels.background.enabled&&h.dataLabelsBackground(),this.core.shiftGraphPosition();var c={plot:{left:i.globals.translateX,top:i.globals.translateY,width:i.globals.gridWidth,height:i.globals.gridHeight}};return{elGraph:o,xyRatios:r,elInner:i.globals.dom.elGraphical,dimensions:c}}},{key:"mount",value:function(){var e=this,t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,i=this,a=i.w;return new Promise(function(s,n){if(i.el===null)return n(new Error("Not enough data to display or target element not found"));(t===null||a.globals.allSeriesCollapsed)&&i.series.handleNoData(),i.grid=new qe(i);var r=i.grid.drawGrid();if(i.annotations=new Ci(i),i.annotations.drawImageAnnos(),i.annotations.drawTextAnnos(),a.config.grid.position==="back"&&r&&(a.globals.dom.elGraphical.add(r.el),r&&r.elGridBorders&&r.elGridBorders.node&&a.globals.dom.elGraphical.add(r.elGridBorders)),Array.isArray(t.elGraph))for(var o=0;o0&&a.globals.memory.methodsToExec.forEach(function(g){g.method(g.params,!1,g.context)}),a.globals.axisCharts||a.globals.noData||i.core.resizeNonAxisCharts(),s(i)})}},{key:"destroy",value:function(){var e,t;window.removeEventListener("resize",this.windowResizeHandler),this.el.parentNode,e=this.parentResizeHandler,(t=Oe.get(e))&&(t.disconnect(),Oe.delete(e));var i=this.w.config.chart.id;i&&Apex._chartInstances.forEach(function(a,s){a.id===L.escapeString(i)&&Apex._chartInstances.splice(s,1)}),new nt(this.ctx).clear({isUpdating:!1})}},{key:"updateOptions",value:function(e){var t=this,i=arguments.length>1&&arguments[1]!==void 0&&arguments[1],a=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],s=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3],n=!(arguments.length>4&&arguments[4]!==void 0)||arguments[4],r=this.w;return r.globals.selection=void 0,e.series&&(this.series.resetSeries(!1,!0,!1),e.series.length&&e.series[0].data&&(e.series=e.series.map(function(o,h){return t.updateHelpers._extendSeries(o,h)})),this.updateHelpers.revertDefaultAxisMinMax()),e.xaxis&&(e=this.updateHelpers.forceXAxisUpdate(e)),e.yaxis&&(e=this.updateHelpers.forceYAxisUpdate(e)),r.globals.collapsedSeriesIndices.length>0&&this.series.clearPreviousPaths(),e.theme&&(e=this.theme.updateThemeOptions(e)),this.updateHelpers._updateOptions(e,i,a,s,n)}},{key:"updateSeries",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],i=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2];return this.series.resetSeries(!1),this.updateHelpers.revertDefaultAxisMinMax(),this.updateHelpers._updateSeries(e,t,i)}},{key:"appendSeries",value:function(e){var t=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],i=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],a=this.w.config.series.slice();return a.push(e),this.series.resetSeries(!1),this.updateHelpers.revertDefaultAxisMinMax(),this.updateHelpers._updateSeries(a,t,i)}},{key:"appendData",value:function(e){var t=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],i=this;i.w.globals.dataChanged=!0,i.series.getPreviousPaths();for(var a=i.w.config.series.slice(),s=0;s0&&arguments[0]!==void 0)||arguments[0],t=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];this.series.resetSeries(e,t)}},{key:"addEventListener",value:function(e,t){this.events.addEventListener(e,t)}},{key:"removeEventListener",value:function(e,t){this.events.removeEventListener(e,t)}},{key:"addXaxisAnnotation",value:function(e){var t=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,a=this;i&&(a=i),a.annotations.addXaxisAnnotationExternal(e,t,a)}},{key:"addYaxisAnnotation",value:function(e){var t=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,a=this;i&&(a=i),a.annotations.addYaxisAnnotationExternal(e,t,a)}},{key:"addPointAnnotation",value:function(e){var t=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,a=this;i&&(a=i),a.annotations.addPointAnnotationExternal(e,t,a)}},{key:"clearAnnotations",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:void 0,t=this;e&&(t=e),t.annotations.clearAnnotations(t)}},{key:"removeAnnotation",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0,i=this;t&&(i=t),i.annotations.removeAnnotation(i,e)}},{key:"getChartArea",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-inner")}},{key:"getSeriesTotalXRange",value:function(e,t){return this.coreUtils.getSeriesTotalsXRange(e,t)}},{key:"getHighestValueInSeries",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=new Ye(this.ctx);return t.getMinYMaxY(e).highestY}},{key:"getLowestValueInSeries",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=new Ye(this.ctx);return t.getMinYMaxY(e).lowestY}},{key:"getSeriesTotal",value:function(){return this.w.globals.seriesTotals}},{key:"toggleDataPointSelection",value:function(e,t){return this.updateHelpers.toggleDataPointSelection(e,t)}},{key:"zoomX",value:function(e,t){this.ctx.toolbar.zoomUpdateOptions(e,t)}},{key:"setLocale",value:function(e){this.localization.setCurrentLocaleValues(e)}},{key:"dataURI",value:function(e){return new Le(this.ctx).dataURI(e)}},{key:"exportToCSV",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=new Le(this.ctx);return t.exportToCSV(e)}},{key:"paper",value:function(){return this.w.globals.dom.Paper}},{key:"_parentResizeCallback",value:function(){this.w.globals.animationEnded&&this.w.config.chart.redrawOnParentResize&&this._windowResize()}},{key:"_windowResize",value:function(){var e=this;clearTimeout(this.w.globals.resizeTimer),this.w.globals.resizeTimer=window.setTimeout(function(){e.w.globals.resized=!0,e.w.globals.dataChanged=!1,e.ctx.update()},150)}},{key:"_windowResizeHandler",value:function(){var e=this.w.config.chart.redrawOnWindowResize;typeof e=="function"&&(e=e()),e&&this._windowResize()}}],[{key:"getChartByID",value:function(e){var t=L.escapeString(e),i=Apex._chartInstances.filter(function(a){return a.id===t})[0];return i&&i.chart}},{key:"initOnLoad",value:function(){for(var e=document.querySelectorAll("[data-apexcharts]"),t=0;t2?s-2:0),r=2;r{this.series=[{name:"downloads",data:F.days.slice(1)}]})}},created(){this.getEpisodeGraphData()}};var mt=function(){var X=this,M=X._self._c;return M("section",{staticClass:"k-modified-section podcaster"},[M("apexchart",{attrs:{height:"300",type:"bar",options:X.options,series:X.series}})],1)},bt=[],vt=se(xt,mt,bt,!1,null,null,null,null);const yt=vt.exports,wt={components:{apexchart:ce},props:{selectedPodcast:String,selectedEpisodes:[String]},data(){return{options:{chart:{id:"episode-details"},stroke:{curve:"smooth",width:2},markers:{size:0},dataLabels:{enabled:!1},theme:{palette:"palette3"},xaxis:{type:"datetime"}},series:[]}},watch:{selectedEpisodes(){this.getEpisodeGraphData()},selectedPodcast(){this.getEpisodeGraphData()}},methods:{async getEpisodeGraphData(){const F=[];this.selectedEpisodes.forEach(async X=>{const M=await this.$api.get(`podcaster/stats/graph/episode/${this.selectedPodcast}/${X}`),z=[];M.forEach(G=>{z.push({x:new Date(G.date).getTime(),y:G.downloads})}),F.push({name:X,data:z})}),this.series=F}},created(){this.getEpisodeGraphData()}};var kt=function(){var X=this,M=X._self._c;return M("section",{staticClass:"k-modified-section podcaster"},[M("apexchart",{attrs:{height:"400",type:"area",options:X.options,series:X.series}})],1)},At=[],St=se(wt,kt,At,!1,null,null,null,null);const Ct=St.exports,Pt={props:{selectedMonth:Number,selectedYear:Number,selectedPodcast:[String],podcastOptions:Array,setPodcast:Function,setYear:Function,setMonth:Function}};var Lt=function(){var X=this,M=X._self._c;return M("div",[M("k-select-field",{attrs:{options:X.podcastOptions,label:"Podcast",name:"select"},on:{input:X.setPodcast},model:{value:X.selectedPodcast,callback:function(z){X.selectedPodcast=z},expression:"selectedPodcast"}}),M("k-number-field",{attrs:{step:1,label:"Year"},on:{input:X.setYear},model:{value:X.selectedYear,callback:function(z){X.selectedYear=z},expression:"selectedYear"}}),M("k-number-field",{attrs:{max:12,min:1,step:1,label:"Month"},on:{input:X.setMonth},model:{value:X.selectedMonth,callback:function(z){X.selectedMonth=z},expression:"selectedMonth"}})],1)},Mt=[],Tt=se(Pt,Lt,Mt,!1,null,null,null,null);const Et=Tt.exports,It={props:{selectedPodcast:String},computed:{reports(){return[{label:"Today",value:this.metricDay},{label:"This week",value:this.metricWeek},{label:"This month",value:this.metricMonth},{label:"Overall",value:this.metricOverall},{label:"Estimated Subscribers",value:this.estimated}]}},data(){return{metricDay:"0",metricWeek:"0",metricMonth:"0",metricOverall:"0",estimated:0,userLocal:navigator.language}},methods:{formatNumber(F){return parseInt(F).toLocaleString(this.userLocal,{style:"decimal"})},getReports(){this.$api.get(`podcaster/stats/quickreports/${this.selectedPodcast}`).then(F=>{this.metricDay=this.formatNumber(F.reports.day),this.metricWeek=this.formatNumber(F.reports.week),this.metricMonth=this.formatNumber(F.reports.month),this.metricOverall=this.formatNumber(F.reports.overall)}),this.$api.get(`podcaster/stats/subscribers/${this.selectedPodcast}`).then(F=>{this.estimated=this.formatNumber(F.estSubscribers)})}},created(){this.getReports()},watch:{selectedPodcast(){this.getReports()}}};var Xt=function(){var X=this,M=X._self._c;return M("k-grid",{attrs:{gutter:"small"}},X._l(X.reports,function(z,G){return M("k-column",{key:G,attrs:{width:"1/6"}},[M("k-stats",{attrs:{reports:[z]}})],1)}),1)},zt=[],Yt=se(It,Xt,zt,!1,null,null,null,null);const Ft=Yt.exports,Rt={props:{selectedPodcast:String},computed:{reports(){return{label:"Estimated Subscribers",value:this.estimated}}},data(){return{estimated:0}},methods:{getReports(){this.$api.get(`podcaster/stats/subscribers/${this.selectedPodcast}`).then(F=>{this.estimated=F.estSubscribers})}},created(){this.getReports()},watch:{selectedPodcast(){this.getReports()}}};var Dt=function(){var X=this,M=X._self._c;return M("k-stats",{attrs:{reports:[X.reports]}})},Ht=[],Ot=se(Rt,Dt,Ht,!1,null,null,null,null);const Nt=Ot.exports,Wt={props:{selectedPodcast:String,onSelectEpisode:Function},data(){return{episodes:[]}},methods:{getTopEpisodes(){this.$api.get(`podcaster/stats/top-episodes/${this.selectedPodcast}`).then(F=>{this.episodes=F.map(X=>({text:X.title,slug:X.slug,info:X.downloads}))})},setEpisode(F){F.slug&&this.onSelectEpisode(F.slug)}},created(){this.getTopEpisodes()},watch:{selectedPodcast(){this.getTopEpisodes()},selectedMonth(){this.getTopEpisodes()},selectedYear(){this.getTopEpisodes()}}};var Bt=function(){var X=this,M=X._self._c;return M("div",[M("k-collection",{attrs:{layout:"list",items:X.episodes},on:{item:X.setEpisode}})],1)},Gt=[],_t=se(Wt,Bt,Gt,!1,null,null,null,null);const Vt=_t.exports,jt={props:{selectedPodcast:String,selectedEpisodes:[String],onSelectEpisode:Function,onRemoveEpisode:Function},data(){return{episodes:[]}},computed:{episodeItems(){return this.selectedEpisodes?this.selectedEpisodes.map(F=>this.episodes.find(M=>M.value===F)):[]}},methods:{getEpisodes(){this.selectedPodcast&&this.$api.get(`podcaster/stats/episodes/${this.selectedPodcast}`).then(F=>{this.episodes=F.map(X=>({value:X.slug,text:X.title}))})},setEpisode(F){F.value&&this.onSelectEpisode(F.value)},removeEpisode(F){F.value&&this.onRemoveEpisode(F.value)}},created(){this.getEpisodes()},watch:{selectedPodcast(){this.getEpisodes()}}};var Ut=function(){var X=this,M=X._self._c;return M("div",[M("k-autocomplete",{ref:"autocomplete",attrs:{options:this.episodes},on:{select:X.setEpisode}},[M("input",{staticClass:"podcaster-auto-complete",attrs:{type:"text",placeholder:"Search for an episode..."},on:{input:function(z){return X.$refs.autocomplete.search(z.target.value)}}})]),M("div",{staticClass:"episode-selection"},[M("k-headline",[X._v("Selected Episodes")]),M("k-collection",{attrs:{layout:"list",items:X.episodeItems},on:{item:X.removeEpisode}})],1)],1)},$t=[],qt=se(jt,Ut,$t,!1,null,null,null,null);const Zt=qt.exports,Jt={components:{apexchart:ce},props:{selectedMonth:Number,selectedYear:Number,selectedPodcast:String},data(){return{options:{chart:{id:"devices-month",type:"pie"},theme:{palette:"palette3"}},series:[]}},watch:{selectedMonth(){this.getDeviceGraphData()},selectedYear(){this.getDeviceGraphData()},selectedPodcast(){this.getDeviceGraphData()}},methods:{getDeviceGraphData(){this.$api.get(`podcaster/stats/graph/devices/${this.selectedPodcast}/${this.selectedYear}/${this.selectedMonth}`).then(F=>{if(!F)return;const X=[],M=[];F.data.forEach(z=>{X.push(100/F.total*z.downloads),M.push(z.device)}),this.series=X,this.options={...this.options,labels:M}})}},created(){this.getDeviceGraphData()}};var Qt=function(){var X=this,M=X._self._c;return M("section",{staticClass:"k-modified-section podcaster"},[M("apexchart",{attrs:{height:"300",options:X.options,series:X.series}})],1)},Kt=[],ei=se(Jt,Qt,Kt,!1,null,null,null,null);const ti=ei.exports,ii={components:{apexchart:ce},props:{selectedMonth:Number,selectedYear:Number,selectedPodcast:String},data(){return{options:{chart:{id:"devices-month",type:"pie"},theme:{palette:"palette3"}},series:[]}},watch:{selectedMonth(){this.getUserAgentGraphData()},selectedYear(){this.getUserAgentGraphData()},selectedPodcast(){this.getUserAgentGraphData()}},methods:{getUserAgentGraphData(){this.$api.get(`podcaster/stats/graph/useragents/${this.selectedPodcast}/${this.selectedYear}/${this.selectedMonth}`).then(F=>{if(!F)return;const X=[],M=[];F.data.forEach(z=>{X.push(100/F.total*z.downloads),M.push(z.useragent)}),this.series=X,this.options={...this.options,labels:M}})}},created(){this.getUserAgentGraphData()}};var ai=function(){var X=this,M=X._self._c;return M("section",{staticClass:"k-modified-section podcaster"},[M("apexchart",{attrs:{height:"300",options:X.options,series:X.series}})],1)},si=[],ri=se(ii,ai,si,!1,null,null,null,null);const ni=ri.exports,oi={components:{apexchart:ce},props:{selectedMonth:Number,selectedYear:Number,selectedPodcast:String},data(){return{options:{chart:{id:"devices-month",type:"pie"},theme:{palette:"palette3"}},series:[]}},watch:{selectedMonth(){this.getSystemsGraphData()},selectedYear(){this.getSystemsGraphData()},selectedPodcast(){this.getSystemsGraphData()}},methods:{getSystemsGraphData(){this.$api.get(`podcaster/stats/graph/os/${this.selectedPodcast}/${this.selectedYear}/${this.selectedMonth}`).then(F=>{if(!F)return;const X=[],M=[];F.data.forEach(z=>{X.push(100/F.total*z.downloads),M.push(z.os)}),this.series=X,this.options={...this.options,labels:M}})}},created(){this.getSystemsGraphData()}};var li=function(){var X=this,M=X._self._c;return M("section",{staticClass:"k-modified-section podcaster"},[M("apexchart",{attrs:{height:"300",options:X.options,series:X.series}})],1)},hi=[],ci=se(oi,li,hi,!1,null,null,null,null);const di=ci.exports,gi={components:{apexchart:ce},props:{selectedPodcast:String},data(){return{options:{chart:{id:"episodes-all"},stroke:{curve:"smooth",width:2},markers:{size:0},dataLabels:{enabled:!1},theme:{palette:"palette3"},xaxis:{type:"datetime"}},series:[]}},watch:{selectedPodcast(){this.getEpisodeGraphData()}},methods:{async getEpisodeGraphData(){const F=[];this.$api.get(`podcaster/stats/graph/episodes/${this.selectedPodcast}`).then(X=>{!X||!X.downloads||(X.downloads.forEach(M=>{F.push({x:new Date(`${M.year}-${M.month}-02`).getTime(),y:M.downloads})}),this.series=[{name:"downloads",data:F}])}).catch(X=>{console.log(X)})}},created(){this.getEpisodeGraphData()}};var ui=function(){var X=this,M=X._self._c;return M("section",{staticClass:"k-modified-section podcaster"},[M("apexchart",{attrs:{height:"400",type:"area",options:X.options,series:X.series}})],1)},pi=[],fi=se(gi,ui,pi,!1,null,null,null,null);const xi=fi.exports,mi={components:{apexchart:ce},props:{selectedPodcast:String},data(){return{options:{chart:{id:"episodes-all"},stroke:{curve:"smooth",width:2},markers:{size:0},dataLabels:{enabled:!1},theme:{palette:"palette3"},xaxis:{type:"datetime"}},series:[]}},watch:{selectedPodcast(){this.getEpisodeGraphData()}},methods:{async getEpisodeGraphData(){const F=[];this.$api.get(`podcaster/stats/graph/feeds/${this.selectedPodcast}`).then(X=>{!X||!X.downloads||(X.downloads.forEach(M=>{F.push({x:new Date(`${M.year}-${M.month}-02`).getTime(),y:M.downloads})}),this.series=[{name:"downloads",data:F}])}).catch(X=>{console.log(X)})}},created(){this.getEpisodeGraphData()}};var bi=function(){var X=this,M=X._self._c;return M("section",{staticClass:"k-modified-section podcaster"},[M("apexchart",{attrs:{height:"400",type:"area",options:X.options,series:X.series}})],1)},vi=[],yi=se(mi,bi,vi,!1,null,null,null,null);const wi=yi.exports;panel.plugin("mauricerenck/podcaster",{components:{"k-podcaster-view":gt,PodGraphEpisodesMonth:yt,PodGraphSingleEpisode:Ct,PodNavigation:Et,PodStatWidget:Ft,PodTopEpisodes:Vt,PodEpisodesAutocomplete:Zt,PodGraphDevices:ti,PodGraphUserAgents:ni,PodGraphSystems:di,PodSubscribers:Nt,PodGraphEpisodes:xi,PodGraphFeeds:wi}})})(); +`,n?s.prepend(e.css):r.head.appendChild(e.css))}var h=e.create(e.w.config.series,{});if(!h)return t(e);e.mount(h).then(function(){typeof e.w.config.chart.events.mounted=="function"&&e.w.config.chart.events.mounted(e,e.w),e.events.fireEvent("mounted",[e,e.w]),t(h)}).catch(function(c){i(c)})}else i(new Error("Element not found"))})}},{key:"create",value:function(e,t){var i=this.w;new rt(this).initModules();var a=this.w.globals;if(a.noData=!1,a.animationEnded=!1,this.responsive.checkResponsiveConfig(t),i.config.xaxis.convertedCatToNumeric&&new ye(i.config).convertCatToNumericXaxis(i.config,this.ctx),this.el===null||(this.core.setupElements(),i.config.chart.type==="treemap"&&(i.config.grid.show=!1,i.config.yaxis[0].show=!1),a.svgWidth===0))return a.animationEnded=!0,null;var s=U.checkComboSeries(e);a.comboCharts=s.comboCharts,a.comboBarCount=s.comboBarCount;var n=e.every(function(d){return d.data&&d.data.length===0});(e.length===0||n)&&this.series.handleNoData(),this.events.setupEventHandlers(),this.data.parseData(e),this.theme.init(),new ke(this).setGlobalMarkerSize(),this.formatters.setLabelFormatters(),this.titleSubtitle.draw(),a.noData&&a.collapsedSeries.length!==a.series.length&&!i.config.legend.showForSingleSeries||this.legend.init(),this.series.hasAllSeriesEqualX(),a.axisCharts&&(this.core.coreCalculations(),i.config.xaxis.type!=="category"&&this.formatters.setLabelFormatters(),this.ctx.toolbar.minX=i.globals.minX,this.ctx.toolbar.maxX=i.globals.maxX),this.formatters.heatmapLabelFormatters(),new U(this).getLargestMarkerSize(),this.dimensions.plotCoords();var r=this.core.xySettings();this.grid.createGridMask();var o=this.core.plotChartType(e,r),h=new fe(this);h.bringForward(),i.config.dataLabels.background.enabled&&h.dataLabelsBackground(),this.core.shiftGraphPosition();var c={plot:{left:i.globals.translateX,top:i.globals.translateY,width:i.globals.gridWidth,height:i.globals.gridHeight}};return{elGraph:o,xyRatios:r,elInner:i.globals.dom.elGraphical,dimensions:c}}},{key:"mount",value:function(){var e=this,t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,i=this,a=i.w;return new Promise(function(s,n){if(i.el===null)return n(new Error("Not enough data to display or target element not found"));(t===null||a.globals.allSeriesCollapsed)&&i.series.handleNoData(),i.grid=new $e(i);var r=i.grid.drawGrid();if(i.annotations=new Ci(i),i.annotations.drawImageAnnos(),i.annotations.drawTextAnnos(),a.config.grid.position==="back"&&r&&(a.globals.dom.elGraphical.add(r.el),r&&r.elGridBorders&&r.elGridBorders.node&&a.globals.dom.elGraphical.add(r.elGridBorders)),Array.isArray(t.elGraph))for(var o=0;o0&&a.globals.memory.methodsToExec.forEach(function(g){g.method(g.params,!1,g.context)}),a.globals.axisCharts||a.globals.noData||i.core.resizeNonAxisCharts(),s(i)})}},{key:"destroy",value:function(){var e,t;window.removeEventListener("resize",this.windowResizeHandler),this.el.parentNode,e=this.parentResizeHandler,(t=Oe.get(e))&&(t.disconnect(),Oe.delete(e));var i=this.w.config.chart.id;i&&Apex._chartInstances.forEach(function(a,s){a.id===L.escapeString(i)&&Apex._chartInstances.splice(s,1)}),new nt(this.ctx).clear({isUpdating:!1})}},{key:"updateOptions",value:function(e){var t=this,i=arguments.length>1&&arguments[1]!==void 0&&arguments[1],a=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],s=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3],n=!(arguments.length>4&&arguments[4]!==void 0)||arguments[4],r=this.w;return r.globals.selection=void 0,e.series&&(this.series.resetSeries(!1,!0,!1),e.series.length&&e.series[0].data&&(e.series=e.series.map(function(o,h){return t.updateHelpers._extendSeries(o,h)})),this.updateHelpers.revertDefaultAxisMinMax()),e.xaxis&&(e=this.updateHelpers.forceXAxisUpdate(e)),e.yaxis&&(e=this.updateHelpers.forceYAxisUpdate(e)),r.globals.collapsedSeriesIndices.length>0&&this.series.clearPreviousPaths(),e.theme&&(e=this.theme.updateThemeOptions(e)),this.updateHelpers._updateOptions(e,i,a,s,n)}},{key:"updateSeries",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],i=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2];return this.series.resetSeries(!1),this.updateHelpers.revertDefaultAxisMinMax(),this.updateHelpers._updateSeries(e,t,i)}},{key:"appendSeries",value:function(e){var t=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],i=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],a=this.w.config.series.slice();return a.push(e),this.series.resetSeries(!1),this.updateHelpers.revertDefaultAxisMinMax(),this.updateHelpers._updateSeries(a,t,i)}},{key:"appendData",value:function(e){var t=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],i=this;i.w.globals.dataChanged=!0,i.series.getPreviousPaths();for(var a=i.w.config.series.slice(),s=0;s0&&arguments[0]!==void 0)||arguments[0],t=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];this.series.resetSeries(e,t)}},{key:"addEventListener",value:function(e,t){this.events.addEventListener(e,t)}},{key:"removeEventListener",value:function(e,t){this.events.removeEventListener(e,t)}},{key:"addXaxisAnnotation",value:function(e){var t=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,a=this;i&&(a=i),a.annotations.addXaxisAnnotationExternal(e,t,a)}},{key:"addYaxisAnnotation",value:function(e){var t=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,a=this;i&&(a=i),a.annotations.addYaxisAnnotationExternal(e,t,a)}},{key:"addPointAnnotation",value:function(e){var t=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,a=this;i&&(a=i),a.annotations.addPointAnnotationExternal(e,t,a)}},{key:"clearAnnotations",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:void 0,t=this;e&&(t=e),t.annotations.clearAnnotations(t)}},{key:"removeAnnotation",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0,i=this;t&&(i=t),i.annotations.removeAnnotation(i,e)}},{key:"getChartArea",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-inner")}},{key:"getSeriesTotalXRange",value:function(e,t){return this.coreUtils.getSeriesTotalsXRange(e,t)}},{key:"getHighestValueInSeries",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=new Ye(this.ctx);return t.getMinYMaxY(e).highestY}},{key:"getLowestValueInSeries",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=new Ye(this.ctx);return t.getMinYMaxY(e).lowestY}},{key:"getSeriesTotal",value:function(){return this.w.globals.seriesTotals}},{key:"toggleDataPointSelection",value:function(e,t){return this.updateHelpers.toggleDataPointSelection(e,t)}},{key:"zoomX",value:function(e,t){this.ctx.toolbar.zoomUpdateOptions(e,t)}},{key:"setLocale",value:function(e){this.localization.setCurrentLocaleValues(e)}},{key:"dataURI",value:function(e){return new Le(this.ctx).dataURI(e)}},{key:"exportToCSV",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=new Le(this.ctx);return t.exportToCSV(e)}},{key:"paper",value:function(){return this.w.globals.dom.Paper}},{key:"_parentResizeCallback",value:function(){this.w.globals.animationEnded&&this.w.config.chart.redrawOnParentResize&&this._windowResize()}},{key:"_windowResize",value:function(){var e=this;clearTimeout(this.w.globals.resizeTimer),this.w.globals.resizeTimer=window.setTimeout(function(){e.w.globals.resized=!0,e.w.globals.dataChanged=!1,e.ctx.update()},150)}},{key:"_windowResizeHandler",value:function(){var e=this.w.config.chart.redrawOnWindowResize;typeof e=="function"&&(e=e()),e&&this._windowResize()}}],[{key:"getChartByID",value:function(e){var t=L.escapeString(e),i=Apex._chartInstances.filter(function(a){return a.id===t})[0];return i&&i.chart}},{key:"initOnLoad",value:function(){for(var e=document.querySelectorAll("[data-apexcharts]"),t=0;t2?s-2:0),r=2;r{this.series=[{name:"downloads",data:F.days.slice(1)}]})}},created(){this.getEpisodeGraphData()}};var mt=function(){var X=this,M=X._self._c;return M("section",{staticClass:"k-modified-section podcaster"},[M("apexchart",{attrs:{height:"300",type:"bar",options:X.options,series:X.series}})],1)},bt=[],vt=ae(xt,mt,bt);const yt=vt.exports,wt={components:{apexchart:le},props:{selectedPodcast:String,selectedEpisodes:[String]},data(){return{options:{chart:{id:"episode-details"},stroke:{curve:"smooth",width:2},markers:{size:0},dataLabels:{enabled:!1},theme:{palette:"palette3"},xaxis:{type:"datetime"}},series:[]}},watch:{selectedEpisodes(){this.getEpisodeGraphData()},selectedPodcast(){this.getEpisodeGraphData()}},methods:{async getEpisodeGraphData(){const F=[];this.selectedEpisodes.forEach(async X=>{const M=await this.$api.get(`podcaster/stats/graph/episode/${this.selectedPodcast}/${X}`),z=[];M.forEach(_=>{z.push({x:new Date(_.date).getTime(),y:_.downloads})}),F.push({name:X,data:z})}),this.series=F}},created(){this.getEpisodeGraphData()}};var kt=function(){var X=this,M=X._self._c;return M("section",{staticClass:"k-modified-section podcaster"},[M("apexchart",{attrs:{height:"400",type:"area",options:X.options,series:X.series}})],1)},At=[],St=ae(wt,kt,At);const Ct=St.exports,Pt={props:{selectedMonth:Number,selectedYear:Number,selectedPodcast:[String],podcastOptions:Array,setPodcast:Function,setYear:Function,setMonth:Function}};var Lt=function(){var X=this,M=X._self._c;return M("div",[M("k-select-field",{attrs:{options:X.podcastOptions,label:"Podcast",name:"select"},on:{input:X.setPodcast},model:{value:X.selectedPodcast,callback:function(z){X.selectedPodcast=z},expression:"selectedPodcast"}}),M("k-number-field",{attrs:{step:1,label:"Year"},on:{input:X.setYear},model:{value:X.selectedYear,callback:function(z){X.selectedYear=z},expression:"selectedYear"}}),M("k-number-field",{attrs:{max:12,min:1,step:1,label:"Month"},on:{input:X.setMonth},model:{value:X.selectedMonth,callback:function(z){X.selectedMonth=z},expression:"selectedMonth"}})],1)},Mt=[],Tt=ae(Pt,Lt,Mt);const It=Tt.exports,Et={props:{selectedPodcast:String},computed:{reports(){return[{label:"Today",value:this.metricDay},{label:"This week",value:this.metricWeek},{label:"This month",value:this.metricMonth},{label:"Overall",value:this.metricOverall},{label:"Estimated Subscribers",value:this.estimated}]}},data(){return{metricDay:"0",metricWeek:"0",metricMonth:"0",metricOverall:"0",estimated:0,userLocal:navigator.language}},methods:{formatNumber(F){return parseInt(F).toLocaleString(this.userLocal,{style:"decimal"})},getReports(){this.$api.get(`podcaster/stats/quickreports/${this.selectedPodcast}`).then(F=>{this.metricDay=this.formatNumber(F.reports.day),this.metricWeek=this.formatNumber(F.reports.week),this.metricMonth=this.formatNumber(F.reports.month),this.metricOverall=this.formatNumber(F.reports.overall)}),this.$api.get(`podcaster/stats/subscribers/${this.selectedPodcast}`).then(F=>{this.estimated=this.formatNumber(F.estSubscribers)})}},created(){this.getReports()},watch:{selectedPodcast(){this.getReports()}}};var Xt=function(){var X=this,M=X._self._c;return M("k-grid",{attrs:{gutter:"small"}},X._l(X.reports,function(z,_){return M("k-column",{key:_,attrs:{width:"1/6"}},[M("k-stats",{attrs:{reports:[z]}})],1)}),1)},zt=[],Yt=ae(Et,Xt,zt);const Ft=Yt.exports,Dt={props:{selectedPodcast:String},computed:{reports(){return{label:"Estimated Subscribers",value:this.estimated}}},data(){return{estimated:0}},methods:{getReports(){this.$api.get(`podcaster/stats/subscribers/${this.selectedPodcast}`).then(F=>{this.estimated=F.estSubscribers})}},created(){this.getReports()},watch:{selectedPodcast(){this.getReports()}}};var Rt=function(){var X=this,M=X._self._c;return M("k-stats",{attrs:{reports:[X.reports]}})},Ht=[],Ot=ae(Dt,Rt,Ht);const Nt=Ot.exports,Wt={props:{selectedPodcast:String,onSelectEpisode:Function},data(){return{episodes:[]}},methods:{getTopEpisodes(){this.$api.get(`podcaster/stats/top-episodes/${this.selectedPodcast}`).then(F=>{this.episodes=F.map(X=>({text:X.title,slug:X.slug,info:X.downloads}))})},setEpisode(F){F.slug&&this.onSelectEpisode(F.slug)}},created(){this.getTopEpisodes()},watch:{selectedPodcast(){this.getTopEpisodes()},selectedMonth(){this.getTopEpisodes()},selectedYear(){this.getTopEpisodes()}}};var Bt=function(){var X=this,M=X._self._c;return M("div",[M("k-collection",{attrs:{layout:"list",items:X.episodes},on:{item:X.setEpisode}})],1)},Gt=[],_t=ae(Wt,Bt,Gt);const Vt=_t.exports,jt={props:{selectedPodcast:String,selectedEpisodes:[String],onSelectEpisode:Function,onRemoveEpisode:Function},data(){return{episodes:[]}},computed:{episodeItems(){return this.selectedEpisodes?this.selectedEpisodes.map(F=>this.episodes.find(M=>M.value===F)):[]}},methods:{getEpisodes(){this.selectedPodcast&&this.$api.get(`podcaster/stats/episodes/${this.selectedPodcast}`).then(F=>{this.episodes=F.map(X=>({value:X.slug,text:X.title}))})},setEpisode(F){F.value&&this.onSelectEpisode(F.value)},removeEpisode(F){F.value&&this.onRemoveEpisode(F.value)}},created(){this.getEpisodes()},watch:{selectedPodcast(){this.getEpisodes()}}};var Ut=function(){var X=this,M=X._self._c;return M("div",[M("k-autocomplete",{ref:"autocomplete",attrs:{options:this.episodes},on:{select:X.setEpisode}},[M("input",{staticClass:"podcaster-auto-complete",attrs:{type:"text",placeholder:"Search for an episode..."},on:{input:function(z){return X.$refs.autocomplete.search(z.target.value)}}})]),M("div",{staticClass:"episode-selection"},[M("k-headline",[X._v("Selected Episodes")]),M("k-collection",{attrs:{layout:"list",items:X.episodeItems},on:{item:X.removeEpisode}})],1)],1)},qt=[],$t=ae(jt,Ut,qt);const Zt=$t.exports,Jt={components:{apexchart:le},props:{selectedMonth:Number,selectedYear:Number,selectedPodcast:String},data(){return{options:{chart:{id:"devices-month",type:"pie"},theme:{palette:"palette3"}},series:[]}},watch:{selectedMonth(){this.getDeviceGraphData()},selectedYear(){this.getDeviceGraphData()},selectedPodcast(){this.getDeviceGraphData()}},methods:{getDeviceGraphData(){this.$api.get(`podcaster/stats/graph/devices/${this.selectedPodcast}/${this.selectedYear}/${this.selectedMonth}`).then(F=>{if(!F)return;const X=[],M=[];F.data.forEach(z=>{X.push(100/F.total*z.downloads),M.push(z.device)}),this.series=X,this.options={...this.options,labels:M}})}},created(){this.getDeviceGraphData()}};var Qt=function(){var X=this,M=X._self._c;return M("section",{staticClass:"k-modified-section podcaster"},[M("apexchart",{attrs:{height:"300",options:X.options,series:X.series}})],1)},Kt=[],ei=ae(Jt,Qt,Kt);const ti=ei.exports,ii={components:{apexchart:le},props:{selectedMonth:Number,selectedYear:Number,selectedPodcast:String},data(){return{options:{chart:{id:"devices-month",type:"pie"},theme:{palette:"palette3"}},series:[]}},watch:{selectedMonth(){this.getUserAgentGraphData()},selectedYear(){this.getUserAgentGraphData()},selectedPodcast(){this.getUserAgentGraphData()}},methods:{getUserAgentGraphData(){this.$api.get(`podcaster/stats/graph/useragents/${this.selectedPodcast}/${this.selectedYear}/${this.selectedMonth}`).then(F=>{if(!F)return;const X=[],M=[];F.data.forEach(z=>{X.push(100/F.total*z.downloads),M.push(z.useragent)}),this.series=X,this.options={...this.options,labels:M}})}},created(){this.getUserAgentGraphData()}};var ai=function(){var X=this,M=X._self._c;return M("section",{staticClass:"k-modified-section podcaster"},[M("apexchart",{attrs:{height:"300",options:X.options,series:X.series}})],1)},si=[],ri=ae(ii,ai,si);const ni=ri.exports,oi={components:{apexchart:le},props:{selectedMonth:Number,selectedYear:Number,selectedPodcast:String},data(){return{options:{chart:{id:"devices-month",type:"pie"},theme:{palette:"palette3"}},series:[]}},watch:{selectedMonth(){this.getSystemsGraphData()},selectedYear(){this.getSystemsGraphData()},selectedPodcast(){this.getSystemsGraphData()}},methods:{getSystemsGraphData(){this.$api.get(`podcaster/stats/graph/os/${this.selectedPodcast}/${this.selectedYear}/${this.selectedMonth}`).then(F=>{if(!F)return;const X=[],M=[];F.data.forEach(z=>{X.push(100/F.total*z.downloads),M.push(z.os)}),this.series=X,this.options={...this.options,labels:M}})}},created(){this.getSystemsGraphData()}};var li=function(){var X=this,M=X._self._c;return M("section",{staticClass:"k-modified-section podcaster"},[M("apexchart",{attrs:{height:"300",options:X.options,series:X.series}})],1)},hi=[],ci=ae(oi,li,hi);const di=ci.exports,gi={components:{apexchart:le},props:{selectedPodcast:String},data(){return{options:{chart:{id:"episodes-all"},stroke:{curve:"smooth",width:2},markers:{size:0},dataLabels:{enabled:!1},theme:{palette:"palette3"},xaxis:{type:"datetime"}},series:[]}},watch:{selectedPodcast(){this.getEpisodeGraphData()}},methods:{async getEpisodeGraphData(){const F=[];this.$api.get(`podcaster/stats/graph/episodes/${this.selectedPodcast}`).then(X=>{!X||!X.downloads||(X.downloads.forEach(M=>{F.push({x:new Date(`${M.year}-${M.month}-02`).getTime(),y:M.downloads})}),this.series=[{name:"downloads",data:F}])}).catch(X=>{console.log(X)})}},created(){this.getEpisodeGraphData()}};var ui=function(){var X=this,M=X._self._c;return M("section",{staticClass:"k-modified-section podcaster"},[M("apexchart",{attrs:{height:"400",type:"area",options:X.options,series:X.series}})],1)},pi=[],fi=ae(gi,ui,pi);const xi=fi.exports,mi={components:{apexchart:le},props:{selectedPodcast:String},data(){return{options:{chart:{id:"episodes-all"},stroke:{curve:"smooth",width:2},markers:{size:0},dataLabels:{enabled:!1},theme:{palette:"palette3"},xaxis:{type:"datetime"}},series:[]}},watch:{selectedPodcast(){this.getEpisodeGraphData()}},methods:{async getEpisodeGraphData(){const F=[];this.$api.get(`podcaster/stats/graph/feeds/${this.selectedPodcast}`).then(X=>{!X||!X.downloads||(X.downloads.forEach(M=>{F.push({x:new Date(`${M.year}-${M.month}-02`).getTime(),y:M.downloads})}),this.series=[{name:"downloads",data:F}])}).catch(X=>{console.log(X)})}},created(){this.getEpisodeGraphData()}};var bi=function(){var X=this,M=X._self._c;return M("section",{staticClass:"k-modified-section podcaster"},[M("apexchart",{attrs:{height:"400",type:"area",options:X.options,series:X.series}})],1)},vi=[],yi=ae(mi,bi,vi);const wi=yi.exports;panel.plugin("mauricerenck/podcaster",{components:{"k-podcaster-view":gt,PodGraphEpisodesMonth:yt,PodGraphSingleEpisode:Ct,PodNavigation:It,PodStatWidget:Ft,PodTopEpisodes:Vt,PodEpisodesAutocomplete:Zt,PodGraphDevices:ti,PodGraphUserAgents:ni,PodGraphSystems:di,PodSubscribers:Nt,PodGraphEpisodes:xi,PodGraphFeeds:wi}})})(); diff --git a/internal/api.php b/internal/api.php index f37febd..7242c5d 100644 --- a/internal/api.php +++ b/internal/api.php @@ -9,7 +9,7 @@ [ 'pattern' => 'podcaster/stats/graph/downloads/(:any)/(:num)/(:num)', 'action' => function ($podcastId, $year, $month) { - if (option('mauricerenck.podcaster.statsInternal') === false) { + if (option('mauricerenck.podcaster.statsInternal', false) === false) { $errorMessage = ['error' => 'Internal stats are disabled, see documentation for more information']; return new Response(json_encode($errorMessage), 'application/json', 412); @@ -38,7 +38,7 @@ [ 'pattern' => 'podcaster/stats/graph/episodes/(:any)', 'action' => function ($podcastId) { - if (option('mauricerenck.podcaster.statsInternal') === false) { + if (option('mauricerenck.podcaster.statsInternal', false) === false) { $errorMessage = ['error' => 'Internal stats are disabled, see documentation for more information']; return new Response(json_encode($errorMessage), 'application/json', 412); @@ -85,7 +85,7 @@ [ 'pattern' => 'podcaster/stats/graph/feeds/(:any)', 'action' => function ($podcastId) { - if (option('mauricerenck.podcaster.statsInternal') === false) { + if (option('mauricerenck.podcaster.statsInternal', false) === false) { $errorMessage = ['error' => 'Internal stats are disabled, see documentation for more information']; return new Response(json_encode($errorMessage), 'application/json', 412); @@ -132,7 +132,7 @@ [ 'pattern' => 'podcaster/stats/quickreports/(:any)', 'action' => function ($podcastId) { - if (option('mauricerenck.podcaster.statsInternal') === false) { + if (option('mauricerenck.podcaster.statsInternal', false) === false) { $errorMessage = ['error' => 'Internal stats are disabled, see documentation for more information']; return new Response(json_encode($errorMessage), 'application/json', 412); @@ -188,7 +188,7 @@ [ 'pattern' => 'podcaster/stats/graph/episode/(:any)/(:any)', 'action' => function ($podcastId, $episode) { - if (option('mauricerenck.podcaster.statsInternal') === false) { + if (option('mauricerenck.podcaster.statsInternal', false) === false) { $errorMessage = ['error' => 'Internal stats are disabled, see documentation for more information']; return new Response(json_encode($errorMessage), 'application/json', 412); @@ -217,7 +217,7 @@ [ 'pattern' => 'podcaster/stats/graph/devices/(:any)/(:num)/(:num)', 'action' => function ($podcastId, $year, $month) { - if (option('mauricerenck.podcaster.statsInternal') === false) { + if (option('mauricerenck.podcaster.statsInternal', false) === false) { $errorMessage = ['error' => 'Internal stats are disabled, see documentation for more information']; return new Response(json_encode($errorMessage), 'application/json', 412); @@ -246,7 +246,7 @@ [ 'pattern' => 'podcaster/stats/graph/useragents/(:any)/(:num)/(:num)', 'action' => function ($podcastId, $year, $month) { - if (option('mauricerenck.podcaster.statsInternal') === false) { + if (option('mauricerenck.podcaster.statsInternal', false) === false) { $errorMessage = ['error' => 'Internal stats are disabled, see documentation for more information']; return new Response(json_encode($errorMessage), 'application/json', 412); @@ -275,7 +275,7 @@ [ 'pattern' => 'podcaster/stats/graph/os/(:any)/(:num)/(:num)', 'action' => function ($podcastId, $year, $month) { - if (option('mauricerenck.podcaster.statsInternal') === false) { + if (option('mauricerenck.podcaster.statsInternal', false) === false) { $errorMessage = ['error' => 'Internal stats are disabled, see documentation for more information']; return new Response(json_encode($errorMessage), 'application/json', 412); @@ -304,7 +304,7 @@ [ 'pattern' => 'podcaster/stats/top-episodes/(:any)', 'action' => function ($podcastId) { - if (option('mauricerenck.podcaster.statsInternal') === false) { + if (option('mauricerenck.podcaster.statsInternal', false) === false) { $errorMessage = ['error' => 'Internal stats are disabled, see documentation for more information']; return new Response(json_encode($errorMessage), 'application/json', 412); @@ -325,7 +325,7 @@ [ 'pattern' => 'podcaster/stats/episodes/(:any)', 'action' => function ($podcastId) { - if (option('mauricerenck.podcaster.statsInternal') === false) { + if (option('mauricerenck.podcaster.statsInternal', false) === false) { $errorMessage = ['error' => 'Internal stats are disabled, see documentation for more information']; return new Response(json_encode($errorMessage), 'application/json', 412); @@ -358,7 +358,7 @@ [ 'pattern' => 'podcaster/stats/subscribers/(:any)', 'action' => function ($podcastId) { - if (option('mauricerenck.podcaster.statsInternal') === false) { + if (option('mauricerenck.podcaster.statsInternal', false) === false) { $errorMessage = ['error' => 'Internal stats are disabled, see documentation for more information']; return new Response(json_encode($errorMessage), 'application/json', 412); diff --git a/vendor/composer/installed.php b/vendor/composer/installed.php index 872c2c7..9007e64 100644 --- a/vendor/composer/installed.php +++ b/vendor/composer/installed.php @@ -1,8 +1,8 @@ array( 'name' => 'mauricerenck/podcaster', - 'pretty_version' => '3.2.3', - 'version' => '3.2.3.0', + 'pretty_version' => '3.2.4', + 'version' => '3.2.4.0', 'reference' => NULL, 'type' => 'kirby-plugin', 'install_path' => __DIR__ . '/../../', @@ -29,17 +29,17 @@ 'dev_requirement' => false, ), 'matomo/matomo-php-tracker' => array( - 'pretty_version' => '3.2.0', - 'version' => '3.2.0.0', - 'reference' => 'c9e7816d63ddf99bffb1414cfbe45f4c4edf1d4b', + 'pretty_version' => '3.3.1', + 'version' => '3.3.1.0', + 'reference' => '92c2ce658111c7d86a552521c619083e41ebd834', 'type' => 'library', 'install_path' => __DIR__ . '/../matomo/matomo-php-tracker', 'aliases' => array(), 'dev_requirement' => false, ), 'mauricerenck/podcaster' => array( - 'pretty_version' => '3.2.3', - 'version' => '3.2.3.0', + 'pretty_version' => '3.2.4', + 'version' => '3.2.4.0', 'reference' => NULL, 'type' => 'kirby-plugin', 'install_path' => __DIR__ . '/../../', diff --git a/vendor/matomo/matomo-php-tracker/MatomoTracker.php b/vendor/matomo/matomo-php-tracker/MatomoTracker.php index 1a06676..234c6bf 100644 --- a/vendor/matomo/matomo-php-tracker/MatomoTracker.php +++ b/vendor/matomo/matomo-php-tracker/MatomoTracker.php @@ -37,7 +37,7 @@ class MatomoTracker * @ignore * @var int */ - const VERSION = 1; + public const VERSION = 1; /** * @ignore @@ -49,27 +49,156 @@ class MatomoTracker * * @ignore */ - const LENGTH_VISITOR_ID = 16; + public const LENGTH_VISITOR_ID = 16; /** * Charset * @see setPageCharset * @ignore */ - const DEFAULT_CHARSET_PARAMETER_VALUES = 'utf-8'; + public const DEFAULT_CHARSET_PARAMETER_VALUES = 'utf-8'; /** * See matomo.js */ - const FIRST_PARTY_COOKIES_PREFIX = '_pk_'; + public const FIRST_PARTY_COOKIES_PREFIX = '_pk_'; /** * Defines how many categories can be used max when calling addEcommerceItem(). * @var int */ - const MAX_NUM_ECOMMERCE_ITEM_CATEGORIES = 5; + public const MAX_NUM_ECOMMERCE_ITEM_CATEGORIES = 5; - const DEFAULT_COOKIE_PATH = '/'; + public const DEFAULT_COOKIE_PATH = '/'; + + public $ecommerceItems = []; + + public $attributionInfo = false; + + public $eventCustomVar = []; + + public $forcedDatetime = false; + + public $forcedNewVisit = false; + + public $networkTime = false; + + public $serverTime = false; + + public $transferTime = false; + + public $domProcessingTime = false; + + public $domCompletionTime = false; + + public $onLoadTime = false; + + public $pageCustomVar = []; + + public $ecommerceView = []; + + public $customParameters = []; + + public $customDimensions = []; + + public $customData = false; + + public $hasCookies = false; + + public $token_auth = false; + + public $userAgent = false; + + public $country = false; + + public $region = false; + + public $city = false; + + public $lat = false; + + public $long = false; + + public $width = false; + + public $height = false; + + public $plugins = false; + + public $localHour = false; + + public $localMinute = false; + + public $localSecond = false; + + public $idPageview = false; + + public $idPageviewSetManually = false; + + public $idSite; + + public $urlReferrer; + + public $pageCharset = self::DEFAULT_CHARSET_PARAMETER_VALUES; + + public $pageUrl; + + public $ip; + + public $acceptLanguage; + + public $clientHints = []; + + // Life of the visitor cookie (in sec) + public $configVisitorCookieTimeout = 33955200; // 13 months (365 + 28 days) + + // Life of the session cookie (in sec) + public $configSessionCookieTimeout = 1800; // 30 minutes + + // Life of the session cookie (in sec) + public $configReferralCookieTimeout = 15768000; // 6 months + + // Visitor Ids in order + public $userId = false; + + public $forcedVisitorId = false; + + public $cookieVisitorId = false; + + public $randomVisitorId = false; + + public $configCookiesDisabled = false; + + public $configCookiePath = self::DEFAULT_COOKIE_PATH; + + public $configCookieDomain = ''; + + public $configCookieSameSite = ''; + + public $configCookieSecure = false; + + public $configCookieHTTPOnly = false; + + public $currentTs; + + public $createTs; + + // Allow debug while blocking the request + public $requestTimeout = 600; + + public $requestConnectTimeout = 300; + + public $doBulkRequests = false; + + public $storedTrackingActions = []; + + public $sendImageResponse = true; + + public $outgoingTrackerCookies = []; + + public $incomingTrackerCookies = []; + + public $visitorCustomVar; private $requestMethod = null; @@ -83,46 +212,12 @@ class MatomoTracker */ public function __construct($idSite, $apiUrl = '') { - $this->ecommerceItems = []; - $this->attributionInfo = false; - $this->eventCustomVar = []; - $this->forcedDatetime = false; - $this->forcedNewVisit = false; - $this->networkTime = false; - $this->serverTime = false; - $this->transferTime = false; - $this->domProcessingTime = false; - $this->domCompletionTime = false; - $this->onLoadTime = false; - $this->pageCustomVar = []; - $this->ecommerceView = []; - $this->customParameters = []; - $this->customDimensions = []; - $this->customData = false; - $this->hasCookies = false; - $this->token_auth = false; - $this->userAgent = false; - $this->country = false; - $this->region = false; - $this->city = false; - $this->lat = false; - $this->long = false; - $this->width = false; - $this->height = false; - $this->plugins = false; - $this->localHour = false; - $this->localMinute = false; - $this->localSecond = false; - $this->idPageview = false; - $this->idSite = $idSite; $this->urlReferrer = !empty($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : false; - $this->pageCharset = self::DEFAULT_CHARSET_PARAMETER_VALUES; $this->pageUrl = self::getCurrentUrl(); $this->ip = !empty($_SERVER['REMOTE_ADDR']) ? $_SERVER['REMOTE_ADDR'] : false; $this->acceptLanguage = !empty($_SERVER['HTTP_ACCEPT_LANGUAGE']) ? $_SERVER['HTTP_ACCEPT_LANGUAGE'] : false; $this->userAgent = !empty($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : false; - $this->clientHints = []; $this->setClientHints( !empty($_SERVER['HTTP_SEC_CH_UA_MODEL']) ? $_SERVER['HTTP_SEC_CH_UA_MODEL'] : '', !empty($_SERVER['HTTP_SEC_CH_UA_PLATFORM']) ? $_SERVER['HTTP_SEC_CH_UA_PLATFORM'] : '', @@ -134,43 +229,12 @@ public function __construct($idSite, $apiUrl = '') self::$URL = $apiUrl; } - // Life of the visitor cookie (in sec) - $this->configVisitorCookieTimeout = 33955200; // 13 months (365 + 28 days) - // Life of the session cookie (in sec) - $this->configSessionCookieTimeout = 1800; // 30 minutes - // Life of the session cookie (in sec) - $this->configReferralCookieTimeout = 15768000; // 6 months - - // Visitor Ids in order - $this->userId = false; - $this->forcedVisitorId = false; - $this->cookieVisitorId = false; - $this->randomVisitorId = false; - $this->setNewVisitorId(); - $this->configCookiesDisabled = false; - $this->configCookiePath = self::DEFAULT_COOKIE_PATH; - $this->configCookieDomain = ''; - $this->configCookieSameSite = ''; - $this->configCookieSecure = false; - $this->configCookieHTTPOnly = false; - $this->currentTs = time(); $this->createTs = $this->currentTs; - - // Allow debug while blocking the request - $this->requestTimeout = 600; - $this->requestConnectTimeout = 300; - $this->doBulkRequests = false; - $this->storedTrackingActions = []; - - $this->sendImageResponse = true; - + $this->visitorCustomVar = $this->getCustomVariablesFromCookie(); - - $this->outgoingTrackerCookies = []; - $this->incomingTrackerCookies = []; } public function setApiUrl(string $url) @@ -705,12 +769,38 @@ protected function getCookieName($cookieName) */ public function doTrackPageView($documentTitle) { - $this->generateNewPageviewId(); + if (!$this->idPageviewSetManually) { + $this->generateNewPageviewId(); + } $url = $this->getUrlTrackPageView($documentTitle); return $this->sendRequest($url); } + + /** + * Override PageView id for every use of `doTrackPageView()`. Do not use this if you call `doTrackPageView()` + * multiple times during tracking (if, for example, you are tracking a single page application). + * + * @param string $idPageview + */ + public function setPageviewId($idPageview) + { + $this->idPageview = $idPageview; + $this->idPageviewSetManually = true; + } + + /** + * Returns the PageView id. If the id was manually set using `setPageViewId()`, that id will be returned. + * If the id was not set manually, the id that was automatically generated in last `doTrackPageView()` will + * be returned. If there was no last page view, this will be false. + * + * @return mixed The PageView id as string or false if there is none yet. + */ + public function getPageviewId() + { + return $this->idPageview; + } private function generateNewPageviewId() { @@ -1212,7 +1302,7 @@ public function getUrlTrackContentImpression($contentName, $contentPiece, $conte } /** - * Builds URL to track a content impression. + * Builds URL to track a content interaction. * * @see doTrackContentInteraction() * @param string $interaction The name of the interaction with the content. For instance a 'click' @@ -1922,6 +2012,8 @@ protected function sendRequest($url, $method = 'GET', $data = null, $force = fal } } + $content = ''; + if (function_exists('curl_init') && function_exists('curl_exec')) { $options = $this->prepareCurlOptions($url, $method, $data, $forcePostUrlEncoded); @@ -1929,26 +2021,31 @@ protected function sendRequest($url, $method = 'GET', $data = null, $force = fal curl_setopt_array($ch, $options); ob_start(); $response = @curl_exec($ch); - ob_end_clean(); - $header = ''; - $content = ''; - - if ($response === false) { - throw new \RuntimeException(curl_error($ch)); - } + try { + $header = ''; - if (!empty($response)) { - // extract header - $headerSize = curl_getinfo($ch, CURLINFO_HEADER_SIZE); - $header = substr($response, 0, $headerSize); + if ($response === false) { + $curlError = curl_error($ch); + if (!empty($curlError)) { + throw new \RuntimeException($curlError); + } + } - // extract content - $content = substr($response, $headerSize); - } + if (!empty($response)) { + // extract header + $headerSize = curl_getinfo($ch, CURLINFO_HEADER_SIZE); + $header = substr($response, 0, $headerSize); - $this->parseIncomingCookies(explode("\r\n", $header)); + // extract content + $content = substr($response, $headerSize); + } + $this->parseIncomingCookies(explode("\r\n", $header)); + } finally { + curl_close($ch); + ob_end_clean(); + } } elseif (function_exists('stream_context_create')) { $stream_options = $this->prepareStreamOptions($method, $data, $forcePostUrlEncoded); diff --git a/vendor/matomo/matomo-php-tracker/composer.lock b/vendor/matomo/matomo-php-tracker/composer.lock deleted file mode 100644 index 36b6de2..0000000 --- a/vendor/matomo/matomo-php-tracker/composer.lock +++ /dev/null @@ -1,1978 +0,0 @@ -{ - "_readme": [ - "This file locks the dependencies of your project to a known state", - "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", - "This file is @generated automatically" - ], - "content-hash": "8ec49efde7b8c6d6ea9c1b81422e501f", - "packages": [], - "packages-dev": [ - { - "name": "doctrine/instantiator", - "version": "1.3.1", - "source": { - "type": "git", - "url": "https://github.com/doctrine/instantiator.git", - "reference": "f350df0268e904597e3bd9c4685c53e0e333feea" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/doctrine/instantiator/zipball/f350df0268e904597e3bd9c4685c53e0e333feea", - "reference": "f350df0268e904597e3bd9c4685c53e0e333feea", - "shasum": "" - }, - "require": { - "php": "^7.1 || ^8.0" - }, - "require-dev": { - "doctrine/coding-standard": "^6.0", - "ext-pdo": "*", - "ext-phar": "*", - "phpbench/phpbench": "^0.13", - "phpstan/phpstan-phpunit": "^0.11", - "phpstan/phpstan-shim": "^0.11", - "phpunit/phpunit": "^7.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.2.x-dev" - } - }, - "autoload": { - "psr-4": { - "Doctrine\\Instantiator\\": "src/Doctrine/Instantiator/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Marco Pivetta", - "email": "ocramius@gmail.com", - "homepage": "http://ocramius.github.com/" - } - ], - "description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors", - "homepage": "https://www.doctrine-project.org/projects/instantiator.html", - "keywords": [ - "constructor", - "instantiate" - ], - "funding": [ - { - "url": "https://www.doctrine-project.org/sponsorship.html", - "type": "custom" - }, - { - "url": "https://www.patreon.com/phpdoctrine", - "type": "patreon" - }, - { - "url": "https://tidelift.com/funding/github/packagist/doctrine%2Finstantiator", - "type": "tidelift" - } - ], - "time": "2020-05-29T17:27:14+00:00" - }, - { - "name": "myclabs/deep-copy", - "version": "1.10.1", - "source": { - "type": "git", - "url": "https://github.com/myclabs/DeepCopy.git", - "reference": "969b211f9a51aa1f6c01d1d2aef56d3bd91598e5" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/969b211f9a51aa1f6c01d1d2aef56d3bd91598e5", - "reference": "969b211f9a51aa1f6c01d1d2aef56d3bd91598e5", - "shasum": "" - }, - "require": { - "php": "^7.1 || ^8.0" - }, - "replace": { - "myclabs/deep-copy": "self.version" - }, - "require-dev": { - "doctrine/collections": "^1.0", - "doctrine/common": "^2.6", - "phpunit/phpunit": "^7.1" - }, - "type": "library", - "autoload": { - "psr-4": { - "DeepCopy\\": "src/DeepCopy/" - }, - "files": [ - "src/DeepCopy/deep_copy.php" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "description": "Create deep copies (clones) of your objects", - "keywords": [ - "clone", - "copy", - "duplicate", - "object", - "object graph" - ], - "funding": [ - { - "url": "https://tidelift.com/funding/github/packagist/myclabs/deep-copy", - "type": "tidelift" - } - ], - "time": "2020-06-29T13:22:24+00:00" - }, - { - "name": "nikic/php-parser", - "version": "v4.9.1", - "source": { - "type": "git", - "url": "https://github.com/nikic/PHP-Parser.git", - "reference": "88e519766fc58bd46b8265561fb79b54e2e00b28" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/88e519766fc58bd46b8265561fb79b54e2e00b28", - "reference": "88e519766fc58bd46b8265561fb79b54e2e00b28", - "shasum": "" - }, - "require": { - "ext-tokenizer": "*", - "php": ">=7.0" - }, - "require-dev": { - "ircmaxell/php-yacc": "^0.0.7", - "phpunit/phpunit": "^6.5 || ^7.0 || ^8.0 || ^9.0" - }, - "bin": [ - "bin/php-parse" - ], - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "4.9-dev" - } - }, - "autoload": { - "psr-4": { - "PhpParser\\": "lib/PhpParser" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Nikita Popov" - } - ], - "description": "A PHP parser written in PHP", - "keywords": [ - "parser", - "php" - ], - "time": "2020-08-30T16:15:20+00:00" - }, - { - "name": "phar-io/manifest", - "version": "2.0.1", - "source": { - "type": "git", - "url": "https://github.com/phar-io/manifest.git", - "reference": "85265efd3af7ba3ca4b2a2c34dbfc5788dd29133" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/phar-io/manifest/zipball/85265efd3af7ba3ca4b2a2c34dbfc5788dd29133", - "reference": "85265efd3af7ba3ca4b2a2c34dbfc5788dd29133", - "shasum": "" - }, - "require": { - "ext-dom": "*", - "ext-phar": "*", - "ext-xmlwriter": "*", - "phar-io/version": "^3.0.1", - "php": "^7.2 || ^8.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.0.x-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Arne Blankerts", - "email": "arne@blankerts.de", - "role": "Developer" - }, - { - "name": "Sebastian Heuer", - "email": "sebastian@phpeople.de", - "role": "Developer" - }, - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "Developer" - } - ], - "description": "Component for reading phar.io manifest information from a PHP Archive (PHAR)", - "time": "2020-06-27T14:33:11+00:00" - }, - { - "name": "phar-io/version", - "version": "3.0.2", - "source": { - "type": "git", - "url": "https://github.com/phar-io/version.git", - "reference": "c6bb6825def89e0a32220f88337f8ceaf1975fa0" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/phar-io/version/zipball/c6bb6825def89e0a32220f88337f8ceaf1975fa0", - "reference": "c6bb6825def89e0a32220f88337f8ceaf1975fa0", - "shasum": "" - }, - "require": { - "php": "^7.2 || ^8.0" - }, - "type": "library", - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Arne Blankerts", - "email": "arne@blankerts.de", - "role": "Developer" - }, - { - "name": "Sebastian Heuer", - "email": "sebastian@phpeople.de", - "role": "Developer" - }, - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "Developer" - } - ], - "description": "Library for handling version information and constraints", - "time": "2020-06-27T14:39:04+00:00" - }, - { - "name": "phpdocumentor/reflection-common", - "version": "2.2.0", - "source": { - "type": "git", - "url": "https://github.com/phpDocumentor/ReflectionCommon.git", - "reference": "1d01c49d4ed62f25aa84a747ad35d5a16924662b" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/ReflectionCommon/zipball/1d01c49d4ed62f25aa84a747ad35d5a16924662b", - "reference": "1d01c49d4ed62f25aa84a747ad35d5a16924662b", - "shasum": "" - }, - "require": { - "php": "^7.2 || ^8.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-2.x": "2.x-dev" - } - }, - "autoload": { - "psr-4": { - "phpDocumentor\\Reflection\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Jaap van Otterdijk", - "email": "opensource@ijaap.nl" - } - ], - "description": "Common reflection classes used by phpdocumentor to reflect the code structure", - "homepage": "http://www.phpdoc.org", - "keywords": [ - "FQSEN", - "phpDocumentor", - "phpdoc", - "reflection", - "static analysis" - ], - "time": "2020-06-27T09:03:43+00:00" - }, - { - "name": "phpdocumentor/reflection-docblock", - "version": "5.2.1", - "source": { - "type": "git", - "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git", - "reference": "d870572532cd70bc3fab58f2e23ad423c8404c44" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/d870572532cd70bc3fab58f2e23ad423c8404c44", - "reference": "d870572532cd70bc3fab58f2e23ad423c8404c44", - "shasum": "" - }, - "require": { - "ext-filter": "*", - "php": "^7.2 || ^8.0", - "phpdocumentor/reflection-common": "^2.2", - "phpdocumentor/type-resolver": "^1.3", - "webmozart/assert": "^1.9.1" - }, - "require-dev": { - "mockery/mockery": "~1.3.2" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "5.x-dev" - } - }, - "autoload": { - "psr-4": { - "phpDocumentor\\Reflection\\": "src" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Mike van Riel", - "email": "me@mikevanriel.com" - }, - { - "name": "Jaap van Otterdijk", - "email": "account@ijaap.nl" - } - ], - "description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.", - "time": "2020-08-15T11:14:08+00:00" - }, - { - "name": "phpdocumentor/type-resolver", - "version": "1.3.0", - "source": { - "type": "git", - "url": "https://github.com/phpDocumentor/TypeResolver.git", - "reference": "e878a14a65245fbe78f8080eba03b47c3b705651" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/e878a14a65245fbe78f8080eba03b47c3b705651", - "reference": "e878a14a65245fbe78f8080eba03b47c3b705651", - "shasum": "" - }, - "require": { - "php": "^7.2 || ^8.0", - "phpdocumentor/reflection-common": "^2.0" - }, - "require-dev": { - "ext-tokenizer": "*" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-1.x": "1.x-dev" - } - }, - "autoload": { - "psr-4": { - "phpDocumentor\\Reflection\\": "src" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Mike van Riel", - "email": "me@mikevanriel.com" - } - ], - "description": "A PSR-5 based resolver of Class names, Types and Structural Element Names", - "time": "2020-06-27T10:12:23+00:00" - }, - { - "name": "phpspec/prophecy", - "version": "1.11.1", - "source": { - "type": "git", - "url": "https://github.com/phpspec/prophecy.git", - "reference": "b20034be5efcdab4fb60ca3a29cba2949aead160" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/phpspec/prophecy/zipball/b20034be5efcdab4fb60ca3a29cba2949aead160", - "reference": "b20034be5efcdab4fb60ca3a29cba2949aead160", - "shasum": "" - }, - "require": { - "doctrine/instantiator": "^1.2", - "php": "^7.2", - "phpdocumentor/reflection-docblock": "^5.0", - "sebastian/comparator": "^3.0 || ^4.0", - "sebastian/recursion-context": "^3.0 || ^4.0" - }, - "require-dev": { - "phpspec/phpspec": "^6.0", - "phpunit/phpunit": "^8.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.11.x-dev" - } - }, - "autoload": { - "psr-4": { - "Prophecy\\": "src/Prophecy" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Konstantin Kudryashov", - "email": "ever.zet@gmail.com", - "homepage": "http://everzet.com" - }, - { - "name": "Marcello Duarte", - "email": "marcello.duarte@gmail.com" - } - ], - "description": "Highly opinionated mocking framework for PHP 5.3+", - "homepage": "https://github.com/phpspec/prophecy", - "keywords": [ - "Double", - "Dummy", - "fake", - "mock", - "spy", - "stub" - ], - "time": "2020-07-08T12:44:21+00:00" - }, - { - "name": "phpunit/php-code-coverage", - "version": "9.1.7", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/php-code-coverage.git", - "reference": "2ef92bec3186a827faf7362ff92ae4e8ec2e49d2" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/2ef92bec3186a827faf7362ff92ae4e8ec2e49d2", - "reference": "2ef92bec3186a827faf7362ff92ae4e8ec2e49d2", - "shasum": "" - }, - "require": { - "ext-dom": "*", - "ext-libxml": "*", - "ext-xmlwriter": "*", - "nikic/php-parser": "^4.8", - "php": "^7.3 || ^8.0", - "phpunit/php-file-iterator": "^3.0.3", - "phpunit/php-text-template": "^2.0.2", - "sebastian/code-unit-reverse-lookup": "^2.0.2", - "sebastian/complexity": "^2.0", - "sebastian/environment": "^5.1.2", - "sebastian/lines-of-code": "^1.0", - "sebastian/version": "^3.0.1", - "theseer/tokenizer": "^1.2.0" - }, - "require-dev": { - "phpunit/phpunit": "^9.3" - }, - "suggest": { - "ext-pcov": "*", - "ext-xdebug": "*" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "9.1-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" - } - ], - "description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.", - "homepage": "https://github.com/sebastianbergmann/php-code-coverage", - "keywords": [ - "coverage", - "testing", - "xunit" - ], - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - } - ], - "time": "2020-09-03T07:09:19+00:00" - }, - { - "name": "phpunit/php-file-iterator", - "version": "3.0.4", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/php-file-iterator.git", - "reference": "25fefc5b19835ca653877fe081644a3f8c1d915e" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/25fefc5b19835ca653877fe081644a3f8c1d915e", - "reference": "25fefc5b19835ca653877fe081644a3f8c1d915e", - "shasum": "" - }, - "require": { - "php": "^7.3 || ^8.0" - }, - "require-dev": { - "phpunit/phpunit": "^9.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "3.0-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" - } - ], - "description": "FilterIterator implementation that filters files based on a list of suffixes.", - "homepage": "https://github.com/sebastianbergmann/php-file-iterator/", - "keywords": [ - "filesystem", - "iterator" - ], - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - } - ], - "time": "2020-07-11T05:18:21+00:00" - }, - { - "name": "phpunit/php-invoker", - "version": "3.1.0", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/php-invoker.git", - "reference": "7a85b66acc48cacffdf87dadd3694e7123674298" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-invoker/zipball/7a85b66acc48cacffdf87dadd3694e7123674298", - "reference": "7a85b66acc48cacffdf87dadd3694e7123674298", - "shasum": "" - }, - "require": { - "php": "^7.3 || ^8.0" - }, - "require-dev": { - "ext-pcntl": "*", - "phpunit/phpunit": "^9.0" - }, - "suggest": { - "ext-pcntl": "*" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "3.1-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" - } - ], - "description": "Invoke callables with a timeout", - "homepage": "https://github.com/sebastianbergmann/php-invoker/", - "keywords": [ - "process" - ], - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - } - ], - "time": "2020-08-06T07:04:15+00:00" - }, - { - "name": "phpunit/php-text-template", - "version": "2.0.2", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/php-text-template.git", - "reference": "6ff9c8ea4d3212b88fcf74e25e516e2c51c99324" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/6ff9c8ea4d3212b88fcf74e25e516e2c51c99324", - "reference": "6ff9c8ea4d3212b88fcf74e25e516e2c51c99324", - "shasum": "" - }, - "require": { - "php": "^7.3 || ^8.0" - }, - "require-dev": { - "phpunit/phpunit": "^9.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.0-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" - } - ], - "description": "Simple template engine.", - "homepage": "https://github.com/sebastianbergmann/php-text-template/", - "keywords": [ - "template" - ], - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - } - ], - "time": "2020-06-26T11:55:37+00:00" - }, - { - "name": "phpunit/php-timer", - "version": "5.0.1", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/php-timer.git", - "reference": "cc49734779cbb302bf51a44297dab8c4bbf941e7" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/cc49734779cbb302bf51a44297dab8c4bbf941e7", - "reference": "cc49734779cbb302bf51a44297dab8c4bbf941e7", - "shasum": "" - }, - "require": { - "php": "^7.3 || ^8.0" - }, - "require-dev": { - "phpunit/phpunit": "^9.2" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "5.0-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" - } - ], - "description": "Utility class for timing", - "homepage": "https://github.com/sebastianbergmann/php-timer/", - "keywords": [ - "timer" - ], - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - } - ], - "time": "2020-06-26T11:58:13+00:00" - }, - { - "name": "phpunit/phpunit", - "version": "9.3.8", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "93d78d8e2a06393a0d0c1ead6fe9984f1af1f88c" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/93d78d8e2a06393a0d0c1ead6fe9984f1af1f88c", - "reference": "93d78d8e2a06393a0d0c1ead6fe9984f1af1f88c", - "shasum": "" - }, - "require": { - "doctrine/instantiator": "^1.3.1", - "ext-dom": "*", - "ext-json": "*", - "ext-libxml": "*", - "ext-mbstring": "*", - "ext-xml": "*", - "ext-xmlwriter": "*", - "myclabs/deep-copy": "^1.10.1", - "phar-io/manifest": "^2.0.1", - "phar-io/version": "^3.0.2", - "php": "^7.3 || ^8.0", - "phpspec/prophecy": "^1.11.1", - "phpunit/php-code-coverage": "^9.1.5", - "phpunit/php-file-iterator": "^3.0.4", - "phpunit/php-invoker": "^3.1", - "phpunit/php-text-template": "^2.0.2", - "phpunit/php-timer": "^5.0.1", - "sebastian/cli-parser": "^1.0", - "sebastian/code-unit": "^1.0.5", - "sebastian/comparator": "^4.0.3", - "sebastian/diff": "^4.0.2", - "sebastian/environment": "^5.1.2", - "sebastian/exporter": "^4.0.2", - "sebastian/global-state": "^5.0", - "sebastian/object-enumerator": "^4.0.2", - "sebastian/resource-operations": "^3.0.2", - "sebastian/type": "^2.2.1", - "sebastian/version": "^3.0.1" - }, - "require-dev": { - "ext-pdo": "*", - "phpspec/prophecy-phpunit": "^2.0.1" - }, - "suggest": { - "ext-soap": "*", - "ext-xdebug": "*" - }, - "bin": [ - "phpunit" - ], - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "9.3-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ], - "files": [ - "src/Framework/Assert/Functions.php" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" - } - ], - "description": "The PHP Unit Testing framework.", - "homepage": "https://phpunit.de/", - "keywords": [ - "phpunit", - "testing", - "xunit" - ], - "funding": [ - { - "url": "https://phpunit.de/donate.html", - "type": "custom" - }, - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - } - ], - "time": "2020-08-27T06:30:58+00:00" - }, - { - "name": "sebastian/cli-parser", - "version": "1.0.0", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/cli-parser.git", - "reference": "2a4a38c56e62f7295bedb8b1b7439ad523d4ea82" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/cli-parser/zipball/2a4a38c56e62f7295bedb8b1b7439ad523d4ea82", - "reference": "2a4a38c56e62f7295bedb8b1b7439ad523d4ea82", - "shasum": "" - }, - "require": { - "php": "^7.3 || ^8.0" - }, - "require-dev": { - "phpunit/phpunit": "^9.3" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.0-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" - } - ], - "description": "Library for parsing CLI options", - "homepage": "https://github.com/sebastianbergmann/cli-parser", - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - } - ], - "time": "2020-08-12T10:49:21+00:00" - }, - { - "name": "sebastian/code-unit", - "version": "1.0.5", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/code-unit.git", - "reference": "c1e2df332c905079980b119c4db103117e5e5c90" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/code-unit/zipball/c1e2df332c905079980b119c4db103117e5e5c90", - "reference": "c1e2df332c905079980b119c4db103117e5e5c90", - "shasum": "" - }, - "require": { - "php": "^7.3 || ^8.0" - }, - "require-dev": { - "phpunit/phpunit": "^9.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.0-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" - } - ], - "description": "Collection of value objects that represent the PHP code units", - "homepage": "https://github.com/sebastianbergmann/code-unit", - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - } - ], - "time": "2020-06-26T12:50:45+00:00" - }, - { - "name": "sebastian/code-unit-reverse-lookup", - "version": "2.0.2", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/code-unit-reverse-lookup.git", - "reference": "ee51f9bb0c6d8a43337055db3120829fa14da819" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/ee51f9bb0c6d8a43337055db3120829fa14da819", - "reference": "ee51f9bb0c6d8a43337055db3120829fa14da819", - "shasum": "" - }, - "require": { - "php": "^7.3 || ^8.0" - }, - "require-dev": { - "phpunit/phpunit": "^9.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.0-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - } - ], - "description": "Looks up which function or method a line of code belongs to", - "homepage": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/", - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - } - ], - "time": "2020-06-26T12:04:00+00:00" - }, - { - "name": "sebastian/comparator", - "version": "4.0.3", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/comparator.git", - "reference": "dcc580eadfaa4e7f9d2cf9ae1922134ea962e14f" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/dcc580eadfaa4e7f9d2cf9ae1922134ea962e14f", - "reference": "dcc580eadfaa4e7f9d2cf9ae1922134ea962e14f", - "shasum": "" - }, - "require": { - "php": "^7.3 || ^8.0", - "sebastian/diff": "^4.0", - "sebastian/exporter": "^4.0" - }, - "require-dev": { - "phpunit/phpunit": "^9.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "4.0-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - }, - { - "name": "Jeff Welch", - "email": "whatthejeff@gmail.com" - }, - { - "name": "Volker Dusch", - "email": "github@wallbash.com" - }, - { - "name": "Bernhard Schussek", - "email": "bschussek@2bepublished.at" - } - ], - "description": "Provides the functionality to compare PHP values for equality", - "homepage": "https://github.com/sebastianbergmann/comparator", - "keywords": [ - "comparator", - "compare", - "equality" - ], - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - } - ], - "time": "2020-06-26T12:05:46+00:00" - }, - { - "name": "sebastian/complexity", - "version": "2.0.0", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/complexity.git", - "reference": "33fcd6a26656c6546f70871244ecba4b4dced097" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/complexity/zipball/33fcd6a26656c6546f70871244ecba4b4dced097", - "reference": "33fcd6a26656c6546f70871244ecba4b4dced097", - "shasum": "" - }, - "require": { - "nikic/php-parser": "^4.7", - "php": "^7.3 || ^8.0" - }, - "require-dev": { - "phpunit/phpunit": "^9.2" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.0-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" - } - ], - "description": "Library for calculating the complexity of PHP code units", - "homepage": "https://github.com/sebastianbergmann/complexity", - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - } - ], - "time": "2020-07-25T14:01:34+00:00" - }, - { - "name": "sebastian/diff", - "version": "4.0.2", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/diff.git", - "reference": "1e90b4cf905a7d06c420b1d2e9d11a4dc8a13113" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/1e90b4cf905a7d06c420b1d2e9d11a4dc8a13113", - "reference": "1e90b4cf905a7d06c420b1d2e9d11a4dc8a13113", - "shasum": "" - }, - "require": { - "php": "^7.3 || ^8.0" - }, - "require-dev": { - "phpunit/phpunit": "^9.0", - "symfony/process": "^4.2 || ^5" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "4.0-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - }, - { - "name": "Kore Nordmann", - "email": "mail@kore-nordmann.de" - } - ], - "description": "Diff implementation", - "homepage": "https://github.com/sebastianbergmann/diff", - "keywords": [ - "diff", - "udiff", - "unidiff", - "unified diff" - ], - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - } - ], - "time": "2020-06-30T04:46:02+00:00" - }, - { - "name": "sebastian/environment", - "version": "5.1.2", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/environment.git", - "reference": "0a757cab9d5b7ef49a619f1143e6c9c1bc0fe9d2" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/0a757cab9d5b7ef49a619f1143e6c9c1bc0fe9d2", - "reference": "0a757cab9d5b7ef49a619f1143e6c9c1bc0fe9d2", - "shasum": "" - }, - "require": { - "php": "^7.3 || ^8.0" - }, - "require-dev": { - "phpunit/phpunit": "^9.0" - }, - "suggest": { - "ext-posix": "*" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "5.0-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - } - ], - "description": "Provides functionality to handle HHVM/PHP environments", - "homepage": "http://www.github.com/sebastianbergmann/environment", - "keywords": [ - "Xdebug", - "environment", - "hhvm" - ], - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - } - ], - "time": "2020-06-26T12:07:24+00:00" - }, - { - "name": "sebastian/exporter", - "version": "4.0.2", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/exporter.git", - "reference": "571d721db4aec847a0e59690b954af33ebf9f023" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/571d721db4aec847a0e59690b954af33ebf9f023", - "reference": "571d721db4aec847a0e59690b954af33ebf9f023", - "shasum": "" - }, - "require": { - "php": "^7.3 || ^8.0", - "sebastian/recursion-context": "^4.0" - }, - "require-dev": { - "ext-mbstring": "*", - "phpunit/phpunit": "^9.2" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "4.0-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - }, - { - "name": "Jeff Welch", - "email": "whatthejeff@gmail.com" - }, - { - "name": "Volker Dusch", - "email": "github@wallbash.com" - }, - { - "name": "Adam Harvey", - "email": "aharvey@php.net" - }, - { - "name": "Bernhard Schussek", - "email": "bschussek@gmail.com" - } - ], - "description": "Provides the functionality to export PHP variables for visualization", - "homepage": "http://www.github.com/sebastianbergmann/exporter", - "keywords": [ - "export", - "exporter" - ], - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - } - ], - "time": "2020-06-26T12:08:55+00:00" - }, - { - "name": "sebastian/global-state", - "version": "5.0.0", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/global-state.git", - "reference": "22ae663c951bdc39da96603edc3239ed3a299097" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/22ae663c951bdc39da96603edc3239ed3a299097", - "reference": "22ae663c951bdc39da96603edc3239ed3a299097", - "shasum": "" - }, - "require": { - "php": "^7.3 || ^8.0", - "sebastian/object-reflector": "^2.0", - "sebastian/recursion-context": "^4.0" - }, - "require-dev": { - "ext-dom": "*", - "phpunit/phpunit": "^9.3" - }, - "suggest": { - "ext-uopz": "*" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "5.0-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - } - ], - "description": "Snapshotting of global state", - "homepage": "http://www.github.com/sebastianbergmann/global-state", - "keywords": [ - "global state" - ], - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - } - ], - "time": "2020-08-07T04:09:03+00:00" - }, - { - "name": "sebastian/lines-of-code", - "version": "1.0.0", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/lines-of-code.git", - "reference": "e02bf626f404b5daec382a7b8a6a4456e49017e5" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/lines-of-code/zipball/e02bf626f404b5daec382a7b8a6a4456e49017e5", - "reference": "e02bf626f404b5daec382a7b8a6a4456e49017e5", - "shasum": "" - }, - "require": { - "nikic/php-parser": "^4.6", - "php": "^7.3 || ^8.0" - }, - "require-dev": { - "phpunit/phpunit": "^9.2" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.0-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" - } - ], - "description": "Library for counting the lines of code in PHP source code", - "homepage": "https://github.com/sebastianbergmann/lines-of-code", - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - } - ], - "time": "2020-07-22T18:33:42+00:00" - }, - { - "name": "sebastian/object-enumerator", - "version": "4.0.2", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/object-enumerator.git", - "reference": "074fed2d0a6d08e1677dd8ce9d32aecb384917b8" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/074fed2d0a6d08e1677dd8ce9d32aecb384917b8", - "reference": "074fed2d0a6d08e1677dd8ce9d32aecb384917b8", - "shasum": "" - }, - "require": { - "php": "^7.3 || ^8.0", - "sebastian/object-reflector": "^2.0", - "sebastian/recursion-context": "^4.0" - }, - "require-dev": { - "phpunit/phpunit": "^9.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "4.0-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - } - ], - "description": "Traverses array structures and object graphs to enumerate all referenced objects", - "homepage": "https://github.com/sebastianbergmann/object-enumerator/", - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - } - ], - "time": "2020-06-26T12:11:32+00:00" - }, - { - "name": "sebastian/object-reflector", - "version": "2.0.2", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/object-reflector.git", - "reference": "127a46f6b057441b201253526f81d5406d6c7840" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/127a46f6b057441b201253526f81d5406d6c7840", - "reference": "127a46f6b057441b201253526f81d5406d6c7840", - "shasum": "" - }, - "require": { - "php": "^7.3 || ^8.0" - }, - "require-dev": { - "phpunit/phpunit": "^9.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.0-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - } - ], - "description": "Allows reflection of object attributes, including inherited and non-public ones", - "homepage": "https://github.com/sebastianbergmann/object-reflector/", - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - } - ], - "time": "2020-06-26T12:12:55+00:00" - }, - { - "name": "sebastian/recursion-context", - "version": "4.0.2", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/recursion-context.git", - "reference": "062231bf61d2b9448c4fa5a7643b5e1829c11d63" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/062231bf61d2b9448c4fa5a7643b5e1829c11d63", - "reference": "062231bf61d2b9448c4fa5a7643b5e1829c11d63", - "shasum": "" - }, - "require": { - "php": "^7.3 || ^8.0" - }, - "require-dev": { - "phpunit/phpunit": "^9.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "4.0-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - }, - { - "name": "Jeff Welch", - "email": "whatthejeff@gmail.com" - }, - { - "name": "Adam Harvey", - "email": "aharvey@php.net" - } - ], - "description": "Provides functionality to recursively process PHP variables", - "homepage": "http://www.github.com/sebastianbergmann/recursion-context", - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - } - ], - "time": "2020-06-26T12:14:17+00:00" - }, - { - "name": "sebastian/resource-operations", - "version": "3.0.2", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/resource-operations.git", - "reference": "0653718a5a629b065e91f774595267f8dc32e213" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/resource-operations/zipball/0653718a5a629b065e91f774595267f8dc32e213", - "reference": "0653718a5a629b065e91f774595267f8dc32e213", - "shasum": "" - }, - "require": { - "php": "^7.3 || ^8.0" - }, - "require-dev": { - "phpunit/phpunit": "^9.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "3.0-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - } - ], - "description": "Provides a list of PHP built-in functions that operate on resources", - "homepage": "https://www.github.com/sebastianbergmann/resource-operations", - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - } - ], - "time": "2020-06-26T12:16:22+00:00" - }, - { - "name": "sebastian/type", - "version": "2.2.1", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/type.git", - "reference": "86991e2b33446cd96e648c18bcdb1e95afb2c05a" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/86991e2b33446cd96e648c18bcdb1e95afb2c05a", - "reference": "86991e2b33446cd96e648c18bcdb1e95afb2c05a", - "shasum": "" - }, - "require": { - "php": "^7.3 || ^8.0" - }, - "require-dev": { - "phpunit/phpunit": "^9.2" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.2-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" - } - ], - "description": "Collection of value objects that represent the types of the PHP type system", - "homepage": "https://github.com/sebastianbergmann/type", - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - } - ], - "time": "2020-07-05T08:31:53+00:00" - }, - { - "name": "sebastian/version", - "version": "3.0.1", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/version.git", - "reference": "626586115d0ed31cb71483be55beb759b5af5a3c" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/626586115d0ed31cb71483be55beb759b5af5a3c", - "reference": "626586115d0ed31cb71483be55beb759b5af5a3c", - "shasum": "" - }, - "require": { - "php": "^7.3 || ^8.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "3.0-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" - } - ], - "description": "Library that helps with managing the version number of Git-hosted PHP projects", - "homepage": "https://github.com/sebastianbergmann/version", - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - } - ], - "time": "2020-06-26T12:18:43+00:00" - }, - { - "name": "symfony/polyfill-ctype", - "version": "v1.18.1", - "source": { - "type": "git", - "url": "https://github.com/symfony/polyfill-ctype.git", - "reference": "1c302646f6efc070cd46856e600e5e0684d6b454" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/1c302646f6efc070cd46856e600e5e0684d6b454", - "reference": "1c302646f6efc070cd46856e600e5e0684d6b454", - "shasum": "" - }, - "require": { - "php": ">=5.3.3" - }, - "suggest": { - "ext-ctype": "For best performance" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.18-dev" - }, - "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" - } - }, - "autoload": { - "psr-4": { - "Symfony\\Polyfill\\Ctype\\": "" - }, - "files": [ - "bootstrap.php" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Gert de Pagter", - "email": "BackEndTea@gmail.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Symfony polyfill for ctype functions", - "homepage": "https://symfony.com", - "keywords": [ - "compatibility", - "ctype", - "polyfill", - "portable" - ], - "funding": [ - { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" - } - ], - "time": "2020-07-14T12:35:20+00:00" - }, - { - "name": "theseer/tokenizer", - "version": "1.2.0", - "source": { - "type": "git", - "url": "https://github.com/theseer/tokenizer.git", - "reference": "75a63c33a8577608444246075ea0af0d052e452a" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/theseer/tokenizer/zipball/75a63c33a8577608444246075ea0af0d052e452a", - "reference": "75a63c33a8577608444246075ea0af0d052e452a", - "shasum": "" - }, - "require": { - "ext-dom": "*", - "ext-tokenizer": "*", - "ext-xmlwriter": "*", - "php": "^7.2 || ^8.0" - }, - "type": "library", - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Arne Blankerts", - "email": "arne@blankerts.de", - "role": "Developer" - } - ], - "description": "A small library for converting tokenized PHP source code into XML and potentially other formats", - "funding": [ - { - "url": "https://github.com/theseer", - "type": "github" - } - ], - "time": "2020-07-12T23:59:07+00:00" - }, - { - "name": "webmozart/assert", - "version": "1.9.1", - "source": { - "type": "git", - "url": "https://github.com/webmozart/assert.git", - "reference": "bafc69caeb4d49c39fd0779086c03a3738cbb389" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/webmozart/assert/zipball/bafc69caeb4d49c39fd0779086c03a3738cbb389", - "reference": "bafc69caeb4d49c39fd0779086c03a3738cbb389", - "shasum": "" - }, - "require": { - "php": "^5.3.3 || ^7.0 || ^8.0", - "symfony/polyfill-ctype": "^1.8" - }, - "conflict": { - "phpstan/phpstan": "<0.12.20", - "vimeo/psalm": "<3.9.1" - }, - "require-dev": { - "phpunit/phpunit": "^4.8.36 || ^7.5.13" - }, - "type": "library", - "autoload": { - "psr-4": { - "Webmozart\\Assert\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Bernhard Schussek", - "email": "bschussek@gmail.com" - } - ], - "description": "Assertions to validate method input/output with nice error messages.", - "keywords": [ - "assert", - "check", - "validate" - ], - "time": "2020-07-08T17:02:28+00:00" - } - ], - "aliases": [], - "minimum-stability": "stable", - "stability-flags": [], - "prefer-stable": false, - "prefer-lowest": false, - "platform": { - "php": ">=5.3", - "ext-json": "*" - }, - "platform-dev": [], - "plugin-api-version": "1.1.0" -}